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

#include <iostream>

using namespace std;
  
int main {
  char a;
  cin>>a;
  if(a=='a' || a=='b' || a=='c' || a=='d' || a=='e' || a=='f' || a=='g' || a=='h' || a=='i' || a=='j' || a=='k' || a=='l' || a=='m' || a=='n' || a=='o' || a=='p' || a=='q' || a=='r' || a=='s' || a=='t' || a=='u' || a=='v' || a=='w' || a=='x' || a=='y' || a=='z') cout<<'a';
  else cout<<'A';
  
  }

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'char'
    6 |   char a;
      |   ^~~~
a.cc:6:3: error: expected '}' before 'char'
a.cc:5:10: note: to match this '{'
    5 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>a;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(a=='a' || a=='b' || a=='c' || a=='d' || a=='e' || a=='f' || a=='g' || a=='h' || a=='i' || a=='j' || a=='k' || a=='l' || a=='m' || a=='n' || a=='o' || a=='p' || a=='q' || a=='r' || a=='s' || a=='t' || a=='u' || a=='v' || a=='w' || a=='x' || a=='y' || a=='z') cout<<'a';
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else cout<<'A';
      |   ^~~~
a.cc:11:3: error: expected declaration before '}' token
   11 |   }
      |   ^
Language: C++

#include<iostream>
include<cctype>
using namespace std;
int main()
{int ch;
 cin>>ch;
 if(isupper(ch))
   cout<<"A";
 else cout<<"a";
 return 0;}


Compiler output:
a.cc:2:1: error: 'include' does not name a type
    2 | include<cctype>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |  cin>>ch;
      |  ^~~
      |  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:8:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |    cout<<"A";
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |  else 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: C

#include <stdio.h>

#include <ctype.h>
int main (){
  char s[2];
  scanf("%s", s);
  if(islower(s)){
    printf("a");
    }else{
      printf("A");
   return 0;
    }
           

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

#include"pch.h"
#include<iostream>

using namespace std;

void trans(int a[], int b, int c, int n) {
	for (int i = 0; i < n; i++) {
		if (a[i] == b) {
			a[i] = c;
		}
	}
}
int main() {
	int n;
	int a[100000], b[100000], c[100000];
	int q;

	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> a[i];
	}
	cin >> q;
	for (int i = 0; i < q; i++) {
		cin >> b[i] >> c[i];
	}

	int sum = 0;

	for (int i = 0; i < q; i++) {
		trans(a, b[i], c[i], n);
		for (int i = 0; i < n; i++) {
			sum = sum + a[i];
		}
		cout << sum << "\n";
		sum = 0;
	}
	
}


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

#include<iostream.h>
using namespace std;
int main(void){
  int a;
  cin >>a;
  if(a= A to Z ){
    cout >>A;
  }
  if(a= a to z ){
    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 <bits/stdc++.h>
using namespace std;

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

    if isupper(s) {
        cout  << 'A' << endl;
    } else {
        cout << 'a' << endl;
    } 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected '(' before 'isupper'
    8 |     if isupper(s) {
      |        ^~~~~~~
      |        (
a.cc:10:7: error: 'else' without a previous 'if'
   10 |     } else {
      |       ^~~~
Language: C

#include <stdio.h>
#define ll lonng long
int main(){
	ll n, q,sum = 0;
	ll b,c;
	scanf("%lld", &n);
	ll a[10000];
	memset(a, 0, sizeof(a));
	for(int i = 0; i<n; i++)
		scanf("%lld", &a[i]);
	
	scanf("%lld", &q);
	while(q--){
		scanf("%lld%lld", &b, &c); 
		for(int j = 0; j<n; j++){
			if(a[j] == b)a[j] = c;
			sum +=a[j]; 
		}
		printf("%lld\n", sum);
		sum = 0;
	
	}
	
	

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:2:12: error: 'lonng' undeclared (first use in this function)
    2 | #define ll lonng long
      |            ^~~~~
main.c:4:9: note: in expansion of macro 'll'
    4 |         ll n, q,sum = 0;
      |         ^~
main.c:2:12: note: each undeclared identifier is reported only once for each function it appears in
    2 | #define ll lonng long
      |            ^~~~~
main.c:4:9: note: in expansion of macro 'll'
    4 |         ll n, q,sum = 0;
      |         ^~
main.c:2:18: error: expected ';' before 'long'
    2 | #define ll lonng long
      |                  ^~~~
main.c:4:9: note: in expansion of macro 'll'
    4 |         ll n, q,sum = 0;
      |         ^~
main.c:2:18: error: expected ';' before 'long'
    2 | #define ll lonng long
      |                  ^~~~
main.c:5:9: note: in expansion of macro 'll'
    5 |         ll b,c;
      |         ^~
main.c:6:24: error: 'n' undeclared (first use in this function)
    6 |         scanf("%lld", &n);
      |                        ^
main.c:2:18: error: expected ';' before 'long'
    2 | #define ll lonng long
      |                  ^~~~
main.c:7:9: note: in expansion of macro 'll'
    7 |         ll a[10000];
      |         ^~
main.c:8:9: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
    8 |         memset(a, 0, sizeof(a));
      |         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'memset'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | #define ll lonng long
main.c:8:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
    8 |         memset(a, 0, sizeof(a));
      |         ^~~~~~
main.c:8:9: note: include '<string.h>' or provide a declaration of 'memset'
main.c:8:16: error: 'a' undeclared (first use in this function)
    8 |         memset(a, 0, sizeof(a));
      |                ^
main.c:12:24: error: 'q' undeclared (first use in this function)
   12 |         scanf("%lld", &q);
      |                        ^
main.c:14:36: error: 'b' undeclared (first use in this function)
   14 |                 scanf("%lld%lld", &b, &c);
      |                                    ^
main.c:14:40: error: 'c' undeclared (first use in this function)
   14 |                 scanf("%lld%lld", &b, &c);
      |                                        ^
main.c:17:25: error: 'sum' undeclared (first use in this function)
   17 |                         sum +=a[j];
      |                         ^~~
Language: C++

#include <iostream>

using namespace std;
  
int main {
  char a;
  cin>>a;
  if(a=='a' && a=='b' && a=='c' && a=='d' && a=='e' && a=='f' && a=='g' && a=='h' && a=='i' && a=='j' && a=='k' && a=='l' && a=='m' && a=='n' && a=='o' && a=='p' && a=='q' && a=='r' && a=='s' &&a=='t' && a=='u' && a=='v' && a=='w' && a=='x' && a=='y' && a=='z') cout<<'a';
  else cout<<'A';
  
  }

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'char'
    6 |   char a;
      |   ^~~~
a.cc:6:3: error: expected '}' before 'char'
a.cc:5:10: note: to match this '{'
    5 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>a;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(a=='a' && a=='b' && a=='c' && a=='d' && a=='e' && a=='f' && a=='g' && a=='h' && a=='i' && a=='j' && a=='k' && a=='l' && a=='m' && a=='n' && a=='o' && a=='p' && a=='q' && a=='r' && a=='s' &&a=='t' && a=='u' && a=='v' && a=='w' && a=='x' && a=='y' && a=='z') cout<<'a';
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else cout<<'A';
      |   ^~~~
a.cc:11:3: error: expected declaration before '}' token
   11 |   }
      |   ^
Language: C

#include <stdio.h>
#define ll lonng long
int main(){
	ll n, q,sum = 0;
	ll b,c;
	scanf("%d", &q);
	ll a[10000];
	memset(a, 0, sizeof(a));
	for(int i = 0; i<n; i++)
		scanf("%d", &a[i]);
	
	scanf("%d", &q);
	while(q--){
		scanf("%d%d", &b, &c); 
		for(int j = 0; j<n; j++){
			if(a[j] == b)a[j] = c;
			sum +=a[j]; 
		}
		printf("%d\n", sum);
		sum = 0;
	
	}
	
	

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:2:12: error: 'lonng' undeclared (first use in this function)
    2 | #define ll lonng long
      |            ^~~~~
main.c:4:9: note: in expansion of macro 'll'
    4 |         ll n, q,sum = 0;
      |         ^~
main.c:2:12: note: each undeclared identifier is reported only once for each function it appears in
    2 | #define ll lonng long
      |            ^~~~~
main.c:4:9: note: in expansion of macro 'll'
    4 |         ll n, q,sum = 0;
      |         ^~
main.c:2:18: error: expected ';' before 'long'
    2 | #define ll lonng long
      |                  ^~~~
main.c:4:9: note: in expansion of macro 'll'
    4 |         ll n, q,sum = 0;
      |         ^~
main.c:2:18: error: expected ';' before 'long'
    2 | #define ll lonng long
      |                  ^~~~
main.c:5:9: note: in expansion of macro 'll'
    5 |         ll b,c;
      |         ^~
main.c:6:22: error: 'q' undeclared (first use in this function)
    6 |         scanf("%d", &q);
      |                      ^
main.c:2:18: error: expected ';' before 'long'
    2 | #define ll lonng long
      |                  ^~~~
main.c:7:9: note: in expansion of macro 'll'
    7 |         ll a[10000];
      |         ^~
main.c:8:9: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
    8 |         memset(a, 0, sizeof(a));
      |         ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'memset'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | #define ll lonng long
main.c:8:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
    8 |         memset(a, 0, sizeof(a));
      |         ^~~~~~
main.c:8:9: note: include '<string.h>' or provide a declaration of 'memset'
main.c:8:16: error: 'a' undeclared (first use in this function)
    8 |         memset(a, 0, sizeof(a));
      |                ^
main.c:9:26: error: 'n' undeclared (first use in this function)
    9 |         for(int i = 0; i<n; i++)
      |                          ^
main.c:14:32: error: 'b' undeclared (first use in this function)
   14 |                 scanf("%d%d", &b, &c);
      |                                ^
main.c:14:36: error: 'c' undeclared (first use in this function)
   14 |                 scanf("%d%d", &b, &c);
      |                                    ^
main.c:17:25: error: 'sum' undeclared (first use in this function)
   17 |                         sum +=a[j];
      |                         ^~~
Language: C++

#include <bits/stdc++.h>
#define MOD 1000000007
#define md %998244353
#define INF 2e9
#define EPS 1e-9
#define MAX LLONG_MAX
#define MIN LLONG_MIN
#define F first
#define S second
#define MP make_pair
#define PB push_back
#define EB emplace_back
#define endl "\n"
#define FOR(i,a,b) for (long long i = a; i < b; i++)
#define REV(i,a,b) for (long long i = a; i > b; i--)
#define mset(a, v) memset(a, v, sizeof(a))
#define fd(n) fixed<<setprecision(n)
typedef std::pair<int, int> pii;
typedef std::vector<long long> vi;
typedef std::vector<vi> vvi;
typedef long long ll;
typedef unsigned long long ull;
using namespace std;

ll solve(ll x,ull y,ll p) {
    ll res = 1;
    x = x % p;
    while (y > 0) {
        if (y & 1)
            res = (res*x) % p;
        y = y>>1;
        x = (x*x) % p;
    }
    return res;
}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(NULL);
  char c;
  cin>>c;
  
  if('z'=>c>='a')
    cout<<"a";
  else
     cout<<"A";
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:10: error: expected primary-expression before '>' token
   43 |   if('z'=>c>='a')
      |          ^
Language: C

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

int main()
{
	int s;
	cin>>s;
	if(s<='z'&&s>='a')
	{
		cout << 'a';
	}
	if(s>='A'&&s<='Z')
	{
		cout << 'A';
	}
	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 <iostream>
using namespace std;

int main(void){
  int a;
  cin >> a;
  if(a= A to Z ){
    cout << A;
  }
  if(a= a to z ){
    cout << a;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'A' was not declared in this scope
    7 |   if(a= A to Z ){
      |         ^
a.cc:7:10: error: expected ')' before 'to'
    7 |   if(a= A to Z ){
      |     ~    ^~~
      |          )
a.cc:10:10: error: expected ')' before 'to'
   10 |   if(a= a to z ){
      |     ~    ^~~
      |          )
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  char N;
  cin >> N;
  vector<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'};
  if (!binary_search(a.begin(), a.end(),N)){
    cout << 'a' <<endl;
    }
  else{
    cout << 'A' <<endl;
  }


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  char ch;
  cin >> ch;
  if(isupper(ch))
    cout << "A\n";
  else
    cout << "a\n";

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected '}' at end of input
    9 |     cout << "a\n";
      |                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

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

int main()
{
	int s;
	cin>>s;
	if(s>='a'&&s<='z')
	{
		cout<<'a';
	}
	else
	{
		cout<<'A';
	}
	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 <iostream>

using namespace std;
  
int main {
  char a;
  cin>>a;
  if(a==a && a==b && a==c && a==d && a==e && a==f && a==g && a==h && a==i && a==j && a==k && a==l && a==m && a==n && a==o && a==p && a==q && a==r && a==s &&a==t && a==u && a==v && a==w && a==x && a==y && a==z) cout<<'a';
  else cout<<'A';
  
  }

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'char'
    6 |   char a;
      |   ^~~~
a.cc:6:3: error: expected '}' before 'char'
a.cc:5:10: note: to match this '{'
    5 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>a;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(a==a && a==b && a==c && a==d && a==e && a==f && a==g && a==h && a==i && a==j && a==k && a==l && a==m && a==n && a==o && a==p && a==q && a==r && a==s &&a==t && a==u && a==v && a==w && a==x && a==y && a==z) cout<<'a';
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else cout<<'A';
      |   ^~~~
a.cc:11:3: error: expected declaration before '}' token
   11 |   }
      |   ^
Language: C++

#include <iostream>

using namespace std;
  
int main {
  char'a';
  cin>>a;
  if(a==a && a==b && a==c && a==d && a==e && a==f && a==g && a==h && a==i && a==j && a==k && a==l && a==m && a==n && a==o && a==p && a==q && a==r && a==s &&a==t && a==u && a==v && a==w && a==x && a==y && a==z) cout<<'a';
  else cout<<'A';
  
  }

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main {
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'char'
    6 |   char'a';
      |   ^~~~
a.cc:6:3: error: expected '}' before 'char'
a.cc:5:10: note: to match this '{'
    5 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>a;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(a==a && a==b && a==c && a==d && a==e && a==f && a==g && a==h && a==i && a==j && a==k && a==l && a==m && a==n && a==o && a==p && a==q && a==r && a==s &&a==t && a==u && a==v && a==w && a==x && a==y && a==z) cout<<'a';
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else cout<<'A';
      |   ^~~~
a.cc:11:3: error: expected declaration before '}' token
   11 |   }
      |   ^
Language: C++

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


int main() {
  long long N;
  cin >> N;
  
  long long x=N;
  int y;
  vector<int> vec;
  
  for (int i = 0; i < 100; i++){
    x = x/26;
    y = N%26;
    
    vec.at(i) =y;
    
    if(x==0){
      break;
    }
  }
  
  reverse(vec.begin(), vec.end());
  string S;
  
  for(int i = 0; i<100; i++){
    if(vec.at(i) ==1){
      char a ='a';
    }
    else if(vec.at(i) ==2){
      char a ='b';
    }
    else if(vec.at(i) ==3){
      char a ='c';
    }
    else if(vec.at(i) ==4){
      char a ='d';
    }
    else if(vec.at(i) ==5){
      char a ='e';
    }
    else if(vec.at(i) ==6){
      char a ='f';
    }
    else if(vec.at(i) ==7){
      char a ='g';
    }
    else if(vec.at(i) ==8){
      char a ='h';
    }
    else if(vec.at(i) ==9){
      char a ='i';
    }
    else if(vec.at(i) ==10){
      char a ='j';
    }
    else if(vec.at(i) ==11){
      char a ='k';
    }
    else if(vec.at(i) ==12){
      char a ='l';
    }
    else if(vec.at(i) ==13){
      char a ='m';
    }
    else if(vec.at(i) ==14){
      char a ='n';
    }
    else if(vec.at(i) ==15){
      char a ='o';
    }
    else if(vec.at(i) ==16){
      char a ='p';
    }
    else if(vec.at(i) ==17){
      char a ='q';
    }
    else if(vec.at(i) ==18){
      char a ='r';
    }
    else if(vec.at(i) ==19){
      char a ='s';
    }
    else if(vec.at(i) ==20){
      char a ='t';
    }
    else if(vec.at(i) ==21){
      char a ='u';
    }
    else if(vec.at(i) ==22){
      char a ='v';
    }
    else if(vec.at(i) ==23){
      char a ='w';
    }
    else if(vec.at(i) ==24){
      char a ='x';
    }
    else if(vec.at(i) ==25){
      char a ='y';
    }
    else if(vec.at(i) ==26){
      char a ='z';
    }
    else{
      break;
    }
    
  cout << a;
  }
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  
  cin >> x;
  
  if (isupper(x))
   {
       cout << "A" << endl;
   }
   else
   {
       cout << "a" << endl;
   }
}

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

#include <iostream>

using namespace std;
  
int main {
  char(a);
  cin>>a;
  if(a==a && a==b && a==c && a==d && a==e && a==f && a==g && a==h && a==i && a==j && a==k && a==l && a==m && a==n && a==o && a==p && a==q && a==r && a==s &&a==t && a==u && a==v && a==w && a==x && a==y && a==z) cout<<'a';
  else cout<<'A';
  
  }

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main {
      |     ^~~~
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   char(a);
      |        ^
a.cc:6:10: error: expected '}' before ';' token
    6 |   char(a);
      |          ^
a.cc:5:10: note: to match this '{'
    5 | int main {
      |          ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>a;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(a==a && a==b && a==c && a==d && a==e && a==f && a==g && a==h && a==i && a==j && a==k && a==l && a==m && a==n && a==o && a==p && a==q && a==r && a==s &&a==t && a==u && a==v && a==w && a==x && a==y && a==z) cout<<'a';
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else cout<<'A';
      |   ^~~~
a.cc:11:3: error: expected declaration before '}' token
   11 |   }
      |   ^
Language: C++

#include <iostream>

using namespace std ()
  
int main {
  char(a);
  cin>>a;
  if(a==a && a==b && a==c && a==d && a==e && a==f && a==g && a==h && a==i && a==j && a==k && a==l && a==m && a==n && a==o && a==p && a==q && a==r && a==s &&a==t && a==u && a==v && a==w && a==x && a==y && a==z) cout<<'a';
  else cout<<'A';
  
  }

Compiler output:
a.cc:3:20: error: expected ';' before '(' token
    3 | using namespace std ()
      |                    ^~
      |                    ;
a.cc:3:22: error: expected unqualified-id before ')' token
    3 | using namespace std ()
      |                      ^
Language: C++

#include <iostream>
using namespace std;

into main(void){
  int a;
  cin >>a;
  if(a= A to Z ){
    cout >>A;
  }
  if(a= a to z ){
    cout >>a;
  }
  return 0;
}

Compiler output:
a.cc:4:1: error: 'into' does not name a type; did you mean 'int'?
    4 | into main(void){
      | ^~~~
      | int
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
char s[2];
cin>>s;
for(int i=0;i<2;i++){
if(s[i]>='A'&&s[i]<='Z'){
    cout<<"A"<<endl;
    return 0;
}
 else
      {cout<<"a"<<endl;
return 0;
     }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: expected '}' at end of input
   15 |      }
      |       ^
a.cc:7:21: note: to match this '{'
    7 | for(int i=0;i<2;i++){
      |                     ^
a.cc:15:7: error: expected '}' at end of input
   15 |      }
      |       ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include<stdio.h>

int main(){
  int c;
  scanf("%c",&c);
  if(c=>'a'&&c=<'z') printf("a");
  if(c=>'A'&&c=<'Z') printf("A");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected expression before '>' token
    6 |   if(c=>'a'&&c=<'z') printf("a");
      |        ^
main.c:7:8: error: expected expression before '>' token
    7 |   if(c=>'A'&&c=<'Z') printf("A");
      |        ^
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
using str = string; 
using ll = long long; 
#define REP(i,n) for(int i=0; i<int(n); i++) 
#define RREP(i,n) for(int i=int(n)-1; i>=0; i--) 
#define FOR(i,f,t) for(int i=int(f); i<=int(t); i++) 
#define RFOR(i,f,t) for(int i=int(f); i>=int(t); i--) 
#define ALL(vec) (vec).begin(),(vec).end() 
#define ASORT(vec) sort(ALL(vec)) 
#define DSORT(vec) sort(ALL(vec), greater<int>()); 
#define MAX(x) *max_element(ALL(x)) 
#define MIN(x) *min_element(ALL(x)) 
#define YES(ans) if(ans) cout<<"YES"<<endl; else cout<<"NO"<<endl; 
#define Yes(ans) if(ans) cout<<"Yes"<<endl; else cout<<"No"<<endl; 
#define yes(ans) if(ans) cout<<"yes"<<endl; else cout<<"no"<<endl; 

ll gcd(ll a, ll b) { 
	if (a%b == 0) return(b); 
	else return(gcd(b, a%b)); 
} 

ll lcm(ll a, ll b) { 
	return a * b / gcd(a, b); 
} 

int main() {
ll n; 
cin >> n; 
int a; 
char c; 
bool s, t; 
REP(i, 13) { 
a = (n%ll(pow(26, 13-i)))/ll(pow(26, 13-i-1)); 
if(s) If(a != 0) s = false; 
if(s != true){ 
c = 'a' + a - 1; 
cout << c; 
}  
}
cout << endl; 
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:35:7: error: 'If' was not declared in this scope
   35 | if(s) If(a != 0) s = false;
      |       ^~
Language: C++

#include<iostream>
#inclued<bits/stdc++.h>
using namespace std;
int main(){
  char c;
  cin>>c;
  if (c>='a' && c<='z') 
              c = c - 32; 
        else if(c>='A' && c<='Z') 
        c =c + 32;
 cout<<c;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inclued; did you mean #include?
    2 | #inclued<bits/stdc++.h>
      |  ^~~~~~~
      |  include
Language: C

#include<stdio.h>

int main(void)
{
  char strα[1];
    scanf("%s",strα);
  if(α == "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")
    printf("a");
  if(α == "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")
    printf("A");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: '\U000003b1' undeclared (first use in this function)
    7 |   if(α == "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:7:6: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	switch(s){
          case "A":
          case "B":
          case "C":
          case "D":
          case "E":
          case "F":
          case "G":
          case "H":
          case "I":
          case "J":
          case "K":
          case "L":
          case "M":
          case "N":
          case "O":
          case "P":
          case "Q":
          case "R":
          case "S":
          case "T":
          case "U":
          case "V":
          case "W":
          case "X":
          case "Y":
          case "Z":
            System.out.println("A");
            break;
          switch (s){
          case "a":
          case "b":
          case "c":
          case "d":
          case "e":
          case "f":
          case "g":
          case "h":
          case "i":
          case "j":
          case "k":
          case "l":
          case "m":
          case "n":
          case "o":
          case "p":
          case "q":
          case "r":
          case "s":
          case "t":
          case "u":
          case "v":
          case "w":
          case "x":
          case "y":
          case "z":
            System.out.println("a");
          }
            
              
        }
    }
}

Compiler output:
Main.java:35: error: unreachable statement
          switch (s){
          ^
1 error
Language: C

#include<stdio.h>

int main(void)
{
  char α[1]
    scanf("%s",&α);
  if(α == "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")
    printf("a");
  if(α == "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")
    printf("A");
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |     scanf("%s",&α);
      |     ^~~~~
main.c:6:17: error: '\U000003b1' undeclared (first use in this function)
    6 |     scanf("%s",&α);
      |                 ^
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a;
	char b;
	cin>>b;
	a=b;
	if(a>=65&&<=90)
		cout<<"A";
	else
		cout<<"a";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected primary-expression before '<=' token
    9 |         if(a>=65&&<=90)
      |                   ^~
Language: C

#include<stdio.h>

int main(void)
{
  char α[1]
    scanf("%s",α);
  if(α == "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")
    printf("a");
  if(α == "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")
    printf("A");
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |     scanf("%s",α);
      |     ^~~~~
main.c:6:16: error: '\U000003b1' undeclared (first use in this function)
    6 |     scanf("%s",α);
      |                ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)
{
  char α[1]
    scanf('%s',α);
  if(α == "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")
    printf("a");
  if(α == "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")
    printf("A");
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |     scanf('%s',α);
      |     ^~~~~
main.c:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     scanf('%s',α);
      |           ^~~~
main.c:6:16: error: '\U000003b1' undeclared (first use in this function)
    6 |     scanf('%s',α);
      |                ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:11: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 |     scanf('%s',α);
      |           ^~~~
      |           |
      |           int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using sistem std;
int main()
{
  char S;
  int x =0;
  cin>>S;
  if(S=='A')
  {
    x=x+1;
  }else if(S=='B')
  {
    x=x+1;
  }else if(S=='C')
  {
    x=x+1;
  }else if(S=='D')
  {
    x=x+1;
  }else if(S=='E')
  {
    x=x+1;
  }else if(S=='F')
  {
    x=x+1;
  }else if(S=='G')
  {
    x=x+1;
  }else if(S=='H')
  {
    x=x+1;
  }else if(S=='I')
  {
    x=x+1;
  }else if(S=='J')
  {
    x=x+1;
  }else if(S=='K')
  {
    x=x+1;
  }else if(S=='L')
  {
    x=x+1;
  }else if(S=='M')
  {
    x=x+1;
  }else if(S=='N')
  {
    x=x+1;
  }else if(S=='O')
  {
    x=x+1;
  }else if(S=='P')
  {
    x=x+1;
  }else if(S=='Q')
  {
    x=x+1;
  }else if(S=='R')
  {
    x=x+1;
  }else if(S=='S')
  {
    x=x+1;
  }else if(S=='T')
  {
    x=x+1;
  }else if(S=='U')
  {
    x=x+1;
  }else if(S=='V')
  {
    x=x+1;
  }else if(S=='W')
  {
    x=x+1;
  }else if(S=='X')
  {
    x=x+1;
  }else if(S=='Y')
  {
    x=x+1;
  }else if(S=='Z')
  {
    x=x+1;
  }
  if(x==0)
  {
    cout<<'a'<<endl;
  }else
  {
    cout<<'A'<<endl;
  }
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'sistem'
    2 | using sistem std;
      |       ^~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>S;
      |   ^~~
      |   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:89:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   89 |     cout<<'a'<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:89:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   89 |     cout<<'a'<<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)
      |     ^~~~
a.cc:92:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   92 |     cout<<'A'<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:92:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   92 |     cout<<'A'<<endl;
      |                ^~~~
      |                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
int main(){
	char a;
	cin >> a;
	if(a>='a' && a<='z'){
  		cout << "a" << endl;
    }
  	if(a>='A' && a<='Z'){
      	cout << "A" << endl;
    }
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin >> a;
      |         ^~~
      |         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:6:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |                 cout << "a" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |                 cout << "a" << 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)
      |     ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << "A" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout << "A" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	switch(s){
          case "A":
          case "B":
          case "C":
          case "D":
          case "E":
          case "F":
          case "G":
          case "H":
          case "I":
          case "J":
          case "K":
          case "L":
          case "M":
          case "N":
          case "O":
          case "P":
          case "Q":
          case "R":
          case "S":
          case "T":
          case "U":
          case "V":
          case "W":
          case "X":
          case "Y":
          case "Z":
            System.out.println("A");
          case "a":
          case "b":
          case "c":
          case "d":
          case "e":
          case "f":
          case "g":
          case "h":
          case "i":
          case "j":
          case "k":
          case "l":
          case "m":
          case "n":
          case "o":
          case "p":
          case "q":
          case "r":
          case "s":
          case "t":
          case "u":
          case "v":
          case "w":
          case "x":
          case "y":
          case "z":
            System.out.println("a");
              
            
              
        }
    }

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

#include<iostream>
using namespace std;
 
int main(){
char a;
  cin >> a;
   if(isupper(s)){
     cout << "A" <<endl;
   }
  else{
    cout << "B" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 's' was not declared in this scope
    7 |    if(isupper(s)){
      |               ^
Language: C++

#include<iostream>
using namespace std;
 
int main(){
char a;
  cin >> a;
   if(isupper(a)){
     cout << "A" <<endl;
   }
  else if{
    cout << "B" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected '(' before '{' token
   10 |   else if{
      |          ^
      |          (
Language: C

#inclulde<stdio.h>
void main()
{
  int k,n,total=0,i,j,a;
  int price[1000];
  scanf("%d",&k);
  scanf("%d",&n);
  for(i=0;i<n;i++)
  {
    for(j=i+1;j<n;j++)
    {
      if(price[i]>price[j])
      {
        a=price[i];
        price[i]=price[j];
        price[j]=a;
      }
    }
  }
  for(i=0;i<k;i++)
  {
    total=total+price[i];
  }
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclulde; did you mean #include?
    1 | #inclulde<stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d",&k);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclulde<stdio.h>
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d",&k);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
Language: C++

#include<iostream>
using namespace std;
 
int main(){
char a;
  cin >> a;
   if(isupper(s)){
     cout << "A" <<endl;
   }
  else if{
    cout << "B" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 's' was not declared in this scope
    7 |    if(isupper(s)){
      |               ^
a.cc:10:10: error: expected '(' before '{' token
   10 |   else if{
      |          ^
      |          (
Language: C++

#include<iostream>
using naemspace std;

int main(){
char a;
  cin >> a;
   if(isupper(s)){
     cout << "A" <<endl;
   }
  else if{
    cout << "B" <<endl;
  }
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'naemspace'
    2 | using naemspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:15: error: 's' was not declared in this scope
    7 |    if(isupper(s)){
      |               ^
a.cc:8:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |      cout << "A" <<endl;
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |      cout << "A" <<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:10: error: expected '(' before '{' token
   10 |   else if{
      |          ^
      |          (
Language: Java

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


public class Alp{
	public static void main(String args[]){
    	Scanner in = new Scanner(System.in);
      	char c = in.next().charAt(0);
		
		if((int)c > 64 && (int)c <91)
			System.out.println("A");
		else
			System.out.println("a");
		
    }
 
}

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

import java.util.Scanner;
class Main{
	public static void main(String[] args){
    	Scanner sc = new (System.in);
      	String s = sc.next();
      	switch(num){
          case A:
          case B:
          case C:
          case D:
          case E:
          case F:
          case G:
          case H:
          case I:
          case J:
          case K:
          case L:
          case M:
          case N:
          case O:
          case P:
          case Q:
          case R:
          case S:
          case T:
          case U:
          case V:
          case W:
          case X:
          case Y:
          case Z:
            System.out.println("A");
          case a:
          case b:
          case c:
          case d:
          case e:
          case f:
          case g:
          case h:
          case i:
          case j:
          case k:
          case l:
          case m:
          case n:
          case o:
          case p:
          case q:
          case r:
          case s:
          case t:
          case u:
          case v:
          case w:
          case x:
          case y:
          case z:
            System.out.println("a");
              
            
              
        }
    }
}

Compiler output:
Main.java:4: error: <identifier> expected
    	Scanner sc = new (System.in);
    	                ^
1 error
Language: Java

public class Main {
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

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

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

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

        int nextInt() {
            return Integer.parseInt(next());
        }
        long nextLong() { return Long.parseLong(next());  }
    }

    public static void main(String[] args) {
        FastReader sn = new FastReader();
        char []c = sn.next().toCharArray();
        if(c[0] >= 'A' && c[0] <= 'Z'){
            System.out.println("A");
        }else
            System.out.println("a");
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        BufferedReader br;
        ^
  symbol:   class BufferedReader
  location: class FastReader
Main.java:4: error: cannot find symbol
        StringTokenizer st;
        ^
  symbol:   class StringTokenizer
  location: class FastReader
Main.java:7: error: cannot find symbol
            br = new BufferedReader(new InputStreamReader(System.in));
                     ^
  symbol:   class BufferedReader
  location: class FastReader
Main.java:7: error: cannot find symbol
            br = new BufferedReader(new InputStreamReader(System.in));
                                        ^
  symbol:   class InputStreamReader
  location: class FastReader
Main.java:13: error: cannot find symbol
                    st = new StringTokenizer(br.readLine());
                             ^
  symbol:   class StringTokenizer
  location: class FastReader
5 errors
Language: C

#include<stdio.h>
 
int main(void){
 
  int i;
  char c;
  scanf("%c", &moji);
 
  if((moji>= 'a') && (moji<='z')){
    printf("a\n");
  }
  else{
    printf("A\n");
  }
 
  return 0;
}


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

import java.util.Scanner;

class Alphabet{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String str = scan.next();
    if(isLower(str)){
      System.out.print("a");
    }else{
      System.out.print("A");
    }
  }
  static boolean isLower(String str){
    return str.equals(str.toLowerCase);
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
    return str.equals(str.toLowerCase);
                         ^
  symbol:   variable toLowerCase
  location: variable str of type String
1 error
Language: Java

import java.util.Scanner;
import java.lang.Object;

public class Main{

public static void main(String[] args){
Scanner scan = new Scanner();
String s = scanner.nextLine();
  
if(Character.isUpperCase(s))
{
    System.out.println( "A" );
}
  else
{
    System.out.println( "a" );
}
  
}
  
}


Compiler output:
Main.java:7: error: no suitable constructor found for Scanner(no arguments)
Scanner scan = new Scanner();
               ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
Main.java:8: error: cannot find symbol
String s = scanner.nextLine();
           ^
  symbol:   variable scanner
  location: class Main
Main.java:10: error: no suitable method found for isUpperCase(String)
if(Character.isUpperCase(s))
            ^
    method Character.isUpperCase(char) is not applicable
      (argument mismatch; String cannot be converted to char)
    method Character.isUpperCase(int) is not applicable
      (argument mismatch; String cannot be converted to int)
3 errors
Language: C

#include<stdio.h>
int main(){
char c;
  scanf_s("%c",&c);
  if(c>='A'&&c<='Z'){
  printf("A");
  }else{
    printf("B");
  }
  
  return 0;
}

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