criyle/codenet-compile-errors huggingface dataset:
Language: Java

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


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

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


Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to char
    char s = scan.next();
                      ^
1 error
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: '.class' expected
    System.out.println(char(s[0]+1));
                           ^
Main.java:6: error: not a statement
    System.out.println(char(s[0]+1));
                                ^
Main.java:6: error: ';' expected
    System.out.println(char(s[0]+1));
                                  ^
3 errors
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.at(0)+1));
  }
}

Compiler output:
Main.java:6: error: '.class' expected
    System.out.println(char(s.at(0)+1));
                           ^
Main.java:6: error: not a statement
    System.out.println(char(s.at(0)+1));
                                   ^
Main.java:6: error: ';' expected
    System.out.println(char(s.at(0)+1));
                                     ^
3 errors
Language: Java

import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {
	//C問題

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String c;
		String ans;
		int index;

		List<String> lists = Arrays.asList("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");

		c = scanner.next();

		for (int i = 0; i < lists.size(); i++) {

			if (c.equals(lists.get(i))) {
				ans = lists.get(i + 1);
			}
		}

		System.out.println(ans);

	}

}


Compiler output:
Main.java:26: error: variable ans might not have been initialized
		System.out.println(ans);
		                   ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<char> alphabet(26);
  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'];
  char c;
  cin >> c;
  for (int i=0; i<25; i++){
    if (c == alphabet[i]){
      cout << alphabet[i+1];
      return 0;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected identifier before 'a'
    5 |   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'];
      |               ^~~
a.cc:5:18: error: expected ']' before ',' token
    5 |   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'];
      |                  ^
      |                  ]
a.cc: In lambda function:
a.cc:5:18: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:5:18: error: no match for 'operator=' (operand types are 'std::vector<char>' and 'main()::<lambda()>')
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = char; _Alloc = std::allocator<char>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'const std::vector<char>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = char; _Alloc = std::allocator<char>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'std::vector<char>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = char; _Alloc = std::allocator<char>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'std::initializer_list<char>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  vector<char> 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'];
  char c;
  cin >> c;
  for (int i=0; i<25; i++){
    if (c == alphabet[i]){
      cout << alphabet[i+1];
      return 0;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:28: error: expected identifier before 'a'
    4 |   vector<char> 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'];
      |                            ^~~
a.cc:4:31: error: expected ']' before ',' token
    4 |   vector<char> 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'];
      |                               ^
      |                               ]
a.cc: In lambda function:
a.cc:4:31: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:4:27: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::vector<char>' requested
    4 |   vector<char> 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'];
      |                           ^~~~
a.cc:4:32: error: expected unqualified-id before 'b'
    4 |   vector<char> 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'];
      |                                ^~~
Language: C++

#include<stdc++.h>
using namespace std;
int main(){
  vector<char> 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'];
  char c;
  cin >> c;
  for (int i=0; i<25; i++){
    if (c == alphabet[i]){
      cout << alphabet[i+1];
      return 0;
    }
  }
}


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

include<stdc++.h>
using namespace std;
int main(){
  vector<char> 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'];
  char c;
  cin >> c;
  for (int i=0; i<25; i++){
    if (c == alphabet[i]){
      cout << alphabet[i+1];
      return 0;
    }
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<char> 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'];
      |   ^~~~~~
a.cc:4:10: error: expected primary-expression before 'char'
    4 |   vector<char> 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'];
      |          ^~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> c;
      |   ^~~
a.cc:8:14: error: 'alphabet' was not declared in this scope
    8 |     if (c == alphabet[i]){
      |              ^~~~~~~~
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout << alphabet[i+1];
      |       ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
string s;
  cin >> s;
  s++;
  cout << s << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    6 |   s++;
      |   ~^~
Language: C++

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


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

#include<iostream>
#include<algorithm>
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:7:6: error: expected ';' before 'cout'
    7 |   C++
      |      ^
      |      ;
    8 |   cout << C << endl;
      |   ~~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include "stdafx.h"
#include <iostream>
#include <cmath>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <cstring>
#include <vector>
#include <stack>
#include <deque>
#include <queue>
#include <cstdlib>
#include <iomanip>
#include <unordered_map>
#include <unordered_set>
typedef long long int ll;
#define forn for(int i=0;i<n;i++) 
#define form for(int j=0;j<m;j++) 
#define pb push_back 
#define mp make_pair 
#define sc second 
#define f first 
#define kek cout<<"\n" 
#define all(v) ((v).begin()), ((v).end()) 
#define pob pop_back() 
const ll MOD = 1e9 + 7;
const int N = 1005;
const ll INF = 1e9;
using namespace std;
int main()
{
#if defined(_DEBUG)
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
	char c;
	cin >> c;
	cout << char(c + 1);
	return 0;


}

Compiler output:
a.cc:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include < iostream > 
using namespace std ;
int main ()
{
	char x ; 
	cout << " please enter alphabet except z \n" ; 
	cin >> x ;
	if ( x != 'z' )
	{
		x+=1;
		cout<<" the next alphabet is "<< x <<"\n" ;
	}
	else 
		cout << " no next alphabet \n"; 

}

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

#include <iostream>


using namespace std;

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

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

#include <iostream>


using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before 'char'
    8 |   cin>>char x;
      |        ^~~~
a.cc:9:3: error: 'n' was not declared in this scope
    9 |   n=char x+1
      |   ^
a.cc:9:5: error: expected primary-expression before 'char'
    9 |   n=char x+1
      |     ^~~~
Language: C++

#include <iostream>


using namespace std;

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

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

#include<iosstream>
using namespace std;
char x;
int main(){
    cin>>x;
if((x>'z') && (islower(x)));
    char y=x+1;
    cout<<y<<endl;
}

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

using namespace std;
char x;
int main(){
    cin>>x;
if((x>'z') && (islower(x)));
    char y=x+1;
    cout<<y<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>x;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:16: error: 'islower' was not declared in this scope
    5 | if((x>'z') && (islower(x)));
      |                ^~~~~~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<y<<endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:14: error: 'endl' was not declared in this scope
    7 |     cout<<y<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C

#include<iostream.h>
int main()
{
  int n,k,m,s=0,p;
  cin>>n>>k>>m;
  p=n*m;
  int a[n];
  for(int i=0;i<n-1;i++)
  {
    cin>>a[i];
    s=s+a[i];
  }
  int o=p-s;
  if(o<=k)
    cout<<o;
  else
    cout<<-1;
  return 0;
}

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

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

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

#include<iostream.h>
#include<conio.h>
int main()
{
  char a;
  cin>>a;
  a=a+1;
  cout<<a;
  return 0;
}

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

#include <stdio.h>

int main(void){
  char c[120];
  scanf(%c,&c);
  printf("%c",c+1);
  return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected expression before '%' token
    5 |   scanf(%c,&c);
      |         ^
Language: C

#include <stdio.h>
#include <stdlib.h>

int main(void){
  char c[120];
  int d;
  scanf(%c,&c);
  printf("%c",c+1);
  return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected expression before '%' token
    7 |   scanf(%c,&c);
      |         ^
Language: C

#include <stdio.h>
#include <stdlib.h>

int main(void){
  char c[120];
  int d;
  scanf(%s,&c);
  printf("%s",c+1);
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected expression before '%' token
    7 |   scanf(%s,&c);
      |         ^
Language: C++

#include<bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL<<((ll)n))
#define SHIFT_LEFT(n) (1LL<<((ll)n))
#define SUBS(s,f,t) ((s).substr((f)-1,(t)-(f)+1))
#define ALL(a) (a).begin(),(a).end()
using namespace std;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  char c:cin>>c;
  cout<<(char)c+1<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: found ':' in nested-name-specifier, expected '::'
   21 |   char c:cin>>c;
      |         ^
      |         ::
a.cc:21:8: error: 'c' has not been declared
   21 |   char c:cin>>c;
      |        ^
a.cc:21:13: error: qualified-id in declaration before '>>' token
   21 |   char c:cin>>c;
      |             ^~
a.cc:22:15: error: 'c' was not declared in this scope
   22 |   cout<<(char)c+1<<endl;
      |               ^
Language: C++

#include <iostream>
using namespace std;
int main (){
    char x;
    cin>>x;
    char y= x+1;
    cout<<y<<endl;
    cout<<
    
}


















Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: expected primary-expression before '}' token
   10 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main (){
    char x;
    cin>>x;
    char y= x+1;
    cout<<y<<endl;
    
    


















Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected '}' at end of input
    7 |     cout<<y<<endl;
      |                   ^
a.cc:3:12: note: to match this '{'
    3 | int main (){
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main() {
    char c;
    cin >> c;
    if (c != 'z') {
        char y = c + 1;
        cout << y << endl;
        cout << c << " is followed by " << y << '.';
    } else cout << "z";

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected '}' at end of input
   10 |     } else cout << "z";
      |                        ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main() {
    char c;
    cin >> c;
    char y = c + 1;
    cout << y << endl;
    cout << c << " is followed by " << y<< '.';

Compiler output:
a.cc: In function 'int main()':
a.cc:8:48: error: expected '}' at end of input
    8 |     cout << c << " is followed by " << y<< '.';
      |                                                ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main() {
    char x;
    cin>>x;
    x=tolower (x);
    char y=x+1;
    cout<<y<<endl;
    cout<<x<<" is followed by "<<y;

    }
    return 0;

Compiler output:
a.cc:12:5: error: expected unqualified-id before 'return'
   12 |     return 0;
      |     ^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
    char x;
    cin>>x;
    x=tolower (x);
    char y=x+1;
    cout<<y<<endl;
    cout<<x<<" is followed by "<<y;

    }
return0;

Compiler output:
a.cc:12:1: error: 'return0' does not name a type
   12 | return0;
      | ^~~~~~~
Language: C++

    char letter;
    cout << "Enter a char" << endl;
    cin >> letter;
    int AsciVal= int(letter);
    char nextLetter=AsciVal+1;
    cout << "Next Letter is: " << nextLetter;

Compiler output:
a.cc:2:5: error: 'cout' does not name a type
    2 |     cout << "Enter a char" << endl;
      |     ^~~~
a.cc:3:5: error: 'cin' does not name a type
    3 |     cin >> letter;
      |     ^~~
a.cc:6:5: error: 'cout' does not name a type
    6 |     cout << "Next Letter is: " << nextLetter;
      |     ^~~~
Language: C++

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

int main(){
  int n, i;
  char a[] = {'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'};
  cin >> a[n];
  for(i=0; i<26; i++){
    if(a[i]){
      cout << a[i+1];
    }
    return 0;
  }

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

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

int main(){
  int n, i;
  char a[] = {'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';
  cin >> a[n];
  for(i=0; i<26; i++){
    if(a[i]){
      cout << a[i+1];
    }
    return 0;
  }
    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:145: error: expected '}' before ';' token
    6 |   char a[] = {'a', 'b' , 'c' , 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z';
      |              ~                                                                                                                                  ^
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'for'
   10 |     for (int i = 0; i < str.size(); i++) {
      |     ^~~
a.cc:10:21: error: 'i' was not declared in this scope
   10 |     for (int i = 0; i < str.size(); i++) {
      |                     ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	char c;
	std::cin >> c;
	std::cout << char(c + 1);
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'ios_base' has not been declared
    4 |         ios_base::sync_with_stdio(false);
      |         ^~~~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin.tie(NULL);
      |         ^~~
      |         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
      |                  ^~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>c;
      |   ^~~
      |   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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout<<a;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		char ch;
		Scanner s = new Scanner(System.in);
		ch = s.next().charAt(0);
		System.out.println(char(int(ch)+1));
	}
}


Compiler output:
Main.java:11: error: '.class' expected
		System.out.println(char(int(ch)+1));
		                       ^
Main.java:11: error: not a statement
		System.out.println(char(int(ch)+1));
		                        ^
Main.java:11: error: ';' expected
		System.out.println(char(int(ch)+1));
		                           ^
Main.java:11: error: not a statement
		System.out.println(char(int(ch)+1));
		                            ^
Main.java:11: error: ';' expected
		System.out.println(char(int(ch)+1));
		                              ^
5 errors
Language: C++

#include <iostream>
int main(){
  char x;
  cin >> x;
  
  cout << char(int(x)+1);
}

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 >> 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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << char(int(x)+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 <iostream>

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:8:8: error: expected ';' before 'c'
    8 |     cin c>>;
      |        ^~
      |        ;
Language: C++

#include <iostream>

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:8:8: error: expected ';' before 'c'
    8 |     cin c>>
      |        ^~
      |        ;
Language: C++

#include <iostream>

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:11:14: error: expected '}' at end of input
   11 |     return 0;
      |              ^
a.cc:6:5: note: to match this '{'
    6 |     {
      |     ^
Language: C++

#include <iostream>

using namespace std;

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

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

#include<stdio.h>
#include<stdlib.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'prnitf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |   prnitf("%c", c+1);
      |   ^~~~~~
      |   printf
Language: C++

#include <bits/stc++.h>

using namespace std;

/// Bismillahir Rahmanir Raahim

int main(void)
{	
  char ch;
  
  scanf("%c", &ch);
  
  printf("%c\n", ch+1);


	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<iostream>
using namespace std;
int main()
{
  string c==96;
  cin>>c;
  cout>>c+1>>endl;
}
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before '==' token
    5 |   string c==96;
      |           ^~
a.cc:6:8: error: 'c' was not declared in this scope
    6 |   cin>>c;
      |        ^
a.cc: At global scope:
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before 's'
    5 |  char 's' ;
      |       ^~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
Language: Java

import java.util.Scanner;

public class EjerB {

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

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

#include <iostream>
using namespace std;
int main ()
{
	char x ;
	cin>>x ;
	char y=x+1;
	cout<<y <<end1;
	return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'end1' was not declared in this scope
    8 |         cout<<y <<end1;
      |                   ^~~~
Language: C++

#include <iostream>
using namespace std;
int main ()
{
	char x;
	cout<<"enter the letter \n";

	cin>>x;
	y=++x;
	cout<<y <<"\n";
	return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'y' was not declared in this scope
    9 |         y=++x;
      |         ^
Language: C++

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


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

#include<stdio.h>
#include<conio.h>
void main()
{
	char ch;
	scanf("%c", &ch);
	
	ch=ch+1;
	  printf("%c",ch);
	
	
	return 0;
}


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

#include<stdio.h>
#include<conio.h>
void main()
{
	char ch;
	scanf("%c", &ch);
	if(ch>=97&&ch<=122)
	{ ch=ch+1;
	  printf("%c",ch);
	}
	else
	printf("Wrong enter");
	return 0;
}


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

#include<stdio.h>
#include<conio.h>
main()
{	clrscr();
	char ch;
	printf("Enter a Alphabet in lower case");
	scanf("%c",&ch);
	
	if(ch>=97&&ch<=122)
	{ ch=ch+1;
	  printf("Next Alphabet=%c",ch);
	}

}


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

#include <iostream>

using namespace std;

int main()
{
   char x;
   cin>>x;
   char y;
   y=char(x+1);
   cout<<x<<" is fowlled by "<<y;
    return 0;
}


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

#iclude <iostream>
using namespace std;
int main()
{
  char c, x;
  cin>>c;
  if (c!='z')
  {
    x = char(c +1);
    cout<<x<<endl;
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <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 | #iclude <iostream>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<x<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:14: error: 'endl' was not declared in this scope
   10 |     cout<<x<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #iclude <iostream>
Language: C++

#iclude <iostream>
using namespace std;
int main()
{
  char c, x;
  cin>>c;
  if (c!='z')
  {
    x = char(x +1);
    cout<<x<<endl;
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <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 | #iclude <iostream>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<x<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:14: error: 'endl' was not declared in this scope
   10 |     cout<<x<<endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #iclude <iostream>
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 |     printf(c+1);
      |            ~^~
      |             |
      |             int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<iostream>
#include<bits/stdc++.h>
using namespace std ;
int main()
{
   char s;
   cin>>s;
   if (s>='a' and a<'z')
  {
          cout << static_cast<char>(s+1);
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'a' was not declared in this scope
    8 |    if (s>='a' and a<'z')
      |                   ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int main()
{
  char ax;
  cin >> ax;
  vector<char> bx = {'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(ax==bx.at(i))
    {
      cout << bx.at(i+1) << endl;
      break;
    }
  }
}

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

1 #include <stdio.h>

3 char in[2];
4 int main(){
5 	scanf("%s",in);
6 	in[0]++;
7 	printf("%s\n",in);
8 }


Compiler output:
main.c:1:1: error: expected identifier or '(' before numeric constant
    1 | 1 #include <stdio.h>
      | ^
main.c:1:3: error: stray '#' in program
    1 | 1 #include <stdio.h>
      |   ^
main.c:4:1: error: expected identifier or '(' before numeric constant
    4 | 4 int main(){
      | ^
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:
main.c:1:1: error: expected identifier or '(' before numeric constant
    1 | 1 #include <stdio.h>
      | ^
main.c:1:3: error: stray '#' in program
    1 | 1 #include <stdio.h>
      |   ^
main.c:4:1: error: expected identifier or '(' before numeric constant
    4 | 4 int main(){
      | ^
Language: C++

include <bits/stdc++.h>

using namespace std;

int main(){
	char c;
  cin >> c;
	c=c+1;

    cout<<c<<endl;
  }


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

#include <bits/stdc++.h>

#define rep(i,n) for (int i = 0; i< (n); i++)
using namespace std;
 
int main() {
  int N, M;
  char c;
  
  cin>>c;
  c = c+1;
  cout<<c<<endl;
  

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

int a;
cin >> a >>;
cout << (a+1) << endl;

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

#include<stdio.h>
int main(){
    char c;;
    scanf("%c",&c);
    pritnf("%c",(c+1 - 'a')%26);
    }
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |     pritnf("%c",(c+1 - 'a')%26);
      |     ^~~~~~
      |     printf
main.c: At top level:
main.c:7:1: error: expected identifier or '(' before '}' token
    7 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ')' before ';' token
    9 |   printf("%s\n", moji;
      |         ~            ^
      |                      )
Language: C++

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

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

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

public class Main {
	public static void main(String[] args) {

		Map<String, String> M = new HashMap<>();

		Scanner sc = new Scanner(System.in);

		String str = sc.next();

		M.put("a", "b");
		M.put("b", "c");
		M.put("c", "d");
		M.put("d", "e");
		M.put("e", "f");
		M.put("f", "g");
		M.put("g", "h");
		M.put("h", "i");
		M.put("i", "j");
		M.put("j", "k");
		M.put("k", "l");
		M.put("l", "m");
		M.put("m", "n");
		M.put("n", "o");
		M.put("o", "p");
		M.put("p", "q");
		M.put("q", "r");
		M.put("r", "s");
		M.put("s", "t");
		M.put("t", "u");
		M.put("u", "v");
		M.put("v", "w");
		M.put("w", "x");
		M.put("x", "y");
		M.put("y", "z");

		System.out.println(M.get(str));

	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		Map<String, String> M = new HashMap<>();
		^
  symbol:   class Map
  location: class Main
Main.java:4: error: cannot find symbol
		Map<String, String> M = new HashMap<>();
		                            ^
  symbol:   class HashMap
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
4 errors
Language: C++

#include<iostream>
using namespace std;
int main(){
  char ch;
  cin>>ch;
  cout<<(ch)((int)ch+1);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'ch' cannot be used as a function
    6 |   cout<<(ch)((int)ch+1);
      |         ~~~~^~~~~~~~~~~
Language: Java

public class Main {

	public static void main(String[] args) {
		String all ="abcdefghijklmnopqrstuvwxyz";
		Scanner sc = new Scanner(System.in);
		String line1 = sc.nextLine();

		String[] afterAll = all.split(line1);

		String ans = afterAll[1].substring(0,1);

		System.out.print(ans);
	}
}


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

int main () {

	char c;

	// 個数と長さの読込み
	scanf("%c", &c);
	printf("%c\n", c+1);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%c", &c);
      |         ^~~~~
a.cc:7:9: error: 'printf' was not declared in this scope
    7 |         printf("%c\n", c+1);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main () {
Language: Java

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

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:6: error: not a statement
  cin >> a;
      ^
Main.java:8: error: not a statement
  cout << a << endl; 
            ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: C++

<html>
<body background="paperr.png">

<div style="text-align:center">

<table border="1" align="centor">
<caption>授業の範囲でＣ言語の関数などをまとめる</caption>
<tr>
<td>関数など</td><td>説明</td>
</tr>

<tr>
<td>printf</td><td>出力に使える関数<br>Tips:<br>
printfでのdouble型の変換指定子は%fと%lfどちらでも良い<br>

<a href ="https://qiita.com/lo48576/items/9901f7d52692567b931c" target="_blank">参考</a></td>
</tr>

<tr>
<td>scanf</td><td>入力に使える関数</td>
</tr>

<tr>
<td>if</td><td>条件分岐に使える<br>
   if(条件式){}<br>
   else if(条件式){}<br>
   else {}
</td>
</tr>


<tr>
<td>switch</td><td>多方向分岐が出来る(ifで代替可)</td>
</tr>


<tr>
<td>for</td><td>ループ処理に使える<br>
for(初期値;条件式；変化式)<br>
条件式が1の時ループを継続する<br>
Tips:<br>
for特有の無限ループ書き方<br>
for(;;)
</td>
</tr>

<tr>
<td>while</td><td>ループ処理に使える<br>
while(条件式)
</td>
</tr>


<tr>
<td>比較演算子</td><td>条件を判定し、その条件が論理的に真の場合は 1(int型)<br>
偽の場合は 0(int型) を返す<br>
<a href ="https://ja.cppreference.com/w/c/language/operator_comparison" target="_blank">参考</a>
</td>
</tr>


<tr>
<td>条件式</td><td>条件式が0以外ならば真<br>
0ならば偽であり真の場合のみ続きの処理を行う<br>
()はif,whileなどの条件式とする<br>
例：if(4>2)比較演算子により1を返す。0以外なので真<br>
    if(3)0以外なので真<br>
    if(0)0なので偽<br>
    while(99)常に0以外なので真→無限ループになる
</td>
</tr>
</div>
</body>
</html>
http://free-paper-texture.com/white-paper-texture-2/

Compiler output:
a.cc:55:24: error: extended character 、 is not valid in an identifier
   55 | <td>比較演算子</td><td>条件を判定し、その条件が論理的に真の場合は 1(int型)<br>
      |                        ^
a.cc:66:12: error: extended character 。 is not valid in an identifier
   66 | 例：if(4>2)比較演算子により1を返す。0以外なので真<br>
      |            ^
a.cc:69:14: error: extended character → is not valid in an identifier
   69 |     while(99)常に0以外なので真→無限ループになる
      |              ^
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <html>
      | ^
a.cc:25:16: error: expected unqualified-id before '<' token
   25 |    if(条件式){}<br>
      |                ^
a.cc:26:21: error: expected unqualified-id before '<' token
   26 |    else if(条件式){}<br>
      |                     ^
a.cc:28:1: error: expected unqualified-id before '<' token
   28 | </td>
      | ^
a.cc:39:12: error: '\U00006761\U00004ef6\U00005f0f\U0000ff1b\U00005909\U00005316\U00005f0f' does not name a type
   39 | for(初期値;条件式；変化式)<br>
      |            ^~~~~~~~~~~~~~
a.cc:43:7: error: expected unqualified-id before ')' token
   43 | for(;;)
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string 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"};
  string inputstr;
  cin >> inputstr;
  
  for(int i = 0;alpha[i] == inputstr;i++){
  	cout << alpha[i+1];
  }


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

#include "stdio.h"

int main(void) {
  /* code */
  int N, K, M

  scanf("%s %s %s",&N, &K, &M);
  int tmp = M*(N-1);
  int a[N];
  for (int i = 0; i < N; i++) {
    /* code */
    scanf("%d\n",&a[i]);
  }
  for (int r = 0; r < N; r++) {
    tmp -= a[r];

    /* code */
  }
  if(tmp>100){
    printf("%d\n",-1);
  }else if(tmp>0){
    printf("%d\n",tmp);
  }else{
    printf("%d\n", 0);
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    7 |   scanf("%s %s %s",&N, &K, &M);
      |   ^~~~~
main.c:8:13: error: 'M' undeclared (first use in this function)
    8 |   int tmp = M*(N-1);
      |             ^
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include "stdio.h"

int int main(void) {
  char c;
  scanf("%c\n", c);
  printf("%c\n", c+1);
  /* code */
  return 0;
  
}

Compiler output:
a.cc:3:1: error: two or more data types in declaration of 'main'
    3 | int int main(void) {
      | ^~~
Language: Java

class Main {
    public static void main (String[] args)  {
        Scanner in = new Scanner(System.in);
        char input = in.next().charAt(0);
        int integerInput = input;
        integerInput++;
        char output= (char) integerInput;
        System.out.print(output);

    }
}


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

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

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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<c+1;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.*;

public class main {

	public static void main(String[] args) {
		System.out.println("Enter character: ");
		Scanner scnr=new Scanner(System.in);
		String s;
		s=scnr.next();
		char c=s.charAt(0);
		int ascii=(int)c;
		ascii++;
		c=(char)ascii;
		System.out.println(c);			
	}
}


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

import java.util.*;

public class alphabet {

	public static void main(String[] args) {
		System.out.println("Enter character: ");
		Scanner scnr=new Scanner(System.in);
		String s;
		s=scnr.next();
		char c=s.charAt(0);
		int ascii=(int)c;
		ascii++;
		c=(char)ascii;
		System.out.println(c);			
	}
}


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 <iostream>
#include <string>
using namespace std;
int main(){
char a;
cin >> a;
a[0]++;
cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: invalid types 'char[int]' for array subscript
    7 | a[0]++;
      |  ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
string a;
cin >> a;
a++;
cout << a << endl;
}

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

#include<iostream>
#include<vector>
#include <cmath>
#include <map>
#include <algorithm>
using namespace std;
int main(void){
    int main(){
    char c ;
    cin >> c;
    c++;
    cout << c << endl;
}

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    8 |     int main(){
      |             ^~
a.cc:8:13: note: remove parentheses to default-initialize a variable
    8 |     int main(){
      |             ^~
      |             --
a.cc:8:13: note: or replace parentheses with braces to value-initialize a variable
a.cc:8:15: error: a function-definition is not allowed here before '{' token
    8 |     int main(){
      |               ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
 char c,d;
 //cout << "Enter a character: ";
 cin >> c;
 int(d)=int(c)+1
   cout<<d;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: conflicting declaration 'int d'
    8 |  int(d)=int(c)+1
      |      ^
a.cc:5:9: note: previous declaration as 'char d'
    5 |  char c,d;
      |         ^