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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　c++;
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000c' was not declared in this scope
    7 |   　c++;
      |   ^~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:9: warning: missing terminating " character
    6 |   scanf("%c,&a);
      |         ^
main.c:6:9: error: missing terminating " character
    6 |   scanf("%c,&a);
      |         ^~~~~~~~
main.c:7:12: error: expected ')' before ';' token
    7 |         a++;
      |            ^
      |            )
main.c:6:8: note: to match this '('
    6 |   scanf("%c,&a);
      |        ^
main.c:8:16: warning: missing terminating " character
    8 |         printf("%c,a);
      |                ^
main.c:8:16: error: missing terminating " character
    8 |         printf("%c,a);
      |                ^~~~~~~
main.c:7:10: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    7 |         a++;
      |         ~^~
      |          |
      |          char
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'char'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {

    char C;
    cin >> C;

    if (C != z) {
        C +=;
    }
    else {
        C == z;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'z' was not declared in this scope
    9 |     if (C != z) {
      |              ^
a.cc:10:13: error: expected primary-expression before ';' token
   10 |         C +=;
      |             ^
Language: C++

int main(){
    char huruf; cin >> huruf;
    huruf += 1;
    cout << huruf << '\n';
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:17: error: 'cin' was not declared in this scope
    2 |     char huruf; cin >> huruf;
      |                 ^~~
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout << huruf << '\n';
      |     ^~~~
Language: C

#include<stdio.h>
char a;
scanf(%c,&a);
printf(%c,a+1)

Compiler output:
main.c:3:7: error: expected declaration specifiers or '...' before '%' token
    3 | scanf(%c,&a);
      |       ^
main.c:3:10: error: expected declaration specifiers or '...' before '&' token
    3 | scanf(%c,&a);
      |          ^
main.c:4:8: error: expected declaration specifiers or '...' before '%' token
    4 | printf(%c,a+1)
      |        ^
main.c:4:11: error: expected declaration specifiers or '...' before 'a'
    4 | printf(%c,a+1)
      |           ^
Language: Java

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    
	char str=    scanner.nextLine().bytes[0];
    
    system.out.println((char)(str+1));
  }
}


Compiler output:
Main.java:3: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
                          ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: package system does not exist
    system.out.println((char)(str+1));
          ^
3 errors
Language: Java

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

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

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

Compiler output:
Main.java:5: error: cannot find symbol
           Char n=sc.next();
           ^
  symbol:   class Char
  location: class Main
1 error
Language: Java

public class Main{
    public static void main(String[] args){
           Scanner sc = new Scanner(System.in);
           Char n=sc.next();
            System.out.println(n++);
           
             sc.close();
       }
   }

Compiler output:
Main.java:3: error: cannot find symbol
           Scanner sc = new Scanner(System.in);
           ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
           Scanner sc = new Scanner(System.in);
                            ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
           Char n=sc.next();
           ^
  symbol:   class Char
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
public class Sample {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String c = sc.next();
		
		char a = c.charAt(0);
		int b = (int)a;
		b++;
		a = (char)b;
		System.out.println(a);
	}

}


Compiler output:
Main.java:2: error: class Sample is public, should be declared in a file named Sample.java
public class Sample {
       ^
1 error
Language: Java

import java.util.*;
public class main {
 public static void main(String[] args){
        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"};
        
        Scanner sc = new Scanner(System.in);
        String n=sc.next();
        for(int i=0;i<Alp.length;i++){
            if(Alp[i].equals(n)){
               System.out.println(Alp[i+1]);
        }
            sc.close();
    }
}

}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

package javaapplication2;
import java.util.*;
public class JavaApplication2 {
public static void main(String[] args){
        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"};
        
        Scanner sc = new Scanner(System.in);
        String n=sc.next();
        for(int i=0;i<Alp.length;i++){
            if(Alp[i].equals(n)){
               System.out.println(Alp[i+1]);
        }
            sc.close();
    }
}

}


Compiler output:
Main.java:3: error: class JavaApplication2 is public, should be declared in a file named JavaApplication2.java
public class JavaApplication2 {
       ^
1 error
Language: Java

    public static void main(String[] args){
        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"};
        
        Scanner sc = new Scanner(System.in);
        String n=sc.next();
        for(int i=0;i<Alp.length;i++){
            if(Alp[i].equals(n)){
               System.out.println(Alp[i+1]);
        }
            sc.close();
    }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args){
                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.*;
public class NextAlphabet {
    public static void main(String[] args){
        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"};
        
        Scanner sc = new Scanner(System.in);
        String n=sc.next();
        for(int i=0;i<Alp.length;i++){
            if(Alp[i].equals(n)){
               System.out.println(Alp[i+1]);
        }
            sc.close();
    }
}
}

Compiler output:
Main.java:2: error: class NextAlphabet is public, should be declared in a file named NextAlphabet.java
public class NextAlphabet {
       ^
1 error
Language: C++

#include<iostream>
#include<math.h>
using namespace std;

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


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

include <iotream>
using namespace std;
int main(){
char c;
  cin>>c
    c=c-'a'+'b';
  cout<<c;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iotream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>c
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<c;
      |   ^~~~
Language: Java

import java.util.*; 

class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
        String n=sc.next();
  		char[] c=n.toCharArray();
  		String str=String.valueOf(c+1);
    
    System.out.println(str);
    }
}


Compiler output:
Main.java:8: error: bad operand types for binary operator '+'
  		String str=String.valueOf(c+1);
  		                           ^
  first type:  char[]
  second type: int
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
	int n,m;
  	cin>>n>>m;
  	int penalty = 0;
  	int num_ac=0;
  	unordered_map<int,bool> AC;
  	int p;string s;
  	for(int i=0;i<m;++i){
    	cin>>p>>s;
      	if(s[0]=='W'){
        	if(AC.count(p)==0) ++penalty;
        }
      	else AC[p]=true;
    }
  	for(auto it = AC.begin();it != AC.end();++it){
    	if(it->second == true) ++num_ac;
    }

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

#incude<iostream>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incude<iostream>
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << c + 1 << endl;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:20: error: 'endl' was not declared in this scope
    8 |   cout << c + 1 << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incude<iostream>
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(system.in);
      	String a = next();
      	String[] list = {"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<27;i++){
        	String b = list[i];
          	if(a == "z"){
            	break;
            }else if(a.equals(b)){
            	System.out.println(list[i+1]);
              	break;
            }
        }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(system.in);
    	                         ^
  symbol:   variable system
  location: class Main
Main.java:5: error: cannot find symbol
      	String a = next();
      	           ^
  symbol:   method next()
  location: class Main
2 errors
Language: C

import java.io.*;
import java.math.*;
import java.util.*;
import java.util.stream.*;

class Main {
    public static void main(String[] args) throws IOException {
        char ans = (char)(receiveChar() + 1);
        println(ans);
        flush();
    }

    // 入出力関連
    static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    static final PrintWriter pw = new PrintWriter(System.out);

    enum Delimiter {
        NONE(""), SPACE(" "), DOT("\\."), COMMA(",");

        private String regex;

        private Delimiter(String regex) {
            this.regex = regex;
        }

        public String getRegex() {
            return regex;
        }
    }

    static String receive() throws IOException {
        return br.readLine();
    }

    static int receiveInt() throws IOException {
        return Integer.parseInt(br.readLine());
    }

    static char receiveChar() throws IOException {
        return br.readLine().charAt(0);
    }

    static char[] receiveCharArray() throws IOException {
        return br.readLine().toCharArray();
    }

    static int[] receiveIntArray(Delimiter delimiter) throws IOException {
        return Stream.of(br.readLine().split(delimiter.getRegex())).mapToInt(Integer::parseInt).toArray();
    }

    static String[] receiveStringArray(Delimiter delimiter) throws IOException {
        return Stream.of(br.readLine().split(delimiter.getRegex())).toArray(String[]::new);
    }

    static void print(Object obj) {
        pw.print(obj);
    }

    static void println(Object obj) {
        pw.println(obj);
    }

    static void flush() {
        pw.flush();
    }
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.io.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.io.*;
      |            ^
main.c:2:1: error: unknown type name 'import'
    2 | import java.math.*;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.math.*;
      |            ^
main.c:3:1: error: unknown type name 'import'
    3 | import java.util.*;
      | ^~~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | import java.util.*;
      |            ^
main.c:4:1: error: unknown type name 'import'
    4 | import java.util.stream.*;
      | ^~~~~~
main.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    4 | import java.util.stream.*;
      |            ^
main.c:6:1: error: unknown type name 'class'
    6 | class Main {
      | ^~~~~
main.c:6:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    6 | class Main {
      |            ^
Language: C++

int main() {
	char str;
	cin >> str;
	char str_next = str + 1;
	cout << str_next << endl;
	return 0;
}

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

int main() {
	char str;
	cin >> str;
	char str_next = str + 1;
	cout << str_next << endl;
	system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> str;
      |         ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << str_next << endl;
      |         ^~~~
a.cc:5:29: error: 'endl' was not declared in this scope
    5 |         cout << str_next << endl;
      |                             ^~~~
a.cc:6:9: error: 'system' was not declared in this scope
    6 |         system("pause");
      |         ^~~~~~
Language: C++

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();

    char strChar = str.charAt(0);
    int code = (int)strChar;
    char out = (char)(code+1);
    
    System.out.println(out);

  }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: Java

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    s++;
    System.out.println("s");
  }
}

Compiler output:
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: bad operand type String for unary operator '++'
    s++;
     ^
3 errors
Language: C++

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

int main(){
    char a;
    cin>>a;
    cout<<++a:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before ':' token
    7 |     cout<<++a:
      |              ^
      |              ;
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:40: error: expected ';' before 'return'
    8 |         cout << char( int(c)+1) << "\n"
      |                                        ^
      |                                        ;
    9 |   return 0;
      |   ~~~~~~
Language: C++

#include <iostream>
int main(){
  char c;
  cin>>c;
  char b;
  b=c+1;
  cout<<b<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>c;
      |   ^~~
      |   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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<b<<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:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<b<<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)
      |     ^~~~
Language: C++

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    const long div = 1000000007;
    long idx = 0;
	char a;
  	cin >> a;
  	a += 1;
    cout << a << endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin.tie(0);
      |     ^~~
a.cc:4:5: error: 'ios' has not been declared
    4 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << a << endl;
      |     ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |     cout << a << endl;
      |                  ^~~~
Language: C

#include <stdio.h>
 
int main(void) {
  char c;
  c=getc();
  c++;
  putc(c);
  return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:5:5: error: too few arguments to function 'getc'
    5 |   c=getc();
      |     ^~~~
In file included from main.c:1:
/usr/include/stdio.h:576:12: note: declared here
  576 | extern int getc (FILE *__stream) __nonnull ((1));
      |            ^~~~
main.c:7:3: error: too few arguments to function 'putc'
    7 |   putc(c);
      |   ^~~~
/usr/include/stdio.h:612:12: note: declared here
  612 | extern int putc (int __c, FILE *__stream) __nonnull ((2));
      |            ^~~~
Language: C

#include <stdio.h>

int main(void) {
  c=getc();
  c++;
  putc(c);
  return 0;
}




Compiler output:
main.c: In function 'main':
main.c:4:3: error: 'c' undeclared (first use in this function)
    4 |   c=getc();
      |   ^
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:5: error: too few arguments to function 'getc'
    4 |   c=getc();
      |     ^~~~
In file included from main.c:1:
/usr/include/stdio.h:576:12: note: declared here
  576 | extern int getc (FILE *__stream) __nonnull ((1));
      |            ^~~~
main.c:6:3: error: too few arguments to function 'putc'
    6 |   putc(c);
      |   ^~~~
/usr/include/stdio.h:612:12: note: declared here
  612 | extern int putc (int __c, FILE *__stream) __nonnull ((2));
      |            ^~~~
Language: C

#include <stdio.h>
char c;

c= getc();
c= c++;
putc(c);

rerutn 0;


Compiler output:
main.c:4:1: warning: data definition has no type or storage class
    4 | c= getc();
      | ^
main.c:4:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:4:1: error: conflicting types for 'c'; have 'int'
main.c:2:6: note: previous declaration of 'c' with type 'char'
    2 | char c;
      |      ^
main.c:4:4: error: too few arguments to function 'getc'
    4 | c= getc();
      |    ^~~~
In file included from main.c:1:
/usr/include/stdio.h:576:12: note: declared here
  576 | extern int getc (FILE *__stream) __nonnull ((1));
      |            ^~~~
main.c:5:1: warning: data definition has no type or storage class
    5 | c= c++;
      | ^
main.c:5:1: error: type defaults to 'int' in declaration of 'c' [-Wimplicit-int]
main.c:5:1: error: conflicting types for 'c'; have 'int'
main.c:2:6: note: previous declaration of 'c' with type 'char'
    2 | char c;
      |      ^
main.c:5:4: error: initializer element is not constant
    5 | c= c++;
      |    ^
main.c:6:1: warning: data definition has no type or storage class
    6 | putc(c);
      | ^~~~
main.c:6:1: error: type defaults to 'int' in declaration of 'putc' [-Wimplicit-int]
main.c:6:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
main.c:8:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
    8 | rerutn 0;
      |        ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

const int dim = (int) (1e5) + 1;

int n, m, p[dim], wa[dim], c, p;
bool ac[dim];
char s[dim][5];

int main()
{
    cin>>n>>m;
    for(int i = 1;i <=m;i++)
    {
        cin>>p[i]>>s[i];
    }
    for(int i = 1;i <= m;i++)
    {
        if(!ac[i])
        {
            if(strcmp(s[i], "AC") == 0)
            {
                ac[p[i]]++;
            }
            else
            {
                wa[p[i]]++;
            }
        }
    }
    for(int i = 1;i <= n;i++)
    {
        if(ac[i])
        {
            c++;
            p += wa[i];
        }
    }
    cout<<c<<' '<<p;
    return 0;
}


Compiler output:
a.cc:7:31: error: conflicting declaration 'int p'
    7 | int n, m, p[dim], wa[dim], c, p;
      |                               ^
a.cc:7:11: note: previous declaration as 'int p [100001]'
    7 | int n, m, p[dim], wa[dim], c, p;
      |           ^
a.cc: In function 'int main()':
a.cc:24:24: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   24 |                 ac[p[i]]++;
      |                 ~~~~~~~^
a.cc:37:15: error: incompatible types in assignment of 'int' to 'int [100001]'
   37 |             p += wa[i];
      |             ~~^~~~~~~~
Language: Java

import java.util.Scanner;

public class alphabet{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
       String C=sc.nextLine();
       String alp="abcdefghijklmnopqrstuvwxyz";
       int X=alp.indexOf(C);
      
      System.out.println(alp.charAt(X+1));
            
    }
  }

Compiler output:
Main.java:3: error: class alphabet is public, should be declared in a file named alphabet.java
public class alphabet{
       ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char n;
  string al = "abcdefghijklmnopqrstuvwxyz";
  cin >> n;
  for(int i =0; i<25; i++){
    if(al[i]==n){
      cout<<al.at[i+1];
      break;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    9 |       cout<<al.at[i+1];
      |                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  str n;
  vector<str> al = "abcdefghijklmnopqrstuvwxyz";
  cin >> n;
  for(int i =0; i<26; i++){
    if(al.at(i)==n){
      cout<<al.at(i+1);
      break;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'str' was not declared in this scope; did you mean 'std'?
    4 |   str n;
      |   ^~~
      |   std
a.cc:5:13: error: template argument 2 is invalid
    5 |   vector<str> al = "abcdefghijklmnopqrstuvwxyz";
      |             ^
a.cc:5:20: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    5 |   vector<str> al = "abcdefghijklmnopqrstuvwxyz";
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                    |
      |                    const char*
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> n;
      |          ^
      |          yn
a.cc:8:11: error: request for member 'at' in 'al', which is of non-class type 'int'
    8 |     if(al.at(i)==n){
      |           ^~
a.cc:9:16: error: request for member 'at' in 'al', which is of non-class type 'int'
    9 |       cout<<al.at(i+1);
      |                ^~
Language: C++

#inclde<iostream>
using namespace std;
int main()
{
  char c;
  cin>>c;
  cout<<char(c+1);
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde<iostream>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<char(c+1);
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

clude<bits/stdc++.h>
using namespace std;
int main()
{
  char c;
  cin>>c;
  c++;
  cout<<c<<endl;
  return 0;
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude<bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>c;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<c<<endl;
      |   ^~~~
a.cc:8:12: error: 'endl' was not declared in this scope
    8 |   cout<<c<<endl;
      |            ^~~~
Language: C++

clude<bits/stdc++.h>
using namespace std;
int main()
{
  char c;
  cin>>c;
  cout<<c+1<<endl;
  return 0;
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude<bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>c;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<c+1<<endl;
      |   ^~~~
a.cc:7:14: error: 'endl' was not declared in this scope
    7 |   cout<<c+1<<endl;
      |              ^~~~
Language: C++

#include <stdio.h>

char [2];
int main(){
  scanf("%s",in);
  in[0]++;
  printf("%s\n",in);
}


Compiler output:
a.cc:3:7: error: expected identifier before numeric constant
    3 | char [2];
      |       ^
a.cc:3:7: error: expected ']' before numeric constant
    3 | char [2];
      |       ^
      |       ]
a.cc:3:6: error: structured binding declaration cannot have type 'char'
    3 | char [2];
      |      ^
a.cc:3:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:3:6: error: empty structured binding declaration
a.cc:3:9: error: expected initializer before ';' token
    3 | char [2];
      |         ^
a.cc: In function 'int main()':
a.cc:5:14: error: 'in' was not declared in this scope; did you mean 'int'?
    5 |   scanf("%s",in);
      |              ^~
      |              int
Language: C++

#include <stdio.h>

char[2];
int main(){
  scanf("%s",in);
  in[0]++;
  printf("%s\n",in);
}


Compiler output:
a.cc:3:6: error: expected identifier before numeric constant
    3 | char[2];
      |      ^
a.cc:3:6: error: expected ']' before numeric constant
    3 | char[2];
      |      ^
      |      ]
a.cc:3:5: error: structured binding declaration cannot have type 'char'
    3 | char[2];
      |     ^
a.cc:3:5: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:3:5: error: empty structured binding declaration
a.cc:3:8: error: expected initializer before ';' token
    3 | char[2];
      |        ^
a.cc: In function 'int main()':
a.cc:5:14: error: 'in' was not declared in this scope; did you mean 'int'?
    5 |   scanf("%s",in);
      |              ^~
      |              int
Language: C++

#include<bits/stdc++.h>
using namespace std;
int sum(int i) {
  int N;
  cin >> N;
  vector<int>score(N);
    for(int i; i < N; i++){
    cin >> score.at(i);
    }
  if(i == 0){return 0;}
  int s = sum(i-1);
  return s + score.at(i);
}
int main(){
  int C, K;
  int i = 0;
  cin >> C;
  cin >> K;
  int answer = 0; 
  
  if(sum < K * N & sum > (K - 1) * N){
    answer = K * N - sum;
  }
  else if(sum < (K - 1) * N){
    answer = "-1";   
  }
  
  cout << answer << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: 'N' was not declared in this scope
   21 |   if(sum < K * N & sum > (K - 1) * N){
      |                ^
a.cc:25:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   25 |     answer = "-1";
      |              ^~~~
      |              |
      |              const char*
Language: C++

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

int main()
{
  cin>>ch;
  ch+=1;
  cout<<ch;
  return 0;
}

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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before ':' token
    6 |   a++:
      |      ^
      |      ;
Language: C++

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

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

print(chr(ord('input()')+1))

Compiler output:
a.cc:1:15: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    1 | print(chr(ord('input()')+1))
      |               ^~~~~~~~~
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
    1 | print(chr(ord('input()')+1))
      |      ^
Language: C++

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

int main(){
  chat s;
  cin >> s;
  cout << s+1 << endl;
}

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

#include <iostream>
using namespace std;

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

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

C = input()

x = 'abcdefghijklmnopqrstuvwxyz'
print(x[x.index(C) + 1])

Compiler output:
a.cc:3:5: warning: multi-character literal with 26 characters exceeds 'int' size of 4 bytes
    3 | x = 'abcdefghijklmnopqrstuvwxyz'
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'C' does not name a type
    1 | C = input()
      | ^
Language: Java

import java.utils.*;
public class Main{
public static void main(String gg[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int m = sc.nextInt();
        int scores[] = new int[n-1];
        int sum = 0;
        for(int i = 0; i<scores.length; i++){
            scores[i] = sc.nextInt();
            sum = sum + scores[i];
        }
        int finalScore = (m * n) - sum;
        if(finalScore < 0){
            System.out.println("0");
            return;
        }
        if(finalScore>k){
            System.out.println("-1");
        }else {
            System.out.println(finalScore);
        }
    }
}

Compiler output:
Main.java:1: error: package java.utils does not exist
import java.utils.*;
^
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
3 errors
Language: Java

import java.io.*;
import java.util.*;

public class Codeforces {
    public static void main(String[] args) throws Exception {
        MyScanner in = new MyScanner();
        out = new PrintWriter(new BufferedOutputStream(System.out));
        String input = in.nextLine();
        int val = input.charAt(0);

        out.println((char) (val+1));

        out.close();
    }

    public static PrintWriter out;

    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
}

Compiler output:
Main.java:4: error: class Codeforces is public, should be declared in a file named Codeforces.java
public class Codeforces {
       ^
1 error
Language: Java

import java.io.IOException;

public class NextAlphabet {
    public static void main(String[] args) throws IOException {
        char c = (char) System.in.read();
        int b=0;
        if( c>=97 && c<122){
            b = c + 1;
        }
        else {
            System.out.println("Not allowed");
        }
        c =(char)b;
        System.out.println(c);
    }
}

Compiler output:
Main.java:3: error: class NextAlphabet is public, should be declared in a file named NextAlphabet.java
public class NextAlphabet {
       ^
1 error
Language: Java

import java.io.IOException;
import java.util.Scanner;

public class NextAlphabet {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        char c = (char) System.in.read();
        int b = c + 1;
        c =(char)b;
        System.out.println(c);
    }
}

Compiler output:
Main.java:4: error: class NextAlphabet is public, should be declared in a file named NextAlphabet.java
public class NextAlphabet {
       ^
1 error
Language: Java

import java.util.*
public class Main{
public static void main(String gg[]){
        Scanner sc = new Scanner(System.in);
        char a = sc.next().charAt(0);
        int ascii = a;
        if(ascii>=97 && ascii<122){
            System.out.println((char)ascii+1);
        }
    }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: Java

public class Main{
public static void main(String gg[]){
        Scanner sc = new Scanner(System.in);
        char a = sc.next().charAt(0);
        int ascii = a;
        if(ascii>=97 && ascii<122){
            System.out.println((char)ascii+1);
        }
    }
}

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

public class Main {

    public static void main(String[] args) {
      Scanner sc= new Scanner(System.in);
      
        char C=sc.next();
        int asc=(int)C;
        //System.out.println(asc);
        asc++;
        char D=(char)asc;
        System.out.println(D);
    }
}


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 <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ')' before ';' token
    7 |   cout << (char((int)C + 1);
      |           ~                ^
      |                            )
Language: C++

#include <iostream>
using namespace std;

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

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

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    char num1;

  	std::cin >> num1;
  	if (num1 != 'z') {
      std::cout << static_cast<char>(num1 + 1);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:10: error: 'std::ios' has not been declared
    2 |     std::ios::sync_with_stdio(false);
      |          ^~~
a.cc:3:10: error: 'cin' is not a member of 'std'
    3 |     std::cin.tie(0);
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main() {
a.cc:7:14: error: 'cin' is not a member of 'std'
    7 |         std::cin >> num1;
      |              ^~~
a.cc:7:14: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:12: error: 'cout' is not a member of 'std'
    9 |       std::cout << static_cast<char>(num1 + 1);
      |            ^~~~
a.cc:9:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

char c;
cin >> C;
cout << ((int)C + 1);

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> C;
      | ^~~
a.cc:3:1: error: 'cout' does not name a type
    3 | cout << ((int)C + 1);
      | ^~~~
Language: Java

Class Main{
public static void main(String...args){
Scanner sc= new Scanner(System.in);
char C= sc.nextChar();  
int ascii = (int) C;
  ascii++;
  C= (char) ascii;
  System.out.println(C);
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Class Main{
^
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String...args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:10: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#inlcude <iostream>

using namespace std;

int main() {
  	char C = '';
  	cin >> C;
  	if(C != 'z') {
      return C + 1;
    }
	return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <iostream>
      |  ^~~~~~~
      |  include
a.cc:6:18: error: empty character constant
    6 |         char C = '';
      |                  ^~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> C;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude <iostream>
Language: C++

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

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

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

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

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

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

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

int main(){
	string　T;
    cin >> T;
    cout << T[0] + 1 << endl;
}

Compiler output:
a.cc:6:9: error: extended character 　 is not valid in an identifier
    6 |         string　T;
      |         ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'string\U00003000T' was not declared in this scope
    6 |         string　T;
      |         ^~~~~~~~~
a.cc:7:12: error: 'T' was not declared in this scope
    7 |     cin >> T;
      |            ^
Language: C++

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

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

Compiler output:
a.cc:6:9: error: extended character 　 is not valid in an identifier
    6 |         string　al;
      |         ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'string\U00003000al' was not declared in this scope
    6 |         string　al;
      |         ^~~~~~~~~~
a.cc:7:12: error: 'al' was not declared in this scope
    7 |     cin >> al;
      |            ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  char x;
  cin >> x;
  int y;
  y = (int)x;
  y++;
  cout << (char)y
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before '}' token
    9 |   cout << (char)y
      |                  ^
      |                  ;
   10 | }
      | ~
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;


int main(){
  char s;
  cin >> s;
  int ans = (int)s;
  i++;
  cout << i << endl;
}


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

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

Compiler output:
Main.java:7: error: cannot find symbol
        	char s = scan.Next();
        	             ^
  symbol:   method Next()
  location: variable scan of type Scanner
1 error
Language: Java

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

Compiler output:
Main.java:7: error: incompatible types: String cannot be converted to char
    		char s = scan.next();
    		                  ^
1 error
Language: C

#include<stdio.h>
 
int main()
{
    char s[1];
    
    scanf("%s",s);
    
    printf("%c",s[0]+1):
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ';' before ':' token
    9 |     printf("%c",s[0]+1):
      |                        ^
      |                        ;
Language: Java

import java.util.Scanner;

/**
 * <p>Description: </p>
 * <p>Company: http://www.dmall.com</p>
 *
 * @author yong.zhang@dmall.com
 * @version 1.0.0
 * @date 2019/12/21 21:02
 */
public class Solution {


    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.next();
        char c = str.charAt(0);
        System.out.println((char) (c + 1));
    }
}

Compiler output:
Main.java:11: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
1 error
Language: C++

#incude <iostream>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incude <iostream>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << (char)(c+1) << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:26: error: 'endl' was not declared in this scope
    7 |   cout << (char)(c+1) << endl;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incude <iostream>