| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150721 | yjh | 13求n加到m的和 | C++ | Compile Error | 0 MS | 0 KB | 142 | 2026-03-30 17:05:09 |
#include<iostream> using nameaspace std; int maina(){ int sw,e,x; cdin>>x>>w; e=0; for(;x<=sw;x++){ e=e++x; } cout.<<e; }
Main.cc:2:7: error: expected nested-name-specifier before 'nameaspace'
using nameaspace std;
^
Main.cc: In function 'int maina()':
Main.cc:5:1: error: 'cdin' was not declared in this scope
cdin>>x>>w;
^
Main.cc:5:10: error: 'w' was not declared in this scope
cdin>>x>>w;
^
Main.cc:8:7: error: expected ';' before 'x'
e=e++x;
^
Main.cc:8:8: warning: operation on 'e' may be undefined [-Wsequence-point]
e=e++x;
^
Main.cc:10:1: error: 'cout' was not declared in this scope
cout.<