foo.cc: In function 'int main()':
foo.cc:10:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
10 | if (n==1&&m>2||m==1&&n>2)printf("-1\n");
| ~~~~^~~~~
foo.cc:6:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%d",&t);
| ~~~~~^~~~~~~~~
foo.cc:9:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | scanf("%d%d",&n,&m);
| ~~~~~^~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务