| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138654 | 向运淇 | 08大小写转换 | C++ | Compile Error | 0 MS | 0 KB | 175 | 2025-11-29 12:18:43 |
#include <iostream> using namespase std; int main(){ char c; cin>>c; if(('A'<=c)&&)((c<='Z')){ c=c+32;} else{ c=c-32;} cout<<c<<endl; return 0; }
Main.cc:2:7: error: expected nested-name-specifier before 'namespase'
using namespase std;
^
Main.cc: In function 'int main()':
Main.cc:5:1: error: 'cin' was not declared in this scope
cin>>c;
^
Main.cc:5:1: 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:6:14: error: expected primary-expression before ')' token
if(('A'<=c)&&)((c<='Z')){
^
Main.cc:6:25: error: expected ';' before '{' token
if(('A'<=c)&&)((c<='Z')){
^
Main.cc:10:1: error: 'cout' was not declared in this scope
cout<& __os)
^