foo.cc: In function 'int main()':
foo.cc:9:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
9 | if(mp<1000)if((mp/100==mp%10&&mp/100!=9&&mp/100!=6&&(mp/100==1||mp%10==8))||(mp/100==9&&mp%1==6)||(mp/100==6&&mp%1==9))cnt++;
| ^
foo.cc: At global scope:
foo.cc:19:5: error: redefinition of 'int main()'
19 | int main(){
| ^~~~
foo.cc:3:5: note: 'int main()' previously defined here
3 | int main(){
| ^~~~
foo.cc: In function 'int main()':
foo.cc:25:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
25 | if(mp<1000)if((mp/100==mp%10&&mp/100!=9&&mp/100!=6&&(mp/100==1||mp%10==8))||(mp/100==9&&mp%1==6)||(mp/100==6&&mp%1==9))cnt++;
| ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务