Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145596 张晓冉 字符转换 C++ Compile Error 0 MS 0 KB 145 2026-01-25 16:53:12

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