For this Question: We have a string S consisting of uppercase English letters. Additionally, an integer N will be given.
Shift each character of S by N in alphabetical order (see below), and print the resulting string.

We assume that A follows Z. For example, shifting A by 2 results in C (A → B → C), and shifting Y by 3 results in B (Y → Z → A → B).The input contains a number and a string separated by a new line.

N
SPrint the string resulting from shifting each character of S by N in alphabetical orderSample Input 1 
2
ABCXYZ
Sample Output 1 
CDEZAB

Sample Input 2 
0
ABCXYZ
Sample Output 2 
ABCXYZ

Sample Input 3 
13
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Sample Output 3 
NOPQRSTUVWXYZABCDEFGHIJKLM, I have written this Solution Code: #include <bits/stdc++.h>
using namespace std;
 
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (auto&& e : s) {
    int i = e - 'A';
    i += n;
    i %= 26;
    e = 'A' + i;
  }
  cout << s << '\n';
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?