| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76865 | 洪誉洲 | 07大小写转换 | C++ | Compile Error | 0 MS | 0 KB | 214 | 2024-06-03 20:32:56 |
# 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') cout<<a<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:12:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(a='A')
^
Main.cc:20:1: error: expected '}' at end of input
}
^