| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156725 | 谢绍澜 | 03大写字母转小写字母 | C++ | Compile Error | 0 MS | 0 KB | 137 | 2026-07-09 17:18:03 |
#include<bits/stdc++.h> usingnamespacestd; intmain(){ char a; cin>>a; a=char(a+32); cout<<a<<endl; return0; }
Main.cc:2:1: error: 'usingnamespacestd' does not name a type
usingnamespacestd;
^
Main.cc:3:9: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
intmain(){
^
Main.cc: In function 'int intmain()':
Main.cc:5:5: error: 'cin' was not declared in this scope
cin>>a;
^
Main.cc:5: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:7:5: error: 'cout' was not declared in this scope
cout<& __os)
^
Main.cc:8:5: error: 'return0' was not declared in this scope
return0;
^
Main.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^