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

#include<iostream>
int msin(){
  char c;
  std::cin >> c;
  std::cout << c + 1 << '\n';
}

Compiler output:
a.cc: In function 'int msin()':
a.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type]
    6 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep0(i, n) for (long long i = 0; i < (long long)(n); i++)
#define rep1(i,n) for(long long i=1;i<=(long long)(n);i++)
#define all(v) v.begin(),v.end()
#define Sort(v) sort(all(v))
#define Reverse(v) reverse(all(v))
#define Rsort(v) sort(all(v),greater)
#define pub(v) push_back(v)
#define pob(v) pop_back(v)
typedef long long ll;
typedef vector<ll> vel;
typedef vector<vector<ll>> vel2d;
typedef string str;
typedef pair<ll,ll> pal;
typedef vector<str> ves;


int main() {
  char s; cin>>s;
  ll t=(ll)(s+1)
  cout<<(char)(t)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: expected ',' or ';' before 'cout'
   22 |   cout<<(char)(t)<<endl;
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){  
  char c;
  cin >> c;
  char 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<26;i++){
  if (c==a[i]){
    cout << a[i++];
  }
  }
  
    return 0;
}
  

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  char C;
  cin >> C;
  string abc = abcdefghijklmnopqrstuvwxyz;
  cin >> abc;
  int N;
  cin >> N;
  C = abc.at(N);
  char D = abc.at(N + 1);
  cin >> D;
  cout << D << endl;
  
}

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

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

int main() {
  char a;
  cin >> a;
  
  string A =abcdefghijklnmopqrstuvwxyz;
  
  for(int i = 0;i<26;i++) {
    if(a == A.at(i)) {
      a = A.at(i+1);
      break;
    }
  }
  cout << a <<endl;
  return 0;
}

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

# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
#N, K = map(int, input().split())
# 文字列の入力
s = input()
print(chr(ord(s)+1))


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:3: error: invalid preprocessing directive #\U000030b9\U000030da\U000030fc\U000030b9\U0000533a\U00005207\U0000308a\U0000306e\U00006574\U00006570\U0000306e\U00005165\U0000529b
    2 | # スペース区切りの整数の入力
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:3:2: error: invalid preprocessing directive #N
    3 | #N, K = map(int, input().split())
      |  ^
a.cc:4:3: error: invalid preprocessing directive #\U00006587\U00005b57\U00005217\U0000306e\U00005165\U0000529b
    4 | # 文字列の入力
      |   ^~~~~~~~~~~~
a.cc:5:1: error: 's' does not name a type
    5 | s = input()
      | ^
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
      
    String C = scanner.next();
    
    String[] slist = {"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<26,i++){
      
      if(C.equals(slist[i])){
        C = slist[i+1];
        System.out.println(C);
      }
  
    }
  }
}

    
    


Compiler output:
Main.java:12: error: ';' expected
    for(int i=0, i<26,i++){
                  ^
Main.java:12: error: illegal start of type
    for(int i=0, i<26,i++){
                   ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
      
    String C = scanner.next();
    
    String[] slist = {"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<26,i++){
      
      if(C.equals(slist[i])){
        C = slist[i+1];
        System.out.println(C);
        break;
      }
  
    }
  }
}

    
    


Compiler output:
Main.java:12: error: ';' expected
    for(int i=0, i<26,i++){
                  ^
Main.java:12: error: illegal start of type
    for(int i=0, i<26,i++){
                   ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
      
    int K = scanner.nextInt();
    long X = scanner.nextLong();
    
    int sum = 500*K;
    
    if(sum >= x){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  
  }
  
}

    
    


Compiler output:
Main.java:13: error: cannot find symbol
    if(sum >= x){
              ^
  symbol:   variable x
  location: class Main
1 error
Language: C++

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

int main(){
  char C;
  cin>>C;
  C++;
  cout<<C<<endl;
  return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before '}' token
   10 |   return 0
      |           ^
      |           ;
   11 | }
      | ~
Language: C++

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

int main(){
  scanf("%s",C)
  C[0]++;
  cout<<C[0]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'C' was not declared in this scope
    6 |   scanf("%s",C)
      |              ^
Language: C++

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

int main(){
  string C;
  cin>>C;
  cout<<C++<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    8 |   cout<<C++<<endl;
      |         ~^~
Language: C++

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

int main(){
  string C;
  cin>>C;
  cout<<C+1<<endl;
}


Compiler output:
a.cc:3:17: error: 'usd' is not a namespace-name
    3 | using namespace usd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string C;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>C;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'C' was not declared in this scope
    7 |   cin>>C;
      |        ^
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<C+1<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<<C+1<<endl;
      |              ^~~~
      |              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<string>

int main(){
  string C;
  cin>>C;
  cout<<C+1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string C;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>C;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 'C' was not declared in this scope
    6 |   cin>>C;
      |        ^
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<C+1<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<C+1<<endl;
      |              ^~~~
      |              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(){
  char c;
  cin >> c;
  string s ="abcdefghijklmnopqrstuvwxyz";
  
  for(int i=0;i<26;i++){
    if(c==s.at(i)){
      cout << s.at(i+1) << endl;A
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: 'A' was not declared in this scope
   11 |       cout << s.at(i+1) << endl;A
      |                                 ^
Language: C++

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

int main(){
  char c;
  cin >> c;
  string s ="abcdefghijklmnopqrstuvwxyz";
  
  for(int i=0;i<26;i++){
    if(s.at(i)=='c'){
      cout << s.at(i+1) << endl;
      return 0;
    }
  }
    

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

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

int main() {
  char a;
  cin >> a;
  char b = a + 1
  cout << b << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cout'
    8 |   cout << b << endl;
      |   ^~~~
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String alp[] = {"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<26;i++){
      if(s.equals(alp[i])){
        System.out.println(a[i+1]);
        return;
      }
    }
  }
}


Compiler output:
Main.java:9: error: cannot find symbol
        System.out.println(a[i+1]);
                           ^
  symbol:   variable a
  location: class Main
1 error
Language: C

c= input()
alf="abcdefghijklmnopqrstuvwyz"

for i in range(len(alf)+1):
	if c==alf[i] and c!="z":
		print(alf[i+1])
		break
	elif c== "z":
		print("a")
		break


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | c= input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:1:4: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | c= input()
      |    ^~~~~
main.c:1:4: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'alf'
    2 | alf="abcdefghijklmnopqrstuvwyz"
      | ^~~
Language: C

#include<stdio.h>
int main()
{
  int a;
scanf("%d",&a);
a=a+1;
printf("%c",a)
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected ';' before '}' token
    7 | printf("%c",a)
      |               ^
      |               ;
    8 | }
      | ~
Language: C++

1 #include <stdio.h>
2
3 char in[2];
4 int main(){
5 scanf("%s",in);
6 in[0]++;
7 printf("%s\n",in);
8 }

Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | 1 #include <stdio.h>
      |   ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1 #include <stdio.h>
      | ^
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 4 int main(){
      | ^
Language: C++

#include<stdio.h>
int main(void){

  char C;
  scanf("%d",&C);
  
  char c=C+1;
  printf("%d\n",c);
  reutrn 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'reutrn' was not declared in this scope
    9 |   reutrn 0;
      |   ^~~~~~
Language: C++

#include<stdio.h>
int main(void){
scanf("%d",&C);
  char c=C+1;
  printf("%d\n",c);
  reutrn 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:13: error: 'C' was not declared in this scope
    3 | scanf("%d",&C);
      |             ^
a.cc:6:3: error: 'reutrn' was not declared in this scope
    6 |   reutrn 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
int main(void){
scanf("%d",&C);
  char c=C+1;
  printf("%d\n",c);
  reutrn 0;

}

Compiler output:
main.c: In function 'main':
main.c:3:13: error: 'C' undeclared (first use in this function)
    3 | scanf("%d",&C);
      |             ^
main.c:3:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:3: error: 'reutrn' undeclared (first use in this function)
    6 |   reutrn 0;
      |   ^~~~~~
main.c:6:9: error: expected ';' before numeric constant
    6 |   reutrn 0;
      |         ^~
      |         ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string C;
  cin>>C;
char c=C.at[0]++;
  cout<<'c'<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 | char c=C.at[0]++;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string C;
  cin>>C;
char c=C.at(0)++:
  cout<<'c'<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ',' or ';' before ':' token
    6 | char c=C.at(0)++:
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string C;
  cin>>C;
C.at[0]++;
  cout<<"C"<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 | C.at[0]++;
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string C;
  cin>>C;
char c=C.at[0]++;
  cout<<"c"<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 | char c=C.at[0]++;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string C;
  cin>>C;
char c=C.at[0]++:
  cout<<"c"<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 | char c=C.at[0]++:
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
string C;
  cin>>C;
char c=C.at[0]
  cout<<"c"<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    6 | char c=C.at[0]
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string C 
  cin>>C;
  a=C++;
  cout<<a<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
    5 |   cin>>C;
      |   ^~~
a.cc:6:3: error: 'a' was not declared in this scope
    6 |   a=C++;
      |   ^
a.cc:6:5: error: 'C' was not declared in this scope
    6 |   a=C++;
      |     ^
Language: C++

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

int main() {
  int C;
  cin >> C;
  string str = "abcdefghijklmnopqrstuvwxyz";
  for(int i = 0; i < 26, i++){
  	if(str.at(i) == C ){
    cout << str.at(i+1) << endl;
    }
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before ')' token
    8 |   for(int i = 0; i < 26, i++){
      |                             ^
      |                             ;
Language: C++

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

void next_char(char c){
    vector<char> alphabet;
    alphabet = {'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<alphabet.size()-1;i++){
        if(s == alphabet.at(i)){
            cout << alphabet.at(i+1) << endl;
            break;
        }
    }
}
int main(){
    char s; cin >> s;
    next_char(s);
}

Compiler output:
a.cc: In function 'void next_char(char)':
a.cc:11:12: error: 's' was not declared in this scope
   11 |         if(s == alphabet.at(i)){
      |            ^
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(),(a).end()
int main() {
    vector<char> alp = {'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'};
    char a;
    cin >> a;
    rep(i,25){
        if(a == alp[i]) dunk(alp[i+1];
    }
    return 0;
}

Compiler output:
a.cc:15:2: error: unterminated argument list invoking macro "dunk"
   15 | }
      |  ^
a.cc: In function 'int main()':
a.cc:12:25: error: 'dunk' was not declared in this scope
   12 |         if(a == alp[i]) dunk(alp[i+1];
      |                         ^~~~
a.cc:12:29: error: expected '}' at end of input
   12 |         if(a == alp[i]) dunk(alp[i+1];
      |                             ^
a.cc:11:14: note: to match this '{'
   11 |     rep(i,25){
      |              ^
a.cc:12:29: error: expected '}' at end of input
   12 |         if(a == alp[i]) dunk(alp[i+1];
      |                             ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(),(a).end()
int main() {
    vector<char> alp = {'a','b','c','d','e','f','g','h','i','j','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
    char a,
    cin >> a;
    rep(i,25){
        if(a == alp[i]) dunk(alp[i+1]);
        return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected initializer before '>>' token
   10 |     cin >> a;
      |         ^~
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(),(a).end()
int main() {
    vector<char> alp = {'a','b','c','d','e','f','g','h','i','j','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
    int char a,
    cin >> a;
    rep(i,25){
        if(a == alp[i]) dunk(alp[i+1]);
        return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: two or more data types in declaration of 'a'
    9 |     int char a,
      |     ^~~
a.cc:10:9: error: expected initializer before '>>' token
   10 |     cin >> a;
      |         ^~
a.cc:12:12: error: 'a' was not declared in this scope
   12 |         if(a == alp[i]) dunk(alp[i+1]);
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  char in
  cin >> in
  in++;
  cout << in << endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> in
      |   ^~~
a.cc:8:11: error: 'in' was not declared in this scope; did you mean 'int'?
    8 |   cout << in << endl;
      |           ^~
      |           int
Language: C++

#include<iostream>
using namespace std;

int main(){
  char c;
  cin>>in;
  cout<<++c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'in' was not declared in this scope; did you mean 'int'?
    6 |   cin>>in;
      |        ^~
      |        int
Language: C++

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

int main()
{
  int n,m;
  cin >> n >> m;
  int ac_sum = 0;
  int wa_sum = 0;
  
  vector<bool> a(n);
  rep(i,n+1) a[i]=false;
  int w[n];
  rep(i,n) w[n]=0;
  
  rep(i,m)
  {
    int p;
    string s;
    cin >> p >> s;
    
    if(s=="AC" && a[p]==false)
    {
      a[p]=true;
      ac_sum++;
      wa_sum+=w[p];
    }
    else if(s=="WA" && a[p]==false) w[p]++;
  }
  cout << ac_sum << " " << wa_sum;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> n >> m;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | #define rep(i,n) for(int i=0;i<(n);i++)
a.cc:13:3: error: 'vector' was not declared in this scope
   13 |   vector<bool> a(n);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<stdio.h>
  +++ |+#include <vector>
    2 | #define rep(i,n) for(int i=0;i<(n);i++)
a.cc:13:10: error: expected primary-expression before 'bool'
   13 |   vector<bool> a(n);
      |          ^~~~
a.cc:14:14: error: 'a' was not declared in this scope
   14 |   rep(i,n+1) a[i]=false;
      |              ^
a.cc:21:5: error: 'string' was not declared in this scope
   21 |     string s;
      |     ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include<stdio.h>
  +++ |+#include <string>
    2 | #define rep(i,n) for(int i=0;i<(n);i++)
a.cc:22:17: error: 's' was not declared in this scope
   22 |     cin >> p >> s;
      |                 ^
a.cc:24:19: error: 'a' was not declared in this scope
   24 |     if(s=="AC" && a[p]==false)
      |                   ^
a.cc:32:3: error: 'cout' was not declared in this scope
   32 |   cout << ac_sum << " " << wa_sum;
      |   ^~~~
a.cc:32:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  char C;
  cin >> C;
  c++;
  cout << C << endl;
   }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'c' was not declared in this scope
    6 |   c++;
      |   ^
Language: C++

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

int main() {
  string vec=abcdefghijklmnopqrstuvwxyz;
  char C;
  cin >> C;
  for(int i=0;i<25;i++){
    if(C==vec.at(i))
      cout << vec.at(i+1) << endl;
    break;
  }
}


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

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

int main() {
  vector<char> vec(26){a,b,c,d,e,f,g,h,i,j,k,m,n,l,o,p,q,r,s,t,u,v,w,x,y,z}
  char C;
  cin >> C;
  for(int i=0;i<25;i++){
    if(C==vec.at(i))
      cout << vec.at(i+1) << endl;
    break;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: expected ',' or ';' before '{' token
    5 |   vector<char> vec(26){a,b,c,d,e,f,g,h,i,j,k,m,n,l,o,p,q,r,s,t,u,v,w,x,y,z}
      |                       ^
Language: Java

import java.io.*;
import java.util.Scanner;
import java.util.ArrayList;

public class Main {
  
  public static void main(String[] args){
    
    try {
      
      //標準入力受け取り
      Scanner scan            = new Scanner(System.in);
      ArrayList<Integer> strs = new ArrayList<Integer>();
      
      while (scan.hasNext()){
      	strs.add(scan.nextInt());
      }
      
      //変数へ代入
      int sub = strs.get(0); //科目
      int max = strs.get(1); //科目の最大点数
      int ave = strs.get(2); //目標平均点
      int sum = 0;           //合計点
      int point = 0;		 //最低点数
      
      for (int i=3; i<strs.size(); i++) {
      	sum += strs.get(i);
      }
      
      //算出
      int point = ave*sub-sum;
      
      if (point < 0) {
        point = 0;
      }
      
      if (max < point) {
        point = -1;
      }
      
      System.out.println(point);
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
}


Compiler output:
Main.java:31: error: variable point is already defined in method main(String[])
      int point = ave*sub-sum;
          ^
1 error
Language: Java

import java.io.*;
import java.util.Scanner;
import java.util.ArrayList;

public class Main {
  
  public static void main(String[] args){
    
    try {
      
      //標準入力受け取り
      Scanner scan            = new Scanner(System.in);
      ArrayList<Integer> strs = new ArrayList<Integer>();
      
      while (scan.hasNext()){
      	strs.add(scan.nextInt());
      }
      
      //変数へ代入
      int sub = strs.get(0); //科目
      int max = strs.get(1); //科目の最大点数
      int ave = strs.get(2); //目標平均点
      int sum = 0;           //合計点
      
      for (int i=3; i<strs.size(); i++) {
      	sum += strs.get(i);
      }
      
      //算出
      int point = ave*sub/100 - sum;
      
      if (point =< max) {
        System.out.println(point);
      } else {
        System.out.println(-1);
      }
      
    } catch (Exception e) {
      
      System.out.println("error");

    }
  }
}


Compiler output:
Main.java:32: error: > or ',' expected
      if (point =< max) {
                      ^
1 error
Language: C++

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

int main() {

	vector<char> alpha('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',);

	char a;

	cin >> a;
	
	for (int i = 0; i < 26;i++) {
		if (alpha.at(a) == a) {
			cout << alpha.at(i + 1) << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:132: error: expected primary-expression before ')' token
    6 |         vector<char> alpha('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>
using namespace std;
int main(){
    cher a;
    cin >> a;
    cout << cher(a+1);    
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
    cher a;
    cin >> a;
    cout << a+1;    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cher' was not declared in this scope; did you mean 'char'?
    4 |     cher a;
      |     ^~~~
      |     char
a.cc:5:12: error: 'a' was not declared in this scope
    5 |     cin >> a;
      |            ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String M[] ={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 N =sc.next();
    for(int A=0;A<25;A++){
      if(N==M[A]){System.out.println(M[A+1]);System.exit(0);}}
  }
}

Compiler output:
Main.java:5: error: ';' expected
    String M[] ={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}
                                                                     ^
1 error
Language: Java

import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner in= new Scanner(System.in);
char ch=in.next().charAt(0);
ch=ch+1;
System.out.println(ch);
}
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from int to char
ch=ch+1;
     ^
1 error
Language: C++

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

int main() {
  string A;
  cin >> A;
  cout << ++A << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: no match for 'operator++' (operand type is 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    7 |   cout << ++A << endl;
      |           ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define MOD 1000000007
//#define MOD 998244353
#define INF 1000000010
#define EPS 1e-9
#define F first
#define S second

#define debug(x) cout<<x<<endl;
#define repi(i,x,n) for(int i=x;i<n;i++)
#define rep(i,n) repi(i,0,n)
#define lp(i,n) repi(i,0,n)
#define repn(i,n) for(int i=n;i>=0;i--)
#define int long long
#define endl "\n"

typedef pair<int,int> PII;
typedef pair<int,string> PIS;
typedef pair<string,int> PSI;


signed main(){
  cin.tie(0);	
  ios::sync_with_stdio(false);
  char c;
  cin>>c;
  if(c=='z'){cout<<a<<endl;return 0;}
  else cout<<++c<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:20: error: 'a' was not declared in this scope
   28 |   if(c=='z'){cout<<a<<endl;return 0;}
      |                    ^
Language: C

s = input()
print(chr(ord(s) + 1))


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | s = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | s = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'print'
    2 | print(chr(ord(s) + 1))
      | ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main() {
  string A = abcdefghijklmnopqrstuvwxyz;
  A.size() == 26;
  
  char C;
  cin >> C;
  
  for (int i = 0; i < A.size(); i++) {
     if (C == A.at(i)) {
       cout << A.at(i + 1) << endl;
       break;
     }
  }


}



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

#include<iostream>
using namespace std;
int main() {
  string abcdefghijklmnopqrstuvwxyz;
  abcdefghijklmnopqrstuvwxyz.size() = 26;
  
  char C;
  cin >> C;
  
  int i;
  
  if (C == abcdefghijklmnopqrstuvwxyz.at(i)) {
    cout << abcdefghijklmnopqrstuvwxyz.at(i + 1) << endl;
  }
    


}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:34: error: lvalue required as left operand of assignment
    5 |   abcdefghijklmnopqrstuvwxyz.size() = 26;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
Language: C++

#include<iostream>
using namespace std;
int main() {
  string abcdefghijklmnopqrstuvwxyz;
  Alphabet.size() = 26;
  
  string C;
  cin >> C;
  
  int i;
  
  if (C == Alphabet.at(i)) {
    cout << Alphabet.at(i + 1) << endl;
  }
    


}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'Alphabet' was not declared in this scope
    5 |   Alphabet.size() = 26;
      |   ^~~~~~~~
Language: C++

#include <bits/stdc++.h>

int main()
{
  char ch;
  cin>>ch;
  cout<<ch+1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>ch;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<ch+1;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<Stdio.h>
int main()
{
    char a;
    scanf("%c",&a);
    printf("%c\n",a+1);
    return 0;
}


Compiler output:
a.cc:1:9: fatal error: Stdio.h: No such file or directory
    1 | #include<Stdio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    System.out.println(s++);
  }
  

  
}

Compiler output:
Main.java:6: error: bad operand type String for unary operator '++'
    System.out.println(s++);
                        ^
1 error
Language: C++

#include <iostream>
using namespace std;
int main()
{
	char c, m;
	cout << "Enter X\n";
	cin >> c;
	while (c == 'z' || isupper(c))
	{
		cout << "Please enter a letter before z and small\n";
		cin >> c;
	}
	m = c + 1;
        cout <<b<<endl;
	cout << c <<" is followed by " << m<<endl;
	return 0;
}

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

#include<stdio.h>


int main()
{
   char ch;
   scanf("%c",&ch);
   
   else if(ch>=97&&ch<=122){
    ch=ch+1;
    printf("%c",ch);
   }
   getchar();
}

Compiler output:
main.c: In function 'main':
main.c:9:4: error: 'else' without a previous 'if'
    9 |    else if(ch>=97&&ch<=122){
      |    ^~~~
Language: C

#include<stdio.h>
int main ()
{

       char ch;

       printf(Enter any character :");

       scanf("%c", &ch);

       if (ch >='a' && ch <= 'z')
       {

           printf("'c' is uppercase alphabet.", ch);
       }
       else if (ch >= 'a' && ch <= 'z')
       {

           printf ("'%c' is lowercase alphabet.", ch);
       }
       else
       {
           printf ("'%c' is not an alphabet.", ch);

       }
           return 0;

       }







Compiler output:
main.c: In function 'main':
main.c:7:15: error: 'Enter' undeclared (first use in this function)
    7 |        printf(Enter any character :");
      |               ^~~~~
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:20: error: expected ')' before 'any'
    7 |        printf(Enter any character :");
      |              ~     ^~~~
      |                    )
main.c:7:36: warning: missing terminating " character
    7 |        printf(Enter any character :");
      |                                    ^
main.c:7:36: error: missing terminating " character
    7 |        printf(Enter any character :");
      |                                    ^~~
main.c:26:21: error: expected ';' before '}' token
   26 |            return 0;
      |                     ^
      |                     ;
   27 | 
   28 |        }
      |        ~
Language: C

#include<stdio.h>
main()
{
    int C,z;
    scanf("%d %d",&C,&z);
    if(C=z)
    {
        prinf("C is followed by z\n");
    }
    else
    {
        printf("C is not followed by z\n");
    }
    return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |         prinf("C is followed by z\n");
      |         ^~~~~
      |         printf
Language: C

#include<stdio.h>
int main(){ 
    
    char c;
for (c= 'A';c<= 'Z'; ++c)
    printf("%c", c)

return 0;

}


Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before 'return'
    6 |     printf("%c", c)
      |                    ^
      |                    ;
    7 | 
    8 | return 0;
      | ~~~~~~
Language: C

include<stdio.h>
void printkoro(){
    printf("i m in comilla\n");
    printf("hello comilla\n");



}
 int jogkoro(int num1, int num2){
    int total= num1* num2 ;
    return total;
 }
int main(){
   int output=jogkorbo(2,4);
   printf("%d\n", output);
return 0;

}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:14:15: error: implicit declaration of function 'jogkorbo'; did you mean 'jogkoro'? [-Wimplicit-function-declaration]
   14 |    int output=jogkorbo(2,4);
      |               ^~~~~~~~
      |               jogkoro
main.c:15:4: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |    printf("%d\n", output);
      |    ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | include<stdio.h>
main.c:15:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   15 |    printf("%d\n", output);
      |    ^~~~~~
main.c:15:4: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char c = sc.next();
    char[] al = {'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 < 25; i++){
      if(c == al[i]){
        System.out.println(al[i+1]);
      }
    }
    
  }
}


Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to char
    char c = sc.next();
                    ^
1 error
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String c = sc.next();
    char[] al = {'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 < 25; i++){
      if(c == al[i]){
        System.out.println(al[i+1]);
      }
    }
    
  }
}


Compiler output:
Main.java:12: error: bad operand types for binary operator '=='
      if(c == al[i]){
           ^
  first type:  String
  second type: char
1 error
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char c = sc.nextChar();
    char[] al = {'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 < 25; i++){
      if(c == al[i]){
        System.out.println(al[i+1]);
      }
    }
    
  }
}


Compiler output:
Main.java:6: error: cannot find symbol
    char c = sc.nextChar();
               ^
  symbol:   method nextChar()
  location: variable sc of type Scanner
1 error
Language: C

#include <stdio.h>

int main()
{
    char b;
    scanf("%c",&C);
    b=++C;
    printf("%c",b);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:17: error: 'C' undeclared (first use in this function)
    6 |     scanf("%c",&C);
      |                 ^
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#include<algorithm>
int index(char a[], char b){
   int sw = 1
   rep(i, a.size()){
      if(a[i]==b&&sw==1){
         sw = 0;
         return i
      }
   }
}

int main(){
  char a[25] = {"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"};
  char c;
  cin >> c;
  int x = index(a, c);
  cout << a[x+1] << endl;
}

Compiler output:
a.cc: In function 'int index(char*, char)':
a.cc:4:18: error: expected ',' or ';' before 'for'
    4 | #define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
      |                  ^~~
a.cc:8:4: note: in expansion of macro 'rep'
    8 |    rep(i, a.size()){
      |    ^~~
a.cc:8:8: error: 'i' was not declared in this scope
    8 |    rep(i, a.size()){
      |        ^
a.cc:4:33: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
      |                                 ^
a.cc:8:13: error: request for member 'size' in 'a', which is of non-class type 'char*'
    8 |    rep(i, a.size()){
      |             ^~~~
a.cc:4:37: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
      |                                     ^
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
a.cc: In function 'int main()':
a.cc:18:80: error: too many initializers for 'char [25]'
   18 |                 "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y"};
      |                                                                                ^
Language: C++

int main() {
  char c;
  cin >> c;
  c++;
  cout << c << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> c;
      |   ^~~
a.cc:5:3: error: 'cout' was not declared in this scope
    5 |   cout << c << endl;
      |   ^~~~
a.cc:5:16: error: 'endl' was not declared in this scope
    5 |   cout << c << endl;
      |                ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
  string a;
  cin>>a;
  a[0]++:
  cout<<a<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before ':' token
    7 |   a[0]++:
      |         ^
      |         ;
Language: Java

public class Main {
	public static void main(String[] args) {
             
Scanner sc = new Scanner(System.in);
String get;
get = sc.next();
             String str = "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 index_s = str.indexOf(get);
String str1 = str.substring(index_s, index_s + 1);

          System.out.print(str1);

      }
}

Compiler output:
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

int main()
{
  char c;
  cin>>c;
  cout<<char(c+1;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before 'char'
    8 |   cout<<char(c+1;
      |         ^~~~
Language: C++

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

int main(){
    char c;
    cin >> c;
  	c++;
    cout <<  <<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected primary-expression before '<<' token
   10 |     cout <<  <<endl;
      |              ^~
Language: C++

#include <iostream>
 using namespeace std;
int  main()
{ char x;
cha y;
cin >>x;
y=x+1;
if(x=='z'){
cout<<'a'<<endl;
}
cout<<y;

Compiler output:
a.cc:2:8: error: expected nested-name-specifier before 'namespeace'
    2 |  using namespeace std;
      |        ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cha' was not declared in this scope; did you mean 'char'?
    5 | cha y;
      | ^~~
      | char
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >>x;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:1: error: 'y' was not declared in this scope
    7 | y=x+1;
      | ^
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout<<'a'<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout<<'a'<<endl;
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout<<y;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:9: error: expected '}' at end of input
   11 | cout<<y;
      |         ^
a.cc:4:1: note: to match this '{'
    4 | { char x;
      | ^
Language: Java

private static Scanner scan = new Scanner(System.in);
	private static final int SUBJECT = scan.nextInt(); // 教科数
	private static final int MAX_SCORE = scan.nextInt(); // 満点
	private static final int AVERAGE_SCORE = scan.nextInt(); // 平均点

	public static void main(String[] args) {
		int nowScore = 0;// (n-1)教科終了時の合計点
		// 教科数分のfor
		for(int i = 0; i < SUBJECT - 1; i++) {
			// nowScoreに点数を加算
			nowScore += scan.nextInt();
		}
		if(isUnachievable(nowScore)) {
			System.out.println(-1);
		} else if(isCheckRequired(nowScore)) {
			System.out.println(0);
		} else {
			System.out.println(getRequiredScore(nowScore));
		}
		
	}
	
	public static boolean isUnachievable(int nowScore) {
		// 現得点 + 最高点 < 平均点 * 教科数
		return nowScore + MAX_SCORE < SUBJECT * AVERAGE_SCORE;
	}
	
	public static boolean isCheckRequired(int nowScore) {
		// 現得点 + 最低点 > 平均点 * 教科数
		return nowScore + 0 < SUBJECT * AVERAGE_SCORE;
	}
	
	public static int getRequiredScore(int nowScore) {
		return AVERAGE_SCORE * SUBJECT - nowScore;
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
private static Scanner scan = new Scanner(System.in);
               ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

#include<stdio.h>
#include<map>
#include<string.h>
#include<math.h>
#include<queue>
#include<iostream>
#include<vector>
#include<stack>
using namespace std;
int main()
{
    char s;
    scanf("%c",&s);
    printf("%c\n",s+1);
}


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

#include<stdio.h>
#include<algorithm>
#include<map>
#include<string.h>
#include<math.h>
#include<queue>
#include<iostream>
#include<vector>
#include<stack>
using namespace std;
int main()
{
    char s;
    scanf("%c",&s);
    printf("%c\n",s+1);

}

Compiler output:
main.c:2:9: fatal error: algorithm: No such file or directory
    2 | #include<algorithm>
      |         ^~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String s = scan.next();
    System.out.println((char)(s[0]+1));
  }
}


Compiler output:
Main.java:6: error: array required, but String found
    System.out.println((char)(s[0]+1));
                               ^
1 error