foo.cc: In function 'int main()':
foo.cc:25:7: warning: unused variable 'x' [-Wunused-variable]
25 | int x,y,h; scanf("%d%d%d",&a[i].x,&a[i].y,&a[i].v);
| ^
foo.cc:25:9: warning: unused variable 'y' [-Wunused-variable]
25 | int x,y,h; scanf("%d%d%d",&a[i].x,&a[i].y,&a[i].v);
| ^
foo.cc:25:11: warning: unused variable 'h' [-Wunused-variable]
25 | int x,y,h; scanf("%d%d%d",&a[i].x,&a[i].y,&a[i].v);
| ^
foo.cc:22:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
foo.cc:25:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | int x,y,h; scanf("%d%d%d",&a[i].x,&a[i].y,&a[i].v);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务