foo.cc: In function 'int main()':
foo.cc:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d%d%d",&a[i].x,&a[i].y,&a[i].t);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:38:11: warning: iteration 100005 invokes undefined behavior [-Waggressive-loop-optimizations]
38 | ans+=b[i];
| ~~~^
foo.cc:37:16: note: within this loop
37 | for(int i=0; i<=100005; i++)
| ~^~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务