Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122232 唐俊逸 03字符加密 C++ Compile Error 0 MS 0 KB 394 2025-06-14 19:10:57

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(){ int A; cin>>A; cout<<char(A); return 0; } char A; cin>>A; A=(A+22-65)%26+65 cout<<A; return 0; }


Run Info:

Main.cc:14:5: error: 'cin' does not name a type
     cin>>A;
     ^
Main.cc:15:5: error: 'A' does not name a type
     A=(A+22-65)%26+65
     ^
Main.cc:17:5: error: expected unqualified-id before 'return'
     return 0;
     ^
Main.cc:18:1: error: expected declaration before '}' token
 }
 ^