foo.cc: In function 'int main()':
foo.cc:23:46: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%3d %3d %3d\n",i[cnt],j[cnt],k[cnt]);
~~~~~~ ^
foo.cc:23:46: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
foo.cc:23:46: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
foo.cc:7:17: warning: unused variable 'sum' [-Wunused-variable]
long int a,b,c,sum,cnt=0;
^~~
[Hydro](https://hydro.ac)提供评测服务