foo.c: In function 'main':
foo.c:6:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
6 | while(scanf("%d",&n)==1);
| ^~~~~
foo.c:7:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
7 | {
| ^
foo.c:12:19: warning: left-hand operand of comma expression has no effect [-Wunused-value]
12 | while(x>=3,y>=4);
| ^
foo.c:12:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
12 | while(x>=3,y>=4);
| ^~~~~
foo.c:13:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
13 | {
| ^
foo.c:5:10: warning: 'n' is used uninitialized [-Wuninitialized]
5 | x=n,y=n;
| ~^~
foo.c:4:17: note: 'n' declared here
4 | int x,y,n,sum;
| ^
[Hydro](https://hydro.ac)提供评测服务