foo.c:5:28: warning: missing braces around initializer [-Wmissing-braces]
5 | enum jieguo guanxi[5][5] = {
| ^
6 | p,l,w,w,l,
| { }
7 | w,p,l,w,l,
| { }
8 | l,w,p,l,w,
| { }
9 | l,l,w,p,w,
| { }
10 | w,w,l,l,p
| {
11 | };
| }
foo.c: In function 'main':
foo.c:20:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'enum shoushi *' [-Wformat=]
20 | scanf("%d",&A[i]);
| ~^ ~~~~~
| | |
| | enum shoushi *
| int *
foo.c:23:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'enum shoushi *' [-Wformat=]
23 | scanf("%d",&B[i]);
| ~^ ~~~~~
| | |
| | enum shoushi *
| int *
foo.c:27:20: error: 'G' undeclared (first use in this function)
27 | if(G[A[p]][B[q]]==w) {
| ^
foo.c:27:20: note: each undeclared identifier is reported only once for each function it appears in
[Hydro](https://hydro.ac)提供评测服务