| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 127694 | 陈冠樾 | 逆序输出 | C++ | Compile Error | 0 MS | 0 KB | 203 | 2025-07-28 16:42:07 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { cin >> a[i]; } for (int j = n; j >= 1; j--) { cout << a[j] << " "; } }
Main.cc: In function 'int main()':
Main.cc:7:10: error: 'a' was not declared in this scope
cin >> a[i];
^
Main.cc:10:11: error: 'a' was not declared in this scope
cout << a[j] << " ";
^