| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 121797 | 张修睿 | 08大小写转换 | C++ | Compile Error | 0 MS | 0 KB | 204 | 2025-06-08 11:47:17 |
#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; }
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)){
^