/in/foo.cc: In function 'int main()':
/in/foo.cc:69:57: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int*' [-Wformat=]
scanf("%lld%lld%lld%lld%lld%lld",&m,&MOD,&n,&a1,&a2,&a3);
^
/in/foo.cc:69:57: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int*' [-Wformat=]
/in/foo.cc:69:57: warning: format '%lld' expects argument of type 'long long int*', but argument 4 has type 'int*' [-Wformat=]
/in/foo.cc:69:57: warning: format '%lld' expects argument of type 'long long int*', but argument 5 has type 'int*' [-Wformat=]
/in/foo.cc:69:57: warning: format '%lld' expects argument of type 'long long int*', but argument 6 has type 'int*' [-Wformat=]
/in/foo.cc:69:57: warning: format '%lld' expects argument of type 'long long int*', but argument 7 has type 'int*' [-Wformat=]
/in/foo.cc:81:26: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int' [-Wformat=]
printf("%lld\n",p[m]%MOD);
^