foo.cc: In function 'int main()':
foo.cc:8:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d%d%d%d%d",&m,&n,&k,&l,&d);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:12:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf("%d%d%d%d",&xi,&yi,&pi,&qi);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:50:11: warning: iteration 1001 invokes undefined behavior [-Waggressive-loop-optimizations]
50 | if(c[i])
| ~~~^
foo.cc:48:17: note: within this loop
48 | for(int i=0; i<1005;i++)
| ~^~~~~
foo.cc:56:11: warning: iteration 1001 invokes undefined behavior [-Waggressive-loop-optimizations]
56 | if(o[i])
| ~~~^
foo.cc:54:17: note: within this loop
54 | for(int i=0; i<1005; i++)
| ~^~~~~
foo.cc:46:8: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
46 | o[p]++;
| ~~~^
foo.cc:31:8: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
31 | c[p]++;
| ~~~^
正在同步测试数据,请稍后
Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务