记录详情

Compile Error

foo.c: In function 'main':
foo.c:4:15: warning: missing braces around initializer [-Wmissing-braces]
   int a[2][3]={1,2,3,4,5,6},n;
               ^
                {    }{    }
foo.c:6:3: error: assignment to expression with array type
  p=a;
   ^
foo.c:7:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
  printf("%d",p[0]);
          ~^  ~~~~
          %ls
foo.c:4:29: warning: unused variable 'n' [-Wunused-variable]
   int a[2][3]={1,2,3,4,5,6},n;
                             ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1029 比比谁更小
语言
C
递交时间
2021-11-29 17:13:08
评测时间
2021-11-29 17:13:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes