Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
99868 陈治宸 08大小写转换 C++ Compile Error 0 MS 0 KB 198 2024-11-30 22:56:55

Tests(0/0):


Code:

#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; }


Run Info:

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<