记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
               ^
foo.c:6:17: warning: statement with no effect [-Wunused-value]
  int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
                 ^~~~
foo.c:6:22: error: expected ';' before '}' token
  int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
                      ^
foo.c:6:23: error: expected expression before ',' token
  int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
                       ^
foo.c:6:25: error: 'a2' undeclared (first use in this function)
  int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
                         ^~
foo.c:6:25: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:23: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  int a1[10005]{ '\0' }, a2[10005]{ '\0' }, a3[10005]{ '\0' };
                       ^
foo.c:9:16: error: 'a1' undeclared (first use in this function); did you mean 'a2'?
   scanf("%d", &a1[i]);
                ^~
                a2
foo.c:13:16: error: 'a3' undeclared (first use in this function); did you mean 'a1'?
   scanf("%d", &a3[i]);
                ^~
                a1
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d%d", &n, &s, &p);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2021(四) 作业第二场:见面赛
语言
C
递交时间
2021-10-30 15:28:08
评测时间
2021-10-30 15:28:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes