foo.c: In function 'main':
foo.c:24:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
24 | else
| ^~~~
foo.c:28:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
28 | switch(a[0][0])
| ^~~~~~
foo.c:10:25: warning: array subscript 1 is above array bounds of 'int[1][1]' [-Warray-bounds]
10 | scanf("%d",&a[i][j]);
| ^~~~~~~~~~~~~~~~~~~~
foo.c:4:13: note: while referencing 'a'
4 | int a[1][1];
| ^
foo.c:10:25: warning: array subscript 1 is above array bounds of 'int[1][1]' [-Warray-bounds]
10 | scanf("%d",&a[i][j]);
| ^~~~~~~~~~~~~~~~~~~~
foo.c:4:13: note: while referencing 'a'
4 | int a[1][1];
| ^
foo.c:16:12: warning: array subscript 1 is above array bounds of 'int[1][1]' [-Warray-bounds]
16 | z=a[1][0]-a[0][0]-1;
| ~^~~
foo.c:4:13: note: while referencing 'a'
4 | int a[1][1];
| ^
foo.c:68:15: warning: array subscript 1 is above array bounds of 'int[1]' [-Warray-bounds]
68 | y=a[1][1];
| ~~~~^~~
foo.c:4:13: note: while referencing 'a'
4 | int a[1][1];
| ^
foo.c:77:9: warning: 'days' may be used uninitialized in this function [-Wmaybe-uninitialized]
77 | printf("%d",days);
| ^~~~~~~~~~~~~~~~~
foo.c:75:29: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
75 | days=x+y+k;
| ~~~~^~~~~~
[Hydro](https://hydro.ac)提供评测服务