/in/foo.cc: In function 'int main()':
/in/foo.cc:7:22: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%ld%ld",&n,&m);
~~ ^
/in/foo.cc:7:22: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:10:45: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
for(int i=1;i<=n;i++) scanf("%ld",&a[i]);
~~~~~^
/in/foo.cc:11:45: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
for(int j=1;j<=m;j++) scanf("%ld",&b[j]);
~~~~~^
/in/foo.cc:43:22: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
printf("%ld\n",tot);
^
/in/foo.cc:47:23: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%ld%ld",&n,&m);
~~ ^
/in/foo.cc:47:23: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]