Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132157 曾钰涵 03字符加密 C++ Compile Error 0 MS 0 KB 169 2025-10-07 10:06:51

Tests(0/0):


Code:

a#include<iostream> using namespace std; int main(){ char c1; int n=2; cin>>c1; char c2=((c1-65)+n)%26+65; cout<<c2<<endl; return 0; }


Run Info:

Main.cc:1:2: error: stray '#' in program
 a#include  
  ^
Main.cc:1:1: error: 'a' does not name a type
 a#include  
 ^
Main.cc: In function 'int main()':
Main.cc:6:5: error: 'cin' was not declared in this scope
     cin>>c1;
     ^
Main.cc:8:5: error: 'cout' was not declared in this scope
     cout<