/in/foo.cc: In function 'void kp(int, int)':
/in/foo.cc:7:11: warning: unused variable 'e' [-Wunused-variable]
int b,c,d,e;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:19: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d%d",&n,&m);
^
/in/foo.cc:25:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:29:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d",&a[i]);
^
/in/foo.cc:37:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d", sum);
^
/in/foo.cc:40:1: error: expected ';' before 'return'
return 0;
^~~~~~