记录详情

Compile Error

foo.c:5:1: error: unknown type name 'jieguo'; use 'enum' keyword to refer to the type
    5 | jieguo guanxi[5][5] = {
      | ^~~~~~
      | enum 
foo.c:5:23: warning: missing braces around initializer [-Wmissing-braces]
    5 | 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:12:1: error: unknown type name 'shoushi'; use 'enum' keyword to refer to the type
   12 | shoushi A[205];
      | ^~~~~~~
      | enum 
foo.c:13:1: error: unknown type name 'shoushi'; use 'enum' keyword to refer to the type
   13 | shoushi B[205];
      | ^~~~~~~
      | enum 
foo.c: In function 'main':
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)提供评测服务

信息

递交者
类型
递交
题目
P1012 生活大爆炸版 石头剪刀布
语言
C
递交时间
2023-08-23 16:03:54
评测时间
2023-08-23 16:03:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes