Language: C++


int n;
string s;

int main(){
	cin>>n>>s;
	for(int i=0;i<s.size();i++) cout<<(char)((s[i]-'A'+n)%26+'A');
	cout<<endl;
}#include <bits/stdc++.h>
#define syosu(x) fixed<<setprecision(x)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef pair<double,double> pdd;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<string> vs;
typedef vector<P> vp;
typedef vector<vp> vvp;
typedef vector<pll> vpll;
typedef pair<int,P> pip;
typedef vector<pip> vip;
const int inf=1<<30;
const ll INF=1ll<<55;
const double pi=acos(-1);
const double eps=1e-8;
const ll mod=998244353;
const int dx[4]={-1,0,1,0},dy[4]={0,-1,0,1};

int n;
string s;

int main(){
	cin>>n>>s;
	for(int i=0;i<s.size();i++) cout<<(char)((s[i]-'A'+n)%26+'A');
	cout<<endl;
}

Compiler output:
a.cc:9:2: error: stray '#' in program
    9 | }#include <bits/stdc++.h>
      |  ^
a.cc:3:1: error: 'string' does not name a type
    3 | string s;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>n>>s;
      |         ^~~
a.cc:6:17: error: 's' was not declared in this scope
    6 |         cin>>n>>s;
      |                 ^
a.cc:7:37: error: 'cout' was not declared in this scope
    7 |         for(int i=0;i<s.size();i++) cout<<(char)((s[i]-'A'+n)%26+'A');
      |                                     ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout<<endl;
      |         ^~~~
a.cc:8:15: error: 'endl' was not declared in this scope
    8 |         cout<<endl;
      |               ^~~~
a.cc: At global scope:
a.cc:9:3: error: 'include' does not name a type
    9 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:14:9: error: 'pair' does not name a type
   14 | typedef pair<int,int> P;
      |         ^~~~
a.cc:15:9: error: 'pair' does not name a type
   15 | typedef pair<double,double> pdd;
      |         ^~~~
a.cc:16:9: error: 'pair' does not name a type
   16 | typedef pair<ll,ll> pll;
      |         ^~~~
a.cc:17:9: error: 'vector' does not name a type
   17 | typedef vector<int> vi;
      |         ^~~~~~
a.cc:18:9: error: 'vector' does not name a type
   18 | typedef vector<vi> vvi;
      |         ^~~~~~
a.cc:19:9: error: 'vector' does not name a type
   19 | typedef vector<double> vd;
      |         ^~~~~~
a.cc:20:9: error: 'vector' does not name a type
   20 | typedef vector<vd> vvd;
      |         ^~~~~~
a.cc:21:9: error: 'vector' does not name a type
   21 | typedef vector<ll> vl;
      |         ^~~~~~
a.cc:22:9: error: 'vector' does not name a type
   22 | typedef vector<vl> vvl;
      |         ^~~~~~
a.cc:23:9: error: 'vector' does not name a type
   23 | typedef vector<string> vs;
      |         ^~~~~~
a.cc:24:9: error: 'vector' does not name a type
   24 | typedef vector<P> vp;
      |         ^~~~~~
a.cc:25:9: error: 'vector' does not name a type
   25 | typedef vector<vp> vvp;
      |         ^~~~~~
a.cc:26:9: error: 'vector' does not name a type
   26 | typedef vector<pll> vpll;
      |         ^~~~~~
a.cc:27:9: error: 'pair' does not name a type
   27 | typedef pair<int,P> pip;
      |         ^~~~
a.cc:28:9: error: 'vector' does not name a type
   28 | typedef vector<pip> vip;
      |         ^~~~~~
a.cc:31:17: error: 'acos' was not declared in this scope
   31 | const double pi=acos(-1);
      |                 ^~~~
a.cc:36:5: error: redefinition of 'int n'
   36 | int n;
      |     ^
a.cc:2:5: note: 'int n' previously declared here
    2 | int n;
      |     ^
a.cc:37:1: error: 'string' does not name a type
   37 | string s;
      | ^~~~~~
a.cc:39:5: error: redefinition of 'int main()'
   39 | int main(){
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:40:9: error: 'cin' was not declared in this scope
   40 |         cin>>n>>s;
      |         ^~~
a.cc:40:17: error: 's' was not declared in this scope
   40 |         cin>>n>>s;
      |                 ^
a.cc:41:37: error: 'cout' was not declared in this scope
   41 |         for(int i=0;i<s.size();i++) cout<<(char)((s[i]-'A'+n)%26+'A');
      |                                     ^~~~
a.cc:42:9: error: 'cout' was not declared in this scope
   42 |         cout<<endl;
      |         ^~~~
a.cc:42:15: error: 'endl' was not declared in this scope
   42 |         cout<<endl;
      |               ^~~~