| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 108207 | 朱彦宇 | 序列变换II | C++ | Compile Error | 0 MS | 0 KB | 435 | 2025-01-19 15:24:25 |
#include<bits/stdc++.h> usingnamespace std; namespace std; int main() { int a[100] = {}; int n; cin >> n; for (int i = 0; i < n; i++) { cin >> a[i]; } int k, t = 0; cin >> k; for (int i = 1; i <= k; i++) { int m; cin >> m; t = a[m - 1]; for (int j = m - 1; j < n - 1; j++) { a[j] = a[j + 1]; } a[n - 1] = t; } for (int i = 0; i < n; i++) { cout << a[i] << " "; } return 0; }
Main.cc:2:1: error: 'usingnamespace' does not name a type
usingnamespace std;
^
Main.cc:3:14: error: expected '{' before ';' token
namespace std;
^
Main.cc:26:1: error: expected '}' at end of input
}
^