Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
99445 | 陈治宸 | 08大小写转换 | C++ | Compile Error | 0 MS | 0 KB | 192 | 2024-11-28 22:42:51 |
#includiostream> using namespace std; int main(){ char a; cin>>a; if(("A"<=a)&&(a>="Z")) {a=a+32;} else{a=a-32; cout<<a<<endl; } return 0; }
Main.cc:1:2: error: invalid preprocessing directive #includiostream #includiostream> ^ Main.cc: In function 'int main()': Main.cc:5:5: error: 'cin' was not declared in this scope cin>>a; ^ Main.cc:6:14: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(("A"<=a)&&(a>="Z")) ^ Main.cc:6:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cc:6:22: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(("A"<=a)&&(a>="Z")) ^ Main.cc:6:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cc:9:6: error: 'cout' was not declared in this scope cout<