Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164972 江俊逸 07大小写转换 C++ Compile Error 0 MS 0 KB 466 2026-11-08 14:32:31

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char zm; cin>>zm; if(zm>='A'){ if(zm<='Z'){ zm+32; } } if(zm>='a'){ if(zm>='z'){ zm-32 } } cout<<zm; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:15: warning: statement has no effect [-Wunused-value]
             zm+32;
               ^
Main.cc:18:9: error: expected ';' before '}' token
         }
         ^
Main.cc:17:15: warning: statement has no effect [-Wunused-value]
             zm-32
               ^