Accepted
/in/foo.cc: In function 'int main()': /in/foo.cc:62:47: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d\n",(1LL*num[2*n]*((x%P+P)%P))%P); ^
/in/foo.cc: In function 'int main()': /in/foo.cc:62:47: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d\n",(1LL*num[2*n]*((x%P+P)%P))%P); ^