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

#include<stdio.h>
#include<conio.h>
int main()
{
    char ch;
    printf("masukan huruf: ");
    scanf("%c", &ch);
    printf("\n");
    if(ch>=65 && ch<90)
        printf("%c", ch+1);
      else if(ch>=97 && ch<122)
        printf("%c", ch+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<stdio.h>
int main(void){
  char a[15],b[100];
  int i;
  scanf("%s",a);
  b = {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(i = 0;0;i++){
    if(b[i]==a[0]){
      break;
    }
  }
  printf("%s",'b[i+1]');
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: expected expression before '{' token
    6 |   b = {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};
      |       ^
main.c:12:15: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   12 |   printf("%s",'b[i+1]');
      |               ^~~~~~~~
Language: C

#include<stdio.h>
int main(void){
  char a[15],b[100];
  int i;
  scanf("%s",a);
  b = {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(i = 0;0;i++){
    if(b[i]==a[0]){
      break;
    }
  }
  printf("%s",b[i+1]);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: expected expression before '{' token
    6 |   b = {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 <stdio.h>
int main(){
	int C;
	scanf ("%c",&C);
printf ("%c\n%c is followed by %c.\n",x+1,x,x+1);
}

Compiler output:
main.c: In function 'main':
main.c:5:39: error: 'x' undeclared (first use in this function)
    5 | printf ("%c\n%c is followed by %c.\n",x+1,x,x+1);
      |                                       ^
main.c:5:39: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <math.h>
#define int long long
using namespace std;
signed main() {
    char C;
    cin >> C;
    string alphabet = "abcdefghijklmnopqrstuvwxyz";
    for (int i = 0; i < 26; i++) {
        if (C == alphabet.at(i)) {
            cout << alphabet.at(i + 1) << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> C;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <math.h>
  +++ |+#include <iostream>
    2 | #define int long long
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string alphabet = "abcdefghijklmnopqrstuvwxyz";
      |     ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include <math.h>
  +++ |+#include <string>
    2 | #define int long long
a.cc:9:18: error: 'alphabet' was not declared in this scope
    9 |         if (C == alphabet.at(i)) {
      |                  ^~~~~~~~
a.cc:10:13: error: 'cout' was not declared in this scope
   10 |             cout << alphabet.at(i + 1) << endl;
      |             ^~~~
a.cc:10:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:43: error: 'endl' was not declared in this scope
   10 |             cout << alphabet.at(i + 1) << endl;
      |                                           ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <math.h>
  +++ |+#include <ostream>
    2 | #define int long long
Language: C++

#include <iostream>
using namespcae std;

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

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

#include <iostream>

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

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

#include <iostream>
#include <math.h>
#include <string>

using namespace std;
int main()
{
    char a;
    cin>>a;
    a++;
    cout<<a;

    return 0;

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

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

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

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


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

}
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'cin' undeclared (first use in this function)
    6 | cin>>x;
      | ^~~
main.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:5: error: 'cout' undeclared (first use in this function)
   11 |     cout<<a[i+1];
      |     ^~~~
Language: C

#include <iostream>

using namespace std;

int main()
{
char  a[27]={'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<26;i++)
{
if (c==a[i])
{
    cout<<a[i+1];
}

}
    return 0;

Compiler output:
main.c: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  a[27]={'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 x;
cin>>x;
for(int i=0;i<26;i++)
{
if (x==a[i])
{
    cout<<a[i+1];
}

}
    return 0;

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

#include <stdio.h>

int main(void)
{
    char s;
    scanf("%c", &s);

    printf("%c", s + 0x01);

    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:6: error: class, interface, enum, or record expected
    scanf("%c", &s);
    ^
Main.java:8: error: class, interface, enum, or record expected
    printf("%c", s + 0x01);
    ^
Main.java:10: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:11: error: class, interface, enum, or record expected
}
^
6 errors
Language: C++

/*
	Created by : imay_10
	" It won't be EASY, but I'll make it "
*/

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

typedef long long int ll;
const int mod = 1e9+7;
const ll inf = 1e18;
const double pi = 3.1415926535897932384626;

// Utility for fast exponentiation
ll mpow(ll a,ll b,ll m){
    ll res=1;
    //a%=m;
    while(b){
    	if(b%2) res=res*a%m;
		a=a*a%m;
		b/=2;
	}
	return res;
}

// Utility for GCD Calculation
ll gcd(ll a,ll b){
	if(b==0) return a;
	return gcd(b,a%b);
}

void solve(){
	//code
	ch c;
	cin>>c;
	cout<<c+1;
}

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	
	solve();
 	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:34:9: error: 'ch' was not declared in this scope
   34 |         ch c;
      |         ^~
a.cc:35:14: error: 'c' was not declared in this scope
   35 |         cin>>c;
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
  char A;
  cin >> A;
  string alp = "abcdefghijklmnopqrstuvwxyz";
  rep(i, alp.size()) {
    if(A == alp.at(i)) {
      cout << alp.(i + 1) << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected unqualified-id before '(' token
   10 |       cout << alp.(i + 1) << endl;
      |                   ^
Language: C++

int main() {
  char karakter;
  scanf ("%c",&karakter);
  char manipulasi = karakter + 1;
  printf ("%c\n",manipulasi);
 
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf ("%c",&karakter);
      |   ^~~~~
a.cc:5:3: error: 'printf' was not declared in this scope
    5 |   printf ("%c\n",manipulasi);
      |   ^~~~~~
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: C

#include<stdio.h>

int main() {
	int abc ;
	char abc = "" ;
	int ccd = 'abc' + 1 ;
	printf("%c",ccd);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: conflicting types for 'abc'; have 'char'
    5 |         char abc = "" ;
      |              ^~~
main.c:4:13: note: previous declaration of 'abc' with type 'int'
    4 |         int abc ;
      |             ^~~
main.c:5:20: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    5 |         char abc = "" ;
      |                    ^~
main.c:6:19: warning: multi-character character constant [-Wmultichar]
    6 |         int ccd = 'abc' + 1 ;
      |                   ^~~~~
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'scanf'
    5 |         scanf("%c", &g);
      |         ^~~~~
a.cc:6:22: error: 'g' was not declared in this scope
    6 |         printf("%c", g +1);
      |                      ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'scanf'
    5 |         scanf("%c", &gg);
      |         ^~~~~
a.cc:6:22: error: 'gg' was not declared in this scope
    6 |         printf("%c", gg +1);
      |                      ^~
Language: C++

#include <stdio.h>

int main (){
	char ch;
	cout<< "\nc : ";
	cin>>ch;
	ch++;
	cout<<"d : "<<ch;
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout<< "\nc : ";
      |         ^~~~
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>ch;
      |         ^~~
Language: C++

int main(){
  char c;
  cin>>c;

  cout<<char(c+1)<<endl;


}

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

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 2
      | ^
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;
cout<<char(c+1)a<<endl;
return 0;
}

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

#include <stdio.h>

int main() {
	
	char ch;
 	scanf("%c",&r);
 	
	if('a'<=ch&&ch<'z'){
			printf("%c",ch+1);
	}else if(ch=='z'){
		printf("输入数据有误");
	}
		return 0; 
}


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

import java.util.Scanner;

public class A {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		sc.close();
		char[] b = a.toCharArray();
		int c = b[0] + 1;
		char d = (char)c;
		System.out.println(d);
	}
}

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

#include<stdio.h>
int main()
{
	int num;
	scanf("%d",&num);
	if(num>=1&&num<=100)
	{
		if(num%2==0)
		{
			if(x>2) printf("YES");
			else printf("NO");
		}else{
			printf("NO");
		}
	}else{
		printf("NO");
	}
}

Compiler output:
main.c: In function 'main':
main.c:10:28: error: 'x' undeclared (first use in this function)
   10 |                         if(x>2) printf("YES");
      |                            ^
main.c:10:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 | scan("%c",&a);
      | ^~~~
      | scanf
Language: C

#include<stdio.h>

int main()
{
	while(true)
{
	char n;
	scanf("%c",&n);
	if(n>='a'&&n<'z'||n>'A'&&n<'Z')
	{
		printf("%c",n+1);
	}
}
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: 'true' undeclared (first use in this function)
    5 |         while(true)
      |               ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
    5 |         while(true)
      |               ^~~~
Language: C++

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

int main() {
	
	char ch;
 	printf("请输入一个字符：");
 	scanf("%c",&ch);
 	
	if('a'<=ch&&ch<'z'){
		printf("%c",ch+1);
	}else if('z'==ch){
		printf("不能输入z");
	}else{
		printf("输入字符错误");
	}

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

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

int main() {
	
	char ch;
 	printf("请输入一个字符：");
 	scanf("%c",&ch);
 	
	if('a'<=ch&&ch<'z'){
		printf("%c",ch+1);
	}else if('z'==ch){
		printf("不能输入z");
	}else{
		printf("输入字符错误");
	}

Compiler output:
main.c: In function 'main':
main.c:16:9: error: expected declaration or statement at end of input
   16 |         }
      |         ^
Language: C

#include<stdio.h>
int main()
{
	int n;
	scanf("%d",&n);
	if( n >= 1&& n<= 100){
		if(n % 2== 0){
			if(n>2){
				printf("YES");
			}else{
				printf("NO");
			}
			
	}else {
		printf("NO");
	}
}


Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: Java

import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		char[] c = s.toCharArray();
		int a = (int)(c[0]);
		a += 1;
		System.out.println((char)a);
	}

}

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

public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		sc.close();
		char[] b = a.toCharArray();
		int c = b[0] + 1;
		char d = (char)c;
		System.out.println(d);
	}

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.Scanner;

public class NextAlphabet {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		sc.close();
		char[] b = a.toCharArray();
		int c = b[0] + 1;
		char d = (char)c;
		System.out.println(d);
	}
	
}


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

package test;

import java.util.Scanner;

public class Problem1 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		char[] b = a.toCharArray();
		int c = b[0] + 1;
		char d = (char)c;
		System.out.println(d);
	}
	
}


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


import java.util.*;
public class A {
		public static void main(String args[]) {
		 Scanner scanner=new Scanner(System.in);
		 char a=scanner.next().charAt(0);
		 a++;
		 System.out.print(a);
		}
}


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

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

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

Compiler output:
a.cc:7:20: warning: missing terminating " character
    7 |   cout << c + 1 << "\n;
      |                    ^
a.cc:7:20: error: missing terminating " character
    7 |   cout << c + 1 << "\n;
      |                    ^~~~
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout<<char(c+1);
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

public class Quesstion1 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		//入力を繰り返す
		while(true) {
		System.out.println("入力してください");
		Scanner sc = new Scanner(System.in);

		String  C= sc.next();
		char[] charary=C.toCharArray();
		//入力した次の文字を出力
		int ans = charary[0] + 1;
		System.out.println((char)ans);
	}
	}

}


Compiler output:
Main.java:1: error: class Quesstion1 is public, should be declared in a file named Quesstion1.java
public class Quesstion1 {
       ^
Main.java:9: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Quesstion1
Main.java:9: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Quesstion1
3 errors
Language: C++

# !/use/bin/python3

"""
https://atcoder.jp/contests/abc151/tasks/abc151_a
Next Alphabate
"""

def solve(c):
    # print(c)
    ans = ord(c)
    return chr(ans+1)

if __name__ == "__main__":
    c = input()
    print(solve(c))


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #!
    1 | # !/use/bin/python3
      |   ^
a.cc:3:3: warning: missing terminating " character
    3 | """
      |   ^
a.cc:3:3: error: missing terminating " character
a.cc:6:3: warning: missing terminating " character
    6 | """
      |   ^
a.cc:6:3: error: missing terminating " character
a.cc:9:7: error: invalid preprocessing directive #print
    9 |     # print(c)
      |       ^~~~~
a.cc:3:1: error: expected unqualified-id before string constant
    3 | """
      | ^~
Language: C++

#include<bits/stdc++.h>
#define test int t; cin>>t; while(t--)
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
typedef long long ll;
using namespace std;

int main()
{
char s;
  cin>>s;
  for(int i=0;i<=s.size();i++)
    if(s[i]>=97&&s[i]<=122)
      cout<<s[i]+1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: request for member 'size' in 's', which is of non-class type 'char'
   11 |   for(int i=0;i<=s.size();i++)
      |                    ^~~~
a.cc:12:9: error: invalid types 'char[int]' for array subscript
   12 |     if(s[i]>=97&&s[i]<=122)
      |         ^
a.cc:12:19: error: invalid types 'char[int]' for array subscript
   12 |     if(s[i]>=97&&s[i]<=122)
      |                   ^
a.cc:13:14: error: invalid types 'char[int]' for array subscript
   13 |       cout<<s[i]+1;
      |              ^
Language: C

#include<bits/stdc++.h>

using namespace std;

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


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

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

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


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

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

int main() {
  char A ;
  cin >> A ; 
  A++ ; 
  
  cout << A[0] << endl ;
  
  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: invalid types 'char[int]' for array subscript
    9 |   cout << A[0] << endl ;
      |            ^
Language: C++

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

int main() {
  char A ;
  cin >> A ; 
  A++
  
  cout << A[0] << endl ;
  
  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'cout'
    7 |   A++
      |      ^
      |      ;
    8 | 
    9 |   cout << A[0] << endl ;
      |   ~~~~
Language: C++

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

int main() {
  char A[1] ;
  cin >> A ; 
  A++ ; 
  cout << A[1]<< endl ;
  
  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: lvalue required as increment operand
    7 |   A++ ;
      |   ^
Language: C++

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

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

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

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

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

#define rep2(i, s, n) for(int i = (s); i < (int)(n); i++)
typedef long long ll;

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

Compiler output:
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 << char(c+1);
      |   ^~~~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
    
    char C;
    cin >> C;
    cout << (C[0]+1);
}

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

#include <bits/stdc++.h>

using namespace std;

int main()
{
char C;
char Z='z';
cin>>C;
if(C!=Z){
    cout<<char(C+1);
}


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

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


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


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

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

int main() {
  int h,w;
  cin>>h>>w;
  vector<vector<char>>s(h,vector<char>(w));
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++) cin>>s[i][j];
  }
  int ans=0;
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++){
      vector<vector<int>>distance(h,vector<int>(w));
      vector<vector<bool>>a(h,vector<bool>(w));
      queue<int>q;
      q.push(i);
      q.push(j);
      if(s[i][j]=='#') break;
      else{
        while(!q.empty()){
          int f=q.front();
          q.pop();
          int g=q.front();
          q.pop();
          if((f-1>=0 && ! a[f-1][g]) && s[f-1][g]=='.'){
            int c=distance[f][g]+1;
            ans=max(ans,c);
            distance[f-1][g]=c;
            a[f-1][g]=true;
            q.push(f-1);
            q.push(g);
            
          }
          if((f+1<=h-1 && ! a[f+1][g]) && s[f+1][j]=='.'){
            int c=distance[f][g]+1;
            ans=max(ans,c);
            distance[f+1][g]=c;
            a[f+1][g]=true;
            q.push(f+1);
            q.push(g);
          }
          if((g-1>=0 && ! a[f][g-1]) && s[f][g-1]=='.'){
            int c=distance[f][g]+1;
            ans=max(ans,c);
            distance[f][g-1]=c;
            a[f][g-1]=true;
            q.push(f);
            q.push(g-1);
          }
          if((g+1<=w-1 && ! a[f][g+1]) && s[f][g+1]=='.'){
            int c=distance[f][g]+1;
            ans=max(ans,c);
            distance[f][g+1]=c;
            a[f][g+1]=true;
            q.push(f);
            q.push(g+1);
          }
        }
      }
    }
    cout<<ans<<endl;
}


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

#include <bits/stdc++.h>
#include <sstream>
#include <iomanip>
#define ll long long
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define min_3(a,b,c) min(a,min(b,c))
#define max_3(a,b,c) max(a,max(b,c))
#define nout(ans) cout << (ans) << "\n"
#define sout(ans) cout << (ans) << " "
using namespace std;

const double pi = 3.14159265359;
const ll INF = 1e12;
const ll MOD = 1e9 + 7;
const ll N = 1e5 + 5;
/*
Decimal Places: cout << fixed << setprecision(n) << ans << endl

String to integer:
stringstream dark(s);
int x = 0; dark >> x;
*/

bool compare(const pair<int, int>&i, const pair<int, int>&j)
{
    return i.second < j.second;
}


char c;

void solve()
{
    cin >> c;
    char a[25] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
    for (int i=0; i<26; i++) {
        if (c==a[i]) {
            nout(a[i+1]); break;
        }
    }
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    int t = 1;
    //cin >> t;
    for (int i=1; i<=t; i++)
    {
        solve();
    }
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:37:122: error: too many initializers for 'char [25]'
   37 |     char a[25] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
      |                                                                                                                          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  char a=[2];
  cin >> a;
  cout << a[0] + 1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: expected identifier before numeric constant
    4 |   char a=[2];
      |           ^
a.cc: In lambda function:
a.cc:4:13: error: expected '{' before ';' token
    4 |   char a=[2];
      |             ^
a.cc: In function 'int main()':
a.cc:4:10: error: invalid user-defined conversion from 'main()::<lambda()>' to 'char' [-fpermissive]
    4 |   char a=[2];
      |          ^~~
a.cc:4:10: note: candidate is: 'constexpr main()::<lambda()>::operator void (*)()() const' (near match)
    4 |   char a=[2];
      |          ^
a.cc:4:10: note:   no known conversion from 'void (*)()' to 'char'
a.cc:6:12: error: invalid types 'char[int]' for array subscript
    6 |   cout << a[0] + 1 << endl;
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  char a=[2];
  cin >> a;
  cout << a + 1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: expected identifier before numeric constant
    4 |   char a=[2];
      |           ^
a.cc: In lambda function:
a.cc:4:13: error: expected '{' before ';' token
    4 |   char a=[2];
      |             ^
a.cc: In function 'int main()':
a.cc:4:10: error: invalid user-defined conversion from 'main()::<lambda()>' to 'char' [-fpermissive]
    4 |   char a=[2];
      |          ^~~
a.cc:4:10: note: candidate is: 'constexpr main()::<lambda()>::operator void (*)()() const' (near match)
    4 |   char a=[2];
      |          ^
a.cc:4:10: note:   no known conversion from 'void (*)()' to 'char'
Language: C++

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

int main () {
  char C;
  cin >> C;

  vector<string> alphabet = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
  for (char x : alphabet) {
    if (C == x) {
      cout << alphabet.at(x+1) << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:153: error: could not convert '{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}' from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >'
    8 |   vector<string> alphabet = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
      |                                                                                                                                                         ^
      |                                                                                                                                                         |
      |                                                                                                                                                         <brace-enclosed initializer list>
a.cc:9:17: error: cannot convert 'std::__cxx11::basic_string<char>' to 'char' in initialization
    9 |   for (char x : alphabet) {
      |                 ^~~~~~~~
Language: C++

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

int main () {
  char C;
  cin >> C;

  vector<string> alphabet = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
  for (int x : alphabet) {
    if (C == x) {
      cout << alphabet.at(x+1) << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:153: error: could not convert '{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}' from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >'
    8 |   vector<string> alphabet = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
      |                                                                                                                                                         ^
      |                                                                                                                                                         |
      |                                                                                                                                                         <brace-enclosed initializer list>
a.cc:9:16: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in initialization
    9 |   for (int x : alphabet) {
      |                ^~~~~~~~
Language: C++

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

int main(){
  
  string a,b;
  cin >> a;
  
  b > a
 
  cout << b << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before 'cout'
    9 |   b > a
      |        ^
      |        ;
   10 | 
   11 |   cout << b << endl;
      |   ~~~~  
a.cc:9:5: warning: ignoring return value of 'bool std::operator>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
    9 |   b > a
      |   ~~^~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3915:5: note: declared here
 3915 |     operator>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C

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

int main() {

    char s;
    scanf("%c", &s);

    printf("%c", char(s) + 1);

    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected expression before 'char'
   10 |     printf("%c", char(s) + 1);
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char C;
  cin >> C;
 
  vector<char> alpha(26)={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
  
  for(i=0; i<26; i++){
  if(alpha[i]==C){
    cout << alpha[i+1] << endl;
    break;
  }
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ',' or ';' before '=' token
    8 |   vector<char> alpha(26)={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z};
      |                         ^
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   for(i=0; i<26; i++){
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int solve(){
    int n,k,m,a,s=0;
    cin>>n>>k>>m;
    rep(i,0,n-1) {cin>>a;s=s+a;}
    int ans=m*n-s;
    if(ans>k) return cout<<-1,0;
    cout<<max(ans,0ll);
 
    return 0;
}

Compiler output:
a.cc: In function 'int solve()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     rep(i,0,n-1) {cin>>a;s=s+a;}
      |         ^
a.cc:6:5: error: 'rep' was not declared in this scope
    6 |     rep(i,0,n-1) {cin>>a;s=s+a;}
      |     ^~~
a.cc:9:14: error: no matching function for call to 'max(int&, long long int)'
    9 |     cout<<max(ans,0ll);
      |           ~~~^~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:9:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
    9 |     cout<<max(ans,0ll);
      |           ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:9:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    9 |     cout<<max(ans,0ll);
      |           ~~~^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
int  main(){
 char c; cin >> c;
 c += 1; cout << c  << endl;
 return (0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |  char c; 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:4:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |  c += 1; cout << c  << 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:4:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |  c += 1; cout << c  << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  cahr C;
  cin >> C;
  cout << C+1 << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  
  char c;
  cin >> c;
  
  string s;
  s = "abcdefghijklmnopqrstuvwxyz"
    
  int i;
  for(i=0;i<s.size();i++) {
    if(s.at(i)==c){
      i++;
      cout << s.at(i) << endl;
      break;
    }
  }  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:35: error: expected ';' before 'int'
    9 |   s = "abcdefghijklmnopqrstuvwxyz"
      |                                   ^
      |                                   ;
   10 | 
   11 |   int i;
      |   ~~~                              
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=0;i<s.size();i++) {
      |       ^
Language: C++

#include <bits/c++.h>
using namespace std;
int main() {
  
  char c;
  cin >> c;
  
  string s;
  s = "abcdefghijklmnopqrstuvwxyz"
    
  int i;
  for(i=0;i<s.size();i++) {
    if(s.at(i)==c){
      i++;
      cout << s.at(i) << endl;
      break;
    }
  }  
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  string a,c;
  cin >> c;
  a = "abcdefghijklmnopqrstuvwxyz"
  int i;
  for(i=0; i<size(a); i++) {
    if (c==a.at(i)) {
      c = a.at(i+1)
      break;
    }   
  }  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:35: error: expected ';' before 'int'
    6 |   a = "abcdefghijklmnopqrstuvwxyz"
      |                                   ^
      |                                   ;
    7 |   int i;
      |   ~~~                              
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0; i<size(a); i++) {
      |       ^
Language: C++

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

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


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

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

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

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


#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int N, K, M, s=0; cin >> N >> K >> M;
    for (int i = 0; i < N-1; i++) {
        int x;
        cin >> x;
        s += x;
    }
    int a = max(0, N * M - s);

Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: expected '}' at end of input
   12 |     int a = max(0, N * M - s);
      |                               ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: lvalue required as increment operand
    6 |   cout<<'C'++<<endl;
      |         ^~~
Language: C++

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

Compiler output:
a.cc:7:9: warning: multi-character character constant [-Wmultichar]
    7 |   cout<<'in'<<endl;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:6:10: error: expected initializer before '==' token
    6 |   char in==C++;
      |          ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: lvalue required as increment operand
    6 |   cout<<C++<<endl;
      |         ^
Language: C++

using namespace std;
char alpha(char x){
char a[]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','x','y','z'};
   for(int i=0;a[i]==x;i++){}
     x++;
}

int main()
{
    char j;
    cin>>j;
    cout<< alpha(j);
    return 0;

Compiler output:
a.cc: In function 'char alpha(char)':
a.cc:6:1: warning: no return statement in function returning non-void [-Wreturn-type]
    6 | }
      | ^
a.cc: In function 'int main()':
a.cc:11:5: error: 'cin' was not declared in this scope
   11 |     cin>>j;
      |     ^~~
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:12:5: error: 'cout' was not declared in this scope
   12 |     cout<< alpha(j);
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:14: error: expected '}' at end of input
   13 |     return 0;
      |              ^
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
Language: C++

#inclucd <iostream>
using namespace std;

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

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