| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138651 | 向运淇 | 08大小写转换 | C++ | Compile Error | 0 MS | 0 KB | 170 | 2025-11-29 12:17:36 |
#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:4:1: error: expected initializer before 'char'
char c;
^
Main.cc:5:1: error: 'cin' does not name a type
cin>>c;
^
Main.cc:6:1: error: expected unqualified-id before 'if'
if(('A'<=c)&&)((c<='Z'))
^
Main.cc:8:1: error: expected unqualified-id before 'else'
else
^
Main.cc:10:1: error: 'cout' does not name a type
cout<