Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139635 练明一 字符转换 C++ Compile Error 0 MS 0 KB 177 2025-12-08 16:31:19

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() char a; cin>>a; if(int(a)>=65&&int(a)<=90){ a=a+32; cout<<a; } }


Run Info:

Main.cc:5:2: error: stray '\357' in program
  int main()
  ^
Main.cc:5:2: error: stray '\274' in program
Main.cc:5:2: error: stray '\211' in program
Main.cc:7:12: error: expected ')' before ';' token
      char a;
            ^
Main.cc:5:6: warning: first argument of 'int main(char)' should be 'int' [-Wmain]
  int main()
      ^
Main.cc:5:6: warning: 'int main(char)' takes only zero or two arguments [-Wmain]
Main.cc:9:6: error: 'cin' does not name a type
      cin>>a;
      ^
Main.cc:11:2: error: expected unqualified-id before 'if'
  if(int(a)>=65&&int(a)<=90){
  ^
Main.cc:19:1: error: expected declaration before '}' token
 }
 ^