Main.cc: In function ‘int main()’: Main.cc:5:19: error: expected primary-expression before ‘%’ token scanf("%d,%d",&k,%m); ^ Main.cc:9:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",ans); ^