| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 115811 | 吕毅心 | 加密的病历单 | C++ | Compile Error | 0 MS | 0 KB | 733 | 2025-04-04 18:57:29 |
#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 smi[50]; int n; cin>>smi; n=strlen(smi); for(int i=0;i<n;i++){ if(smi>='a'&&smi<='z'){ smi[i]-=32; smi[i]+=3; if(smi[i]>'Z'){ smi[i]-=26; } } else{ smi[i]+=32; smi[i]+=3; if(smi[i]>'z'){ smi[i]-=26; } } for(int i=n-1;i>=0;i--){ cout<<smi[i]; } return 0; }
Main.cc: In function 'int main()':
Main.cc:13:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(smi>='a'&&smi<='z'){
^
Main.cc:13:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(smi>='a'&&smi<='z'){
^
Main.cc:34:1: error: expected '}' at end of input
}
^