运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
270225 我好鶸 1423 - 植树造林(20 分) 编译错误 0 0 MS 0 KB C++ 435 3年前
暂时无法获取本题测试点详情。

Main.cc:6:8: error: array bound is not an integer constant before ‘]’ token
6 | int a[N], b[N], pos[N];
| ^
Main.cc:6:14: error: array bound is not an integer constant before ‘]’ token
6 | int a[N], b[N], pos[N];
| ^
Main.cc:6:22: error: array bound is not an integer constant before ‘]’ token
6 | int a[N], b[N], pos[N];
| ^
Main.cc: In function ‘int main()’:
Main.cc:14:10: error: ‘a’ was not declared in this scope
14 | cin >> a[i];
| ^
Main.cc:16:10: error: ‘b’ was not declared in this scope
16 | cin >> b[i];
| ^
Main.cc:17:3: error: ‘pos’ was not declared in this scope
17 | pos[b[i]] = i;
| ^~~
Main.cc:20:6: error: ‘a’ was not declared in this scope
20 | if(a[i+1] == b[pos[a[i]]-1])
| ^
Main.cc:20:16: error: ‘b’ was not declared in this scope
20 | if(a[i+1] == b[pos[a[i]]-1])
| ^
Main.cc:20:18: error: ‘pos’ was not declared in this scope
20 | if(a[i+1] == b[pos[a[i]]-1])
| ^~~