| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154801 | 吴梓滔 | 12输出英文字母 | C++ | Compile Error | 0 MS | 0 KB | 261 | 2026-05-31 09:26:21 |
#include<iostream> #include<cstdio> #include<cstring> #include<cmath> usingnamespacestd; intmain(){ chari; for(i='a';i<='z';i++) cout<<i<<" "; cout<<endl; for(i='Z';i>='A';i--) cout<<i<<" "; return0; }
Main.cc:5:1: error: 'usingnamespacestd' does not name a type
usingnamespacestd;
^
Main.cc:6:9: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
intmain(){
^
Main.cc: In function 'int intmain()':
Main.cc:7:5: error: 'chari' was not declared in this scope
chari;
^
Main.cc:8:9: error: 'i' was not declared in this scope
for(i='a';i<='z';i++)
^
Main.cc:9:9: error: 'cout' was not declared in this scope
cout<& __os)
^
Main.cc:11:9: error: 'i' was not declared in this scope
for(i='Z';i>='A';i--)
^
Main.cc:14:5: error: 'return0' was not declared in this scope
return0;
^
Main.cc:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^