Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
121629 张暄浩 08大小写转换 C++ Compile Error 0 MS 0 KB 206 2025-06-07 18:22:28

Tests(0/0):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ char x; cin>>x; if(x>97==0)||(x<122==0)){ x=x+32; }else{ x=x-32; cout<<x; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:8: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
    if(x>97==0)||(x<122==0)){ 
        ^
Main.cc:8:15: error: expected primary-expression before '||' token
    if(x>97==0)||(x<122==0)){ 
               ^
Main.cc:8:19: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
    if(x>97==0)||(x<122==0)){ 
                   ^
Main.cc:14:4: error: expected '}' at end of input
    }
    ^