| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152630 | 何旻慧 | 情报加密 | C++ | Compile Error | 0 MS | 0 KB | 500 | 2026-04-29 19:18:38 |
#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[80]; cin.getline(a,80); for(int i=1;a[i]!='\0';i++){ if((a[i]<'z'&&a[i]>='a')||(a[i]<'Z'&&a[i]>='A'))cout<<a[i]+1; else if(a[i]='z'||a[i]='Z')cout<<a[i]+1-26; else cout<<a[i]; } return 0; }
Main.cc: In function 'int main()':
Main.cc:12:31: error: lvalue required as left operand of assignment
else if(a[i]='z'||a[i]='Z')cout<