foo.cc: In function 'int main()':
foo.cc:77:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
77 | scanf("%d",&M);
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
foo.cc:70:15: warning: unused variable 'j' [-Wunused-variable]
70 | static int i,j;
| ^
foo.cc:71:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
71 | scanf("%d",&N);
| ~~~~~^~~~~~~~~
foo.cc:73:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
73 | scanf("%d%d",&U,&V);
| ~~~~~^~~~~~~~~~~~~~
foo.cc:77:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
77 | scanf("%d",&M);
| ~~~~~^~~~~~~~~
foo.cc: At global scope:
foo.cc:70:15: warning: 'j' defined but not used [-Wunused-variable]
70 | static int i,j;
| ^
[Hydro](https://hydro.ac)提供评测服务