foo.cc: In function 'int main()':
foo.cc:24:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d%d",&m,&n);
~~ ^
foo.cc:24:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
foo.cc:28:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
scanf("%d",&ch[i]);
~~~~~~^
foo.cc:31:17: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d",tot);
^
foo.cc:24:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&m,&n);
~~~~~^~~~~~~~~~~~~~
foo.cc:28:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&ch[i]);
~~~~~^~~~~~~~~~~~~
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
正在同步测试数据,请稍后
{"receive":"2020-07-12T05:01:41.417Z","handle":"2020-07-12T05:01:41.444Z","cache_start":"2020-07-12T05:01:41.558Z","read_cases":"2020-07-12T05:01:42.538Z","judge":"2020-07-12T05:01:42.548Z","done":"2020-07-12T05:01:43.317Z"}