Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
76870 杨登博 07大小写转换 C++ Compile Error 0 MS 0 KB 233 2024-06-03 20:39:20

Tests(0/0):


Code:

#include <iostream> #include <cmath> using namespace std; int main(){ char a; cin>>a; if (a<='A'){ if (a>='Z') a=a+32; } else{ if (a>='a') if (a<='z') a=a-32 } cout<<a; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:15:1: error: expected ';' before '}' token
 }
 ^