| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 114037 | 赵科涵 | 12for循环练习I | C++ | Compile Error | 0 MS | 0 KB | 157 | 2025-03-19 09:58:35 |
#include<bits/stdc++.h> using namesapce std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cout<<i<<endl; } return 0; }
Main.cc:2:7: error: expected nested-name-specifier before 'namesapce'
using namesapce std;
^
Main.cc: In function 'int main()':
Main.cc:6:5: error: 'cin' was not declared in this scope
cin>>n;
^
Main.cc:6:5: 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:8:3: error: 'cout' was not declared in this scope
cout<& __os)
^