记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  int a[10005]{ '\0' }, n, k, s;
              ^
foo.c:5:16: warning: statement with no effect [-Wunused-value]
  int a[10005]{ '\0' }, n, k, s;
                ^~~~
foo.c:5:21: error: expected ';' before '}' token
  int a[10005]{ '\0' }, n, k, s;
                     ^
foo.c:5:22: error: expected expression before ',' token
  int a[10005]{ '\0' }, n, k, s;
                      ^
foo.c:5:24: error: 'n' undeclared (first use in this function)
  int a[10005]{ '\0' }, n, k, s;
                        ^
foo.c:5:24: note: each undeclared identifier is reported only once for each function it appears in
foo.c:5:22: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  int a[10005]{ '\0' }, n, k, s;
                      ^
foo.c:5:27: error: 'k' undeclared (first use in this function)
  int a[10005]{ '\0' }, n, k, s;
                           ^
foo.c:5:25: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  int a[10005]{ '\0' }, n, k, s;
                         ^
foo.c:5:30: error: 's' undeclared (first use in this function)
  int a[10005]{ '\0' }, n, k, s;
                              ^
foo.c:5:28: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  int a[10005]{ '\0' }, n, k, s;
                            ^
foo.c:8:16: error: 'a' undeclared (first use in this function)
   scanf("%d", &a[i]);
                ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A7-6 数组的左移函数
比赛
2021(四) 作业第二场:见面赛
语言
C
递交时间
2021-10-30 13:45:22
评测时间
2021-10-30 13:45:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes