foo.c: In function 'main':
foo.c:5:7: warning: left-hand operand of comma expression has no effect [-Wunused-value]
5 | for(a,x=a,y=0,x>=y;y++,x--)
| ^
foo.c:5:15: warning: right-hand operand of comma expression has no effect [-Wunused-value]
5 | for(a,x=a,y=0,x>=y;y++,x--)
| ^
foo.c:5:28: error: expected ';' before ')' token
5 | for(a,x=a,y=0,x>=y;y++,x--)
| ^
| ;
foo.c:6:4: warning: implicit declaration of function 'judge' [-Wimplicit-function-declaration]
6 | {(judge(x)==0&&judge(y)==0)?printf("%d+%d=%d";c,b,a): ;
| ^~~~~
foo.c:6:47: error: expected ')' before ';' token
6 | {(judge(x)==0&&judge(y)==0)?printf("%d+%d=%d";c,b,a): ;
| ~ ^
| )
foo.c:6:39: warning: format '%d' expects a matching 'int' argument [-Wformat=]
6 | {(judge(x)==0&&judge(y)==0)?printf("%d+%d=%d";c,b,a): ;
| ~^
| |
| int
foo.c:6:42: warning: format '%d' expects a matching 'int' argument [-Wformat=]
6 | {(judge(x)==0&&judge(y)==0)?printf("%d+%d=%d";c,b,a): ;
| ~^
| |
| int
foo.c:6:45: warning: format '%d' expects a matching 'int' argument [-Wformat=]
6 | {(judge(x)==0&&judge(y)==0)?printf("%d+%d=%d";c,b,a): ;
| ~^
| |
| int
foo.c:6:56: error: expected expression before ';' token
6 | {(judge(x)==0&&judge(y)==0)?printf("%d+%d=%d";c,b,a): ;
| ^
foo.c: In function 'judge':
foo.c:15:10: warning: right-hand operand of comma expression has no effect [-Wunused-value]
15 | {for(m=2,n,o;m<n;m++)
| ^
foo.c:15:12: warning: right-hand operand of comma expression has no effect [-Wunused-value]
15 | {for(m=2,n,o;m<n;m++)
| ^
foo.c:22:7: error: expected expression before 'return'
22 | o==0?return 0:return 1;
| ^~~~~~
foo.c:25:3: warning: no return statement in function returning non-void [-Wreturn-type]
25 | }
| ^
foo.c: In function 'main':
foo.c:3:22: warning: unused variable 'n' [-Wunused-variable]
3 | {int a=0,x=0,y=0,m=0,n=0,o=0;
| ^
foo.c: At top level:
foo.c:14:6: warning: 'judge' defined but not used [-Wunused-function]
14 | int judge(int n)
| ^~~~~
[Hydro](https://hydro.ac)提供评测服务