记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  int a[10005]{ '\0' }, b[10005]{ '\0' };
              ^
foo.c:7:16: warning: statement with no effect [-Wunused-value]
  int a[10005]{ '\0' }, b[10005]{ '\0' };
                ^~~~
foo.c:7:21: error: expected ';' before '}' token
  int a[10005]{ '\0' }, b[10005]{ '\0' };
                     ^
foo.c:7:22: error: expected expression before ',' token
  int a[10005]{ '\0' }, b[10005]{ '\0' };
                      ^
foo.c:7:24: error: 'b' undeclared (first use in this function)
  int a[10005]{ '\0' }, b[10005]{ '\0' };
                        ^
foo.c:7:24: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:22: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  int a[10005]{ '\0' }, b[10005]{ '\0' };
                      ^
foo.c:9:16: error: 'a' undeclared (first use in this function)
   scanf("%d", &a[i]);
                ^
foo.c: In function 'FindAscCount':
foo.c:28:2: error: expected declaration or statement at end of input
  return c;
  ^~~~~~
foo.c: In function 'main':
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d", &n, &p);
  ^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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