foo.cc: In function 'int main()':
foo.cc:14:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
14 | fen[j]==fen[j+1]&&ren[j]>ren[j+1])
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
foo.cc:5:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
5 | freopen("score.in","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:6:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
6 | freopen("score.out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:8:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d %d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~
foo.cc:10:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d %d",&ren[i],&fen[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务