Runtime Error
/in/foo.cc: In function 'int main()': /in/foo.cc:47:25: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=] scanf("%d %lld", &n, &p); ^
/in/foo.cc: In function 'int main()': /in/foo.cc:47:25: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=] scanf("%d %lld", &n, &p); ^