记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:11: error: 'n' undeclared (first use in this function)
    7 |     int a[n];
      |           ^
foo.c:7:11: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    8 |     for(int i=0;i<N;i++)
      |     ^~~
foo.c:10:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   10 |         for(int i=0;i<M;i++)
      |         ^~~
foo.c:16:37: error: 'k' undeclared (first use in this function)
   16 |                         for(int x=R;k>j;x--)
      |                                     ^
foo.c:7:9: warning: unused variable 'a' [-Wunused-variable]
    7 |     int a[n];
      |         ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1508 4. Different sequence
语言
C
递交时间
2023-10-07 20:55:03
评测时间
2023-10-07 20:55:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes