记录详情

Compile Error

foo.c:4:1: error: unknown type name 'R'; use 'enum' keyword to refer to the type
    4 | R G[5][5] = {
      | ^
      | enum 
foo.c:4:13: warning: missing braces around initializer [-Wmissing-braces]
    4 | R G[5][5] = {
      |             ^
    5 |         p,l,w,w,l,
      |         {        }
    6 |         w,p,l,w,l,
      |         {        }
    7 |         l,w,p,l,w,
      |         {        }
    8 |         l,l,w,p,w,
      |         {        }
    9 |         w,w,l,l,p
      |         {
   10 | };
      | }
foo.c: In function 'main':
foo.c:19:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'enum S *' [-Wformat=]
   19 |                 scanf("%d",&A[i]);
      |                        ~^  ~~~~~
      |                         |  |
      |                         |  enum S *
      |                         int *
foo.c:22:25: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'enum S *' [-Wformat=]
   22 |                 scanf("%d",&B[i]);
      |                        ~^  ~~~~~
      |                         |  |
      |                         |  enum S *
      |                         int *
[Hydro](https://hydro.ac)提供评测服务

信息

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