| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 131111 | 唐俊逸 | 08大小写转换 | C++ | Compile Error | 0 MS | 0 KB | 389 | 2025-09-20 19:25:56 |
#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 a; cin>>a; if(a>="a"&&a>="z"){ a-=32; } else{ a+=32 } cout<<a; return 0; }
Main.cc: In function 'int main()':
Main.cc:10:11: warning: comparison with string literal results in unspecified behaviour [-Waddress]
if(a>="a"&&a>="z"){
^
Main.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:10:19: warning: comparison with string literal results in unspecified behaviour [-Waddress]
if(a>="a"&&a>="z"){
^
Main.cc:10:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:15:5: error: expected ';' before '}' token
}
^