Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
105501 罗迎甲 加密的病历单 C++ Compile Error 0 MS 0 KB 720 2025-01-13 17:37:07

Tests(0/0):


Code:

#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 a1[51]; cin>>a1; cout<<endl; int s1=strlen(a1); for(int i=0;i<s1;i++){ if(a1[i]>='A'&&a1[i]<='Z'){ a1[i]+=32; a1[i]+=3; if(a[i]>'z'){ a1[i]-=26; } } else{ a[i]-=32; a[i]+=3; if(a1[i]>'Z'){ a1[i]-=26; } } } for(int i=s1-1;i>=0;i--){ cout<<a1[i]; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:12: error: 'a' was not declared in this scope
         if(a[i]>'z'){ 
            ^
Main.cc:21:7: error: 'a' was not declared in this scope
       a[i]-=32; 
       ^