| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158686 | 王垚植 | 数组输出 | C++ | Compile Error | 0 MS | 0 KB | 195 | 2026-08-22 16:39:48 |
#include<bits/stdc++.h> using nameapce std; int main(){ int a[10]; for (int i=0;i<10;i++){ cin>>a[i]; } for (int i=0;i<10;i++){ cout<<a[i]; } return 0; }
Main.cc:2:7: error: expected nested-name-specifier before 'nameapce'
using nameapce std;
^
Main.cc: In function 'int main()':
Main.cc:6:6: error: 'cin' was not declared in this scope
cin>>a[i];
^
Main.cc:6:6: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0,
from Main.cc:1:
/usr/include/c++/5/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
Main.cc:9:6: error: 'cout' was not declared in this scope
cout<