foo.cc: In function 'int main()':
foo.cc:58:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n); tot = 1;
~~~~~^~~~~~~~~
foo.cc:60:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x,y; scanf("%d%d",&x,&y);
~~~~~^~~~~~~~~~~~~~
foo.cc:63:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
~~~~~^~~~~~~~~
foo.cc:79:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int x,y; scanf("%d%d",&x,&y);
~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务