| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150746 | 刘柠锐 | 13分苹果 | C++ | Compile Error | 0 MS | 0 KB | 154 | 2026-03-30 17:12:09 |
#include<iostream> using namespace std; int main(){ int m,n; cin>>m; n=0; for(int x=1;x<=m;x++){ n=n+x; } cout<<n; }
Main.cc:1:20: warning: extra tokens at end of #include directive
#include using namespace std;
^
Main.cc: In function 'int main()':
Main.cc:4:5: error: 'cin' was not declared in this scope
cin>>m; n=0;
^
Main.cc:4:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
Main.cc:8:5: error: 'cout' was not declared in this scope
cout<