/in/foo.cc: In function 'int main()':
/in/foo.cc:6:16: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf ("%d",&n);
^
/in/foo.cc:7:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
for(i=1;i<=n;i++) scanf ("%d",&a[i]);
^
/in/foo.cc:8:34: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf ("%d%d%d%d",&m,&p1,&s1,&s2);
^
/in/foo.cc:8:34: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:8:34: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
/in/foo.cc:8:34: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'long long int*' [-Wformat=]
/in/foo.cc:31:19: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf ("%d\n",p2);
^