criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<bits/stdc++.h>
using namespace std ; 

int main() {

  int N ;
  string S ; 
  
  for( int i = 0 ; i < "S"s.size ; i++  ){
    S.at(i) = S.at(i) + N ; 
  }
  cout << S << endl ; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    9 |   for( int i = 0 ; i < "S"s.size ; i++  ){
      |                        ~~~~~^~~~
      |                                 ()
Language: C++

#include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#define ArraySizeOf(array)     (sizeof(array) / sizeof(array[0]))
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for(int i=1;i<n;i++)
#define int long long
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define _GLIBCXX_DEBUG
int INF = 1e9 + 7;
unsigned NthDayOfWeekToDay(unsigned n, unsigned dow, unsigned dow1)
{
    unsigned day;
    if (dow < dow1) dow += 7;
    day = dow - dow1;
    day += 7 * n - 6;
    return day;
}
unsigned DayToWeekNumber(unsigned day)
{
    return (day - 1) / 7 + 1;
}
unsigned AnotherDayOfWeek(unsigned day, unsigned day0, unsigned dow0)
{
    return (dow0 + 35 + day - day0) % 7;
}
using namespace std;
signed main() {
    int N;
    string S; cin >> N >> S;
    rep(i, S.size()) {
        if (int(S.at(i)) + N > 90)S.at(i) = char(int(S.at(i) + N - 26));
        else S.at(i)=char(int(S.at(i) + N));
        cout << S.at(i);
    }
    cout << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:13: error: expected primary-expression before 'long'
   38 | #define int long long
      |             ^~~~
a.cc:63:13: note: in expansion of macro 'int'
   63 |         if (int(S.at(i)) + N > 90)S.at(i) = char(int(S.at(i) + N - 26));
      |             ^~~
a.cc:63:13: error: expected ')' before 'long'
   63 |         if (int(S.at(i)) + N > 90)S.at(i) = char(int(S.at(i) + N - 26));
      |            ~^
      |             )
a.cc:63:45: error: expected primary-expression before 'char'
   63 |         if (int(S.at(i)) + N > 90)S.at(i) = char(int(S.at(i) + N - 26));
      |                                             ^~~~
a.cc:64:22: error: expected primary-expression before 'char'
   64 |         else S.at(i)=char(int(S.at(i) + N));
      |                      ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N; cin>>N;
  string S; cin>>S;
  if(S.at(N-1)!="Z")
    S.at(N-1)++;
  else S.at(N-1)='A';
  cout<<S<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |   if(S.at(N-1)!="Z")
      |      ~~~~~~~~~^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int n;
  string s;
  cin >> n >> s;
  
  int nn = s.length();
  
  for(int i = 0; i < nn; i++){
    int tmp = (int)s[i];
     
    int tt = tmp - 65 + 1;
    
    tt = tt + n;
    int ans = tt % 26;
    s[i] = char(ans + 65 - 1);
  }
  for(int i = 0; i < nn; i++){
    cout <<s[i];
  }
    

Compiler output:
a.cc: In function 'int main()':
a.cc:22:4: error: expected '}' at end of input
   22 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int k;
    cin>>k;
    string str;
    cin>>str;
    for (int i=0; i<str.size();i++){
        s[i]+=k;
        if (str[i]>'Z'){
            str[i]=64+(str[i]-'Z');
        }
    }
    cout<<str<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 's' was not declared in this scope
   11 |         s[i]+=k;
      |         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int k;
    cin>>k;
    string str;
    cin>>str;
    for (int i=0; i<s.size();i++){
        s[i]+=k;
        if (s[i]>'Z'){
            s[i]=64+(s[i]-'Z');
        }
    }
    cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 's' was not declared in this scope
   10 |     for (int i=0; i<s.size();i++){
      |                     ^
a.cc:16:11: error: 's' was not declared in this scope
   16 |     cout<<s<<endl;
      |           ^
Language: C++

#include<bits/stdc++.h>
  using namespace std ;

 int main(){
   int n,c;
   cin>>c;
   n=c%10;
    if(n==2||n==4||n==5||n==7||n==9){
        cout<<"hon";
    }
    else if(n==0||n==1||n==6||n==8){
        cout<<"pon";
    }
    else {
        cout<<"bon";
    }


#include<bits/stdc++.h>
  using namespace std ;

 int main(){
   int n,c;
   cin>>c;
   n=c%10;
    if(n==2||n==4||n==5||n==7||n==9){
        cout<<"hon";
    }
    else if(n==0||n==1||n==6||n==8){
        cout<<"pon";
    }
    else {
        cout<<"bon";
    }




Compiler output:
a.cc: In function 'int main()':
a.cc:22:10: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   22 |  int main(){
      |          ^~
a.cc:22:10: note: remove parentheses to default-initialize a variable
   22 |  int main(){
      |          ^~
      |          --
a.cc:22:10: note: or replace parentheses with braces to value-initialize a variable
a.cc:22:12: error: a function-definition is not allowed here before '{' token
   22 |  int main(){
      |            ^
a.cc:34:6: error: expected '}' at end of input
   34 |     }
      |      ^
a.cc:4:12: note: to match this '{'
    4 |  int main(){
      |            ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    string s;
    int n,i;
    cin>>n;
    cin>>s;
    for(i=0;i<n;i++){
        reverse(s.begin(),s.end())
        s.pop_back();
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: expected ';' before 's'
   11 |         reverse(s.begin(),s.end())
      |                                   ^
      |                                   ;
   12 |         s.pop_back();
      |         ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int n;
  string s;
  int x;
  int y;
  cin>>n>>s;
  
  for (int i;i<s.size();i++){
    x='s[i]'-'A'+26+n;
    if (x>=26){
      y=x % 26;
      char ans ='A'+y
      cout<<ans;
    }
  }
}
      

Compiler output:
a.cc:12:7: warning: multi-character character constant [-Wmultichar]
   12 |     x='s[i]'-'A'+26+n;
      |       ^~~~~~
a.cc: In function 'int main()':
a.cc:16:7: error: expected ',' or ';' before 'cout'
   16 |       cout<<ans;
      |       ^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
  int n;
  scanf("%d",&n);
  char str[10001];
  scanf("%s",str);
  int length=strlen(str);
  for(int i=0;i<length;i++){
    str[i]+=n;
    if(str[i]>90) str[i]-=25;
  }
  printf("%s",str);
  return 0;


Compiler output:
main.c: In function 'main':
main.c:15:3: error: expected declaration or statement at end of input
   15 |   return 0;
      |   ^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define ll long long
#define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)
#define be(v) v.begin(), v.end()
#define dcout cout << fixed << setprecision(20) 
ll INF = 1LL << 60;
ll mod = 1e9 + 7;

int main() {
	vector<char> table(26);
	table[0]='A';
	for(int i=1;i<25;i++) {
		table[i]=table[i-1];
	}
	rep(i,26) table.push_back(a[i]);
	int n; string s; cin >> n >> s;
	int ss=s.size();
	rep(i,ss) {
		rep(j,26) {
			if(s[i]==table[j]) s[i] = table[i+n];
		}
	}
	cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:35: error: 'a' was not declared in this scope
   17 |         rep(i,26) table.push_back(a[i]);
      |                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll; 
int main() {
  ll c; cin>>c;
  char w[26]={'A','B','C','D','E','F','G','H','I'
    ,'J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
  string s; cin>>s;
  ll n=s.size();
  rep(i, n) {
    rep(j, 26) {
      if(s.at(i)==w[j]) {
        s.at(i) = w[(j+c)%26];
        break;
      }
    }
    cout << s.at(i);
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <math.h>

#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
#define PI 3.14159265358979323846264338327950L
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define SIZE_OF_ARRAY(array) (sizeof(array) / sizeof(array[0]))

int main() {
  int N;
  char S[10010];
  cin >> N >> S;

  int len = strlen(S);

  rep(i, len) {
    int x = S[i] - 'A';
    x = (x + N) % 26;
    putchar('A' + x);
  }
  cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'strlen' was not declared in this scope
   17 |   int len = strlen(S);
      |             ^~~~~~
a.cc:7:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include <vector>
  +++ |+#include <cstring>
    7 | using namespace std;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
 int N;
 string S;
 cin>>N>>S;
 vector<string>ABC(26);
 ABC={
"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"
 };
 int a=S.size();
vector<int>answer(a);
for(int  i=0; i<a; i++){
for(int j=0; j<25; j++){
if(S.at(i)==ABC.at(j{
answer.at(i)==j;
continue;
}
}
}
for(int i=0; i<a; i++){
answer.at(i)+=N;
if(answer.at(i)>26){
answer.at(i)-=26;
}
cout<<ABC.at(answer.at(i));
}
cout<<""<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: expected ')' before '{' token
   15 | if(S.at(i)==ABC.at(j{
      |                   ~ ^
      |                     )
a.cc:18:2: error: expected ')' before '}' token
   18 | }
      |  ^
      |  )
   19 | }
      | ~ 
a.cc:15:3: note: to match this '('
   15 | if(S.at(i)==ABC.at(j{
      |   ^
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
 int N;
 string S;
 cin>>N>>S;
 vector<syring>ABC(26);
 ABC={
"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"
 };
 int a=S.size();
vector<int>answer(a);
for(int  i=0; i<a; i++){
for(int j=0; i<25;){
if(S.at(i)==ABC.at(j{
answer.at(i)==j;
continue;
}
}
}
for(int i=0; i<a; i++){
answer.at(i)+=N;
if(answer.at(i)>26){
answer.at(i)-=26;
}
cout<<ABC.at(answer.at(i));
}
cout<<""<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'syring' was not declared in this scope
    7 |  vector<syring>ABC(26);
      |         ^~~~~~
a.cc:7:15: error: template argument 1 is invalid
    7 |  vector<syring>ABC(26);
      |               ^
a.cc:7:15: error: template argument 2 is invalid
a.cc:10:2: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment
   10 |  };
      |  ^
a.cc:15:17: error: request for member 'at' in 'ABC', which is of non-class type 'int'
   15 | if(S.at(i)==ABC.at(j{
      |                 ^~
a.cc:15:21: error: expected ')' before '{' token
   15 | if(S.at(i)==ABC.at(j{
      |                   ~ ^
      |                     )
a.cc:18:2: error: expected ')' before '}' token
   18 | }
      |  ^
      |  )
   19 | }
      | ~ 
a.cc:15:3: note: to match this '('
   15 | if(S.at(i)==ABC.at(j{
      |   ^
a.cc:19:1: error: expected primary-expression before '}' token
   19 | }
      | ^
a.cc:26:11: error: request for member 'at' in 'ABC', which is of non-class type 'int'
   26 | cout<<ABC.at(answer.at(i));
      |           ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
    int N;
    string S;
    cin >> N >> S;

    for(int i = 0; i < S.length(); i++) cout << (char) ((S[i] - "A" + N) % 26 + "A");
    cout << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:63: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} and 'const char [2]' to binary 'operator-'
    9 |     for(int i = 0; i < S.length(); i++) cout << (char) ((S[i] - "A" + N) % 26 + "A");
Language: C++

#include<bits/stdc++.h>

#include<math.h>
using namespace std;

int main(){
  int n;
  cin >> n;
  string s;
  cin >> s;
  vector<char> a(26);
  a[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
  for(int i;i<s.size();i++){
    if(i+n<26){
     s[i]=a[i+n];
    }
    else{
      s[i]=a[i+n-26];
    }
  }
  cout << s;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:113: error: cannot convert '<brace-enclosed initializer list>' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} in assignment
   12 |   a[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
      |                                                                                                                 ^
Language: C++

#include<iostream>

#include<math.h>
using namespace std;

int main(){
  int n;
  cin >> n;
  string s;
  cin >> s;
  vector<char> a(26);
  a[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
  for(int i;i<s.size();i++){
    if(i+n<26){
     s[i]=a[i+n];
    }
    else{
      s[i]=a[i+n-26];
    }
  }
  cout << s;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'vector' was not declared in this scope
   11 |   vector<char> a(26);
      |   ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include<math.h>
  +++ |+#include <vector>
    4 | using namespace std;
a.cc:11:10: error: expected primary-expression before 'char'
   11 |   vector<char> a(26);
      |          ^~~~
a.cc:12:3: error: 'a' was not declared in this scope
   12 |   a[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
      |   ^
Language: C++

#include<bits/stdc++.h>
#include<math.h>
using namespace std;

int main(){
  int n;
  string s;
  cin >> n ;
  cin >> s;
  char a[26];
  a[52]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}
 
  for(int i;i<s.size();i++){
    for(int j;j<26;j++){
      if(s[i]==a[j]){
        if(j+n<26){
        s[i]=a[j+n];
        }
        else{
          s[i]=a[j+n-26];
        }
      }
        
    }
  }
  cout << s;
  return 0;
}
        


Compiler output:
a.cc: In function 'int main()':
a.cc:11:113: error: cannot convert '<brace-enclosed initializer list>' to 'char' in assignment
   11 |   a[52]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}
      |                                                                                                                 ^
a.cc:13:13: error: 'i' was not declared in this scope
   13 |   for(int i;i<s.size();i++){
      |             ^
Language: C++

#include<bits/stdc++.h>
#include<math.h>
using namespace std;

int main(){
  int n;
  string s;
  cin >> n ;
  cin >> s;
  char a[26];
  a[52]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}
 
  for(int i;i<s.size();i++){
    for(int j;j<26;j++){
      if(s[i]==a[j]){
        if(j+n<26){
        s[i]=a[j+n];
        }
        else{
          s[i]=a[j+n-26];
      }
        
    }
  }
  cout << s;
  return 0;
}
        


Compiler output:
a.cc: In function 'int main()':
a.cc:11:113: error: cannot convert '<brace-enclosed initializer list>' to 'char' in assignment
   11 |   a[52]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}
      |                                                                                                                 ^
a.cc:13:13: error: 'i' was not declared in this scope
   13 |   for(int i;i<s.size();i++){
      |             ^
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
#include<math.h>
using namespace std;

int main(){
  int n;
  string s;
  cin >> n ;
  cin >> s;
  vector<char> a(52);
  a[52]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}
 }
  for(int i;i<s.size();i++){
    for(int j;j<26;j++){
      if(s[i]==a[j]){
        s[i]=a[j+n];
      }
    }
  }
  cout << s;
  return 0;
}
        


Compiler output:
a.cc: In function 'int main()':
a.cc:11:217: error: cannot convert '<brace-enclosed initializer list>' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} in assignment
   11 |   a[52]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}
      |                                                                                                                                                                                                                         ^
a.cc: At global scope:
a.cc:13:3: error: expected unqualified-id before 'for'
   13 |   for(int i;i<s.size();i++){
      |   ^~~
a.cc:13:13: error: 'i' does not name a type
   13 |   for(int i;i<s.size();i++){
      |             ^
a.cc:13:24: error: 'i' does not name a type
   13 |   for(int i;i<s.size();i++){
      |                        ^
a.cc:20:3: error: 'cout' does not name a type
   20 |   cout << s;
      |   ^~~~
a.cc:21:3: error: expected unqualified-id before 'return'
   21 |   return 0;
      |   ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<bits/stdc++>
#include<math.h>
using namespace std;

int main(){
  int n;
  string s;
  cin >> n ;
  cin >> s;
  vector<char> a(26);
  a[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}
  for(int i;i<s.size();i++){
    for(int j;j<26;j++){
      if(s[i]==a[j]){
        s[i]=a[j+2];
      }
    }
  }
  cout << s;
  return 0;
}
        

Compiler output:
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int a = 'A';
  int z = 'Z';
  int m = s.size()
  for (char c : s) {
    int d = c;
    d += n;
    if (d <= z) {
      c = d;
    }
    else {
      c = d - z + a - 1;
    }
  }
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected ',' or ';' before 'for'
   12 |   for (char c : s) {
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  string MOMI=ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYG;
  int N;
  cin>>N;
  string S;
  cin>>S;
  
  for(int i=0;i<S.size();i++) {
    for(int j=0;j<27;j++) {
      if(S.at(i)==MOMI.at(j)) {
        S.at(i)=MOMI.at(j+N);
      }
    }
  }
  cout<<S<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYG' was not declared in this scope
    4 |   string MOMI=ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYG;
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
	int n,i,m;
	char s[100000];

	scanf("%d%s",&n,s);
	m=strlen(s);
	for(i=0;i<m;i++){
		s[i]+=0x(n);
		if(s[i]>'Z')
			s[i]-='Z';
	}
	printf("%s",s);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:23: error: invalid suffix "x" on integer constant
   11 |                 s[i]+=0x(n);
      |                       ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll=long long;

int main() {
	int n;
	string s;
	cin>>s;
	
	rep(i,s.length()){
		int p=(unsigned char)s[i];
		p=(p+n)%26;
		char c=(char)p
		s[i]=c;
	}
	
	cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected ',' or ';' before 's'
   15 |                 s[i]=c;
      |                 ^
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
    int N;
    char S[10010];
    cin >> N >> S;
    
    unsigned long lng = strlen(S);
    for ( int i = 0; i < lng; ++i){
        int x = S[i] - 'A';
        x = ( x + N ) % 26;
        S[i] = 'A' + x;
    }
    
    cout << S << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: 'strlen' was not declared in this scope
   10 |     unsigned long lng = strlen(S);
      |                         ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
    int N;
    char S[10010];
    cin >> N >> S;
    
    int lng = strlen(S);
    for ( int i = 0; i < lng; ++i){
        int x = S[i] - 'A';
        x = ( x + N ) % 26;
        S[i] = 'A' + x;
    }
    
    cout << S << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'strlen' was not declared in this scope
   10 |     int lng = strlen(S);
      |               ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

v#include <bits/stdc++.h>
using namespace std;
#define FOR(i, o, n) for (auto i = (o); (i) < (n); ++(i))
#define FOR1(i, n) FOR(i, 1, n+1)
#define REP(i, n) FOR(i, 0, n)
#define REPR(i, n) for (auto i = (n)-1; (i) >= 0; --i)
#define REPI(itr, v) for (auto itr = v.begin(); itr != v.end(); ++itr)
#define REPIR(itr, v) for (auto itr = v.rbegin(); itr != v.rend(); ++itr)
#define fi first
#define se second
#define ll long long
#define int long long
#define V2(name, h, w) vector<vector<int> > name((h), vector<int>(w));


#define dl(line) cerr << "RUN: until " << (line) << "th line." << endl
#define dv(name, value) cerr << (name) << " is " << (value) << endl
#define da(v)  cerr << "["; REPI(itr, v){cerr << *itr << (itr != --v.end() ? ", " : "");} cerr << "]" << endl

signed main(){
  int N; cin >> N;
  string S; cin >> S;
  REP(x, (ll)S.size()) {
    char ac = S.at(x) + N;
    if (ac > 'Z') {
      ac -= 'Z' - 'A' + 1;
    }
    printf("%c", ac);
  }
  cout << endl;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type; did you mean 'dv'?
    1 | v#include <bits/stdc++.h>
      | ^
      | dv
a.cc: In function 'int main()':
a.cc:21:10: error: 'cin' was not declared in this scope
   21 |   int N; cin >> N;
      |          ^~~
a.cc:22:3: error: 'string' was not declared in this scope
   22 |   string S; cin >> S;
      |   ^~~~~~
a.cc:22:20: error: 'S' was not declared in this scope
   22 |   string S; cin >> S;
      |                    ^
a.cc:28:5: error: 'printf' was not declared in this scope
   28 |     printf("%c", ac);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | v#include <bits/stdc++.h>
a.cc:30:3: error: 'cout' was not declared in this scope
   30 |   cout << endl;
      |   ^~~~
a.cc:30:11: error: 'endl' was not declared in this scope; did you mean 'dl'?
   30 |   cout << endl;
      |           ^~~~
      |           dl
Language: Java

// 問題URL
// rowdworks.jp/public/employees/89917/occupations

import java.util.*;
import java.lang.*;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer n = Integer.parseInt(scanner.next());
        String str = scanner.next();

        char[] alphabet = new char[26];
        char c = 'A';

        for(int i = 0; i < 26; i++) {
            alphabet[i] = c++;
        }

        String answer = new String();
        for(int i =0 ; i < str.length(); i++) {
            for(int k =0; k < alphabet.length; k++) {
                if(str.charAt(i) == alphabet[k]) {
                    int kekka = (k+n) - (26 * ((k+n) / 26));
                    System.out.println(kekka);
                    answer += alphabet[kekka];
                }
            }
        }
        System.out.println(answer);
    }

Compiler output:
Main.java:33: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,b;
  char S[10000];
  cin>>N;
  int len=strlen(S)
   b=N%26;
  for(int i=0;i<len;i++){
  cin>>S[i];
   
    
      cout<<(char)((int)S[i]+b);
    
  }
  cout<<endl;
 
 
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: expected ',' or ';' before 'b'
    8 |    b=N%26;
      |    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,a,b;
  char S[10000];
  cin>>N;
  int len=strlen(S)
   b=N%26;
  for(int i=0;i<len;i++){
  cin>>S[i];
    a=(int)'S[i]'
    
      cout<<(char)(a+b);
    
  }
  cout<<endl;
 
 
  
}


Compiler output:
a.cc:11:12: warning: multi-character character constant [-Wmultichar]
   11 |     a=(int)'S[i]'
      |            ^~~~~~
a.cc: In function 'int main()':
a.cc:8:4: error: expected ',' or ';' before 'b'
    8 |    b=N%26;
      |    ^
a.cc:11:18: error: expected ';' before 'cout'
   11 |     a=(int)'S[i]'
      |                  ^
      |                  ;
   12 | 
   13 |       cout<<(char)(a+b);
      |       ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,a,b;
  char S[10000];
  cin>>N;
   b=N%26;
  for(int i=0;i<10000;i++){
  cin>>S[i];
    a=int(S[i]);
      cout<<(char)(a+b);
    
  }
  cout<<endl;
 
 
  
  ]


Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: expected primary-expression before ']' token
   18 |   ]
      |   ^
a.cc:18:4: error: expected '}' at end of input
   18 |   ]
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,a,b;
  char S[10000];
  cin>>N;
   b=N%26;
  for(int i=0;i<10000;i++){
  cin>>S[i];
    a=int(S[i])
      cout<<(char)(a+b);
    
  }
  cout<<endl;
 
 
  
  ]

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'cout'
   10 |     a=int(S[i])
      |                ^
      |                ;
   11 |       cout<<(char)(a+b);
      |       ~~~~      
a.cc:18:3: error: expected primary-expression before ']' token
   18 |   ]
      |   ^
a.cc:18:4: error: expected '}' at end of input
   18 |   ]
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

N = int(input())
S = input()

ans = ''
for c in S:
  i = ord(c) - ord('A')
  i = (i+N) % 26
  ans += chr(i + ord('A'))

print(ans)

Compiler output:
a.cc:4:7: error: empty character constant
    4 | ans = ''
      |       ^~
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C

#include<stdio.h>
int main()
{
  int N,i,j;
  char A,Z,S[10000];
  A ='A';　
  Z ='Z';
  scanf("%d",&N);
  scanf("%s",&S);
  for(i=0;i<=10000;i++)
  {
    for(j=0;j<N;j++)
    {
    if(S[i]==Z)
    {
      S[i]=A;
    }
    else
    {
    S[i]=S[i]+1;
    }
    }
  }
  printf("%s",S);
}

Compiler output:
main.c: In function 'main':
main.c:6:10: error: stray '\343' in program
    6 |   A ='A';<U+3000>
      |          ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char>cvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
int main()	{
  int n;string s;
  cin>>n>>s;
  rep(i,s.size){
    int a=s[i]-'A';
    a=(a+n)%26;
    s[i]=(char)(a+'A');
  }
  cout<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   18 |   rep(i,s.size){
      |           ^
a.cc:3:38: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<(int)(n);i++)
      |                                      ^
Language: Java

import java.util.*;
 
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String S = sc.next();
    
    for (int i = 0; i < S.length; i++) {
      S[i] = (char)((S[i] - 'A' + N) % 26 + 'A');
    }
    System.out.print(String.valueOf(S));
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    for (int i = 0; i < S.length; i++) {
                         ^
  symbol:   variable length
  location: variable S of type String
Main.java:10: error: array required, but String found
      S[i] = (char)((S[i] - 'A' + N) % 26 + 'A');
       ^
Main.java:10: error: array required, but String found
      S[i] = (char)((S[i] - 'A' + N) % 26 + 'A');
                      ^
3 errors
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String S = sc.next();
    
    for (int i = 0; i < S.length; i++) {
      s[i] = (char)((s[i] - 'A' + n) % 26 + 'A');
    }
    System.out.print(String.valueOf(s));
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    for (int i = 0; i < S.length; i++) {
                         ^
  symbol:   variable length
  location: variable S of type String
Main.java:10: error: cannot find symbol
      s[i] = (char)((s[i] - 'A' + n) % 26 + 'A');
      ^
  symbol:   variable s
  location: class Main
Main.java:10: error: cannot find symbol
      s[i] = (char)((s[i] - 'A' + n) % 26 + 'A');
                     ^
  symbol:   variable s
  location: class Main
Main.java:10: error: cannot find symbol
      s[i] = (char)((s[i] - 'A' + n) % 26 + 'A');
                                  ^
  symbol:   variable n
  location: class Main
Main.java:12: error: cannot find symbol
    System.out.print(String.valueOf(s));
                                    ^
  symbol:   variable s
  location: class Main
5 errors
Language: C++

#include<iostream>
#include<string>
using namespace std;

int main(){
    int n;
    cin >> n;
    string s;
    cin >> s;
    /*
    char[26] = {
        A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
    };
    */

    for(int i = 0;i < s.size();i++){
        char x = (s.at(i) + n　- 'A')%26 + 'A';
        cout << x;
    }
    cout << endl;

    return 0;
}

Compiler output:
a.cc:17:29: error: extended character 　 is not valid in an identifier
   17 |         char x = (s.at(i) + n　- 'A')%26 + 'A';
      |                             ^
a.cc: In function 'int main()':
a.cc:17:29: error: 'n\U00003000' was not declared in this scope
   17 |         char x = (s.at(i) + n　- 'A')%26 + 'A';
      |                             ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  string S;
  cin >> N >> S;
  string a = ABCDEFGHIJKLMNOPQRSTUVWXYZ;
  for (int i=0; i<S.size(); i++) {
    for (int j=0; j<26; j++) {
      if (S[i] == a[j]) S[i] =a[(j+1)%26];
    }
  }
  cout << S << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' was not declared in this scope
    8 |   string a = ABCDEFGHIJKLMNOPQRSTUVWXYZ;
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int N;
    cin >> N;
    string S;
    cin >> S;
    for(int i=0;i<S.length();i++){
        S[i] += N;
        while(S[i]>'Z'){
            S[i]-=26;
        }
        cout << char(S[i]);
    }
    cout <<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: expected '}' at end of input
   16 |     cout <<endl;
      |                 ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
using namespace std;

string a="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ";
int main(){
  int n;
  string s;
  cin >> n;
  cin >> s;
  for(int =0;i<s.size();i++){
    for(int j=0;j<26;j++){
      if(s[i]==a[j]){
        s[i]=a[j+n];
        break;
      }
    }
  }
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected unqualified-id before '=' token
   11 |   for(int =0;i<s.size();i++){
      |           ^
a.cc:11:10: error: expected ';' before '=' token
   11 |   for(int =0;i<s.size();i++){
      |          ^~
      |          ;
a.cc:11:11: error: expected primary-expression before '=' token
   11 |   for(int =0;i<s.size();i++){
      |           ^
a.cc:11:14: error: 'i' was not declared in this scope
   11 |   for(int =0;i<s.size();i++){
      |              ^
a.cc:11:24: error: expected ')' before ';' token
   11 |   for(int =0;i<s.size();i++){
      |      ~                 ^
      |                        )
a.cc:11:25: error: 'i' was not declared in this scope
   11 |   for(int =0;i<s.size();i++){
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define l long
#define pb push_back
#define mp make_pair
#define mt make_tuple
int main() {
	// your code goes here
	//ifstream cin("input.txt");
	//ofstream cout("output.txt");
	ios_base::sync_with_stdio(false); 
    cin.tie(NULL); 
	
	char a[26];
	for(char c='A';c<='Z';c++) a[i]=c;
	int n; cin>>n;
	string s; cin>>s;
	for(int i=0;i<s.length();i++)
	{
	    int pos = s[i]-'A';
	    pos = (pos+n)%26;
	    cout<<a[pos];
	}
	
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:38: error: 'i' was not declared in this scope
   16 |         for(char c='A';c<='Z';c++) a[i]=c;
      |                                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

using ll=long long;
const ll MOD=1000000007;

int main() {
  string ALP="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ";
  int n;
  cin >> n;
  string s;
  cin >> s;
  int k=s.size()
  for(int i=0;i<k;i++){
    for(int j=0;j<26;j++){
      if(s[i]==ALP[j]){
        s[i]=ALP[j+n];
        break;
      }
    }
  }
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected ',' or ';' before 'for'
   14 |   for(int i=0;i<k;i++){
      |   ^~~
a.cc:14:15: error: 'i' was not declared in this scope
   14 |   for(int i=0;i<k;i++){
      |               ^
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int n;
  cin>>n;
  string s;
  cin>>s;
  rep(i,s.size()){
    s[i]=(s[i]-'A'+n)%26+'A';
  }
  cout<<s<<ndl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'ndl' was not declared in this scope
   14 |   cout<<s<<ndl;
      |            ^~~
Language: C

#include<iostream>
#include<bits/stdc++.h>
#include<string.h>
#include<stdio.h>
using namespace std;
int main()
{
    int a,b,i,j,n;
    scanf("%d",&n);
    char ch[10000],c,m;
    c=getchar();
    gets(ch);
    for(i=0;ch[i]!='\0';i++)
    {
        ch[i]=ch[i]+n;
        if(ch[i]>'Z')
        {
            ch[i]=ch[i]-'Z';
            ch[i]='A'+ch[i]-1;
        }
    }
    printf("%s\n",ch);
    return 0;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<string.h>
#include<stdio.h>
using namespace std;
int main()
{
    int a,b,i,j,n;
    scanf("%d",&n);
    char ch[10000],c,m;
    c=getchar();
    gets(ch);
    for(i=0;ch[i]!='\0';i++)
    {
        ch[i]=ch[i]+n;
        if(ch[i]>'Z')
        {
            ch[i]=ch[i]-'Z';
            ch[i]='A'+ch[i]-1;
        }
    }
    printf("%s\n",ch);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   12 |     gets(ch);
      |     ^~~~
      |     getw
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<string.h>
using namespace std;
int main()
{
    int a,b,i,j,n;
    scanf("%d",&n);
    char ch[10000],c,m;
    c=getchar();
    gets(ch);
    for(i=0;ch[i]!='\0';i++)
    {
        ch[i]=ch[i]+n;
        if(ch[i]>'Z')
        {
            ch[i]=ch[i]-'Z';
            ch[i]='A'+ch[i]-1;
        }
    }
    printf("%s\n",ch);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   11 |     gets(ch);
      |     ^~~~
      |     getw
Language: C++

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,i,j,n;
    scanf("%d",&n);
    char ch[10000],c,m;
    c=getchar();
    gets(ch);
    for(i=0;ch[i]!='\0';i++)
    {
        ch[i]=ch[i]+n;
        if(ch[i]>'Z')
        {
            ch[i]=ch[i]-'Z';
            ch[i]='A'+ch[i]-1;
        }
    }
    printf("%s\n",ch);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |     gets(ch);
      |     ^~~~
      |     getw
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int n;
  cin>>n;
  strig s;
  cin>>s;
  rep(i,n) s[i]+=n
    cout<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'strig' was not declared in this scope
    9 |   strig s;
      |   ^~~~~
a.cc:10:8: error: 's' was not declared in this scope
   10 |   cin>>s;
      |        ^
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    String s = sc.next();
    char[] c1 = s.toCharArray();
    for(int i = 0; i < s.length(); i++) {
      int r = c1[i] - 'A';
      r = (r + n) % 26;
      c1[i] = 'A' + r;
    }
    System.out.println(new String(c1));
  }
}

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from int to char
      c1[i] = 'A' + r;
                  ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
char nextchar(char c,int k){
  rep(i,n){
    if(c!='z') c++;
    else c='A';
  }
  return c;
}
int main(){
  int n;
  cin >> n;
  string s;
  cin >> s;
  int y=s.size();
  rep(j,y){
    s[j]=nextchar(s[j],n);
  }  
  cout << s << endl;
}


Compiler output:
a.cc: In function 'char nextchar(char, int)':
a.cc:5:9: error: 'n' was not declared in this scope
    5 |   rep(i,n){
      |         ^
a.cc:3:45: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
Language: C++

//INCLUDE
//------------------------------------------
#include <bits/stdc++.h>
//DEFINE
//------------------------------------------
#define ll long long
#define ALLv(a)  (a).begin(),(a).end()
#define ALL(a,n)  (a),(a)+n
#define vi vector<long long>
#define vd vector<long double>
#define vs vector<string>
//CONST
//------------------------------------------
#define INF 1010000000000000017LL
#define MOD 1000000007LL
#define EPS 1e-12
#define PI 3.14159265358979323846
//REPEAT
//------------------------------------------
#define   FOR(i,m,n) for(ll (i)=(m);   (i)<(n);  (i)++)
#define   REP(i,n)   for(ll (i)=0;     (i)<(n);  (i)++)
#define  REPS(i,x)   for(ll (i)=1;     (i)<=(x); (i)++)
#define  RREP(i,x)   for(ll (i)=(x)-1; (i)>=0;   (i)--)
#define RREPS(i,x)   for(ll (i)=(x);   (i)> 0;   (i)--)
#define  WREP(i,in,j,jn) REP(i,in)REP(j,jn)
#define ifYN(x) cout<<(x?"Yes":"No")<<"\n"

ll GCD(ll a,ll b) { return b ? GCD(b,a%b) : a; }
ll LCM(ll a,ll b) { return a/GCD(a,b)*b; }
ll Factorial(ll n){ ll m=1;while(n>=1)m*=n--;return m; }
ll modPow(ll x,ll n,ll mod=MOD){
    return (!n?1:!n%2?modPow(x*x,n/2,mod)%mod:x%mod*modPow(x,n-1,mod)%mod);
}
using namespace std;
//-------------------------------------------

int main(void){
  ll N;cin>>N;
  char c;while(cin>>c){
  	cout<<char(((c-'A')+N)%26+'A');
  }cout<<"\n";


Compiler output:
a.cc: In function 'int main()':
a.cc:41:15: error: expected '}' at end of input
   41 |   }cout<<"\n";
      |               ^
a.cc:37:15: note: to match this '{'
   37 | int main(void){
      |               ^
Language: C++

//INCLUDE
//------------------------------------------
#include <bits/stdc++.h>
//DEFINE
//------------------------------------------
#define ll long long
#define ALLv(a)  (a).begin(),(a).end()
#define ALL(a,n)  (a),(a)+n
#define vi vector<long long>
#define vd vector<long double>
#define vs vector<string>
//CONST
//------------------------------------------
#define INF 1010000000000000017LL
#define MOD 1000000007LL
#define EPS 1e-12
#define PI 3.14159265358979323846
//REPEAT
//------------------------------------------
#define   FOR(i,m,n) for(ll (i)=(m);   (i)<(n);  (i)++)
#define   REP(i,n)   for(ll (i)=0;     (i)<(n);  (i)++)
#define  REPS(i,x)   for(ll (i)=1;     (i)<=(x); (i)++)
#define  RREP(i,x)   for(ll (i)=(x)-1; (i)>=0;   (i)--)
#define RREPS(i,x)   for(ll (i)=(x);   (i)> 0;   (i)--)
#define  WREP(i,in,j,jn) REP(i,in)REP(j,jn)
#define ifYN(x) cout<<(x?"Yes":"No")<<"\n"

ll GCD(ll a,ll b) { return b ? GCD(b,a%b) : a; }
ll LCM(ll a,ll b) { return a/GCD(a,b)*b; }
ll Factorial(ll n){ ll m=1;while(n>=1)m*=n--;return m; }
ll modPow(ll x,ll n,ll mod=MOD){
    return (!n?1:!n%2?modPow(x*x,n/2,mod)%mod:x%mod*modPow(x,n-1,mod)%mod);
}
using namespace std;
//-------------------------------------------

int main(void){
  char alph[26];REP(i,N)alph[i]='a'+i;
  ll N;cin>>N;
  char c;REP(i,N){
  	cin>>c;
  	cout<<char(((c-'A')+N)%26+'A');
  }cout<<"\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:23: error: 'N' was not declared in this scope
   38 |   char alph[26];REP(i,N)alph[i]='a'+i;
      |                       ^
a.cc:21:45: note: in definition of macro 'REP'
   21 | #define   REP(i,n)   for(ll (i)=0;     (i)<(n);  (i)++)
      |                                             ^
Language: C++

#include <iostream>
#include <string>
#include <cstdlib> //func147bでインクルード
#include <vector>  //func146b
 
using namespace std;
 
void func146b()
{
    int n;
   
    char s[10000];
    cin >> n >> s;
 
    for (int i = 0; i < strlen(s); ++i) {
 
        int x = s[i] - 'A';
        x = (x + n) % 26;
        cout << static_cast<char>('A' + x );
    }
    cout << endl;
}
 
int main()
{
  func146b();
  return 0;
}

Compiler output:
a.cc: In function 'void func146b()':
a.cc:15:25: error: 'strlen' was not declared in this scope
   15 |     for (int i = 0; i < strlen(s); ++i) {
      |                         ^~~~~~
a.cc:5:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include <vector>  //func146b
  +++ |+#include <cstring>
    5 |
Language: C++

#include "stdafx.h" //プリインクルードされている場合はコメントアウト
#include <iostream>
#include <string>
#include <cstdlib> //func147bでインクルード
#include <vector>  //func146b

using namespace std;

void func146b()
{
    int n;
    //string s;
    char s[10000];
    cin >> n >> s;

    for (int i = 0; i < strlen(s); ++i) {

        int x = s[i] - 'A';
        x = (x + n) % 26;
        cout << static_cast<char>('A' + x );
    }
    cout << endl;
}

int main()
{
  func146b();
  return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h" //プリインクルードされている場合はコメントアウト
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
using pii=pair<int,int>;
using ll=long long;

#define fi first
#define se second
#define pb push_back
#define rep(i,n) for(int i=0; i<(int)(n); i++)

int main() {

	int n;
	string s;
	cin >> n >> s;
	int l = s.length();
	
	rep(i,l) {
		int t = s[i] - 'A';
		t = (t + n) % 26;
		char c = t + 'A';
		putchar(c);
	}
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: expected '}' at end of input
   24 |   return 0;
      |            ^
a.cc:11:12: note: to match this '{'
   11 | int main() {
      |            ^
Language: C

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
using LL = long long;
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<long> VL;

int digit(LL n){
  int i = 0;
  while (n > 0) {
    n /= 10;
    i++;
  }
  return i;
}

int main() {
  LL A, B, X;
  cin >> A >> B >> X;
  LL right = LL(1e+9)+1;
  LL left = 0;

  while (right > left+1){
    LL mid = (left+right)/2;
    if (A*mid + B*digit(mid) <= X) {
      left = mid;
    } else {
      right = mid;
    }
  }
  cout << left << endl;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    char[] s = sc.next().toCharArray();
    for(int i = 0; i < s.length; i++){
      s[i] = (char)((c[i] - 'A' + n) % 26 + 'A');
  }
  System.out.println(String.valueOf(s));
}
}

Compiler output:
Main.java:8: error: cannot find symbol
      s[i] = (char)((c[i] - 'A' + n) % 26 + 'A');
                     ^
  symbol:   variable c
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i <(n); i++)
using namespace std;
using ll = long long;
using p = pair<int,int>;

int main(){
  char Z = "Z";
  int g;
  cin >> g;
  string s;
  int n = s.size();
  rep(i,n){
    char a;
    cin >> a;
    a += g;
    
    
    cout << a << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    8 |   char Z = "Z";
      |            ^~~
      |            |
      |            const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double lb;
#define REP(i,j,n) for (int i=j;i<(n);i++)
#define RREP(i,n) for (int i = n; 0<i;i--)
#define print(out) cout<< out  << "\n";
#define mod 1000000007
const int INF = 1e9;

int main(){
  int N;string S;cin>>N>>S;
  int ans;
  REP(i,0,S.size()){
    ns =(S.at(i)-65+N)%26;
    cout<<char(ans+65);
  }
  cout<<"\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'ns' was not declared in this scope; did you mean 'ans'?
   15 |     ns =(S.at(i)-65+N)%26;
      |     ^~
      |     ans