/in/foo.cc: In function 'int main()':
/in/foo.cc:7:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d %d",&a,&n);
^
/in/foo.cc:7:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:12:28: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=]
printf("%ld %ld\n",i,sum[i]);
^
/in/foo.cc:12:28: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]