Accepted
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:45: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d^%d mod %d=%d\n",tmpb,p,k,f(p));
^
/in/foo.cc:16:45: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
/in/foo.cc:16:45: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long long int' [-Wformat=]