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

#include<stdio.h> 
int main() 
  { 
    char a;
    scanf("%c",a);
     if(65<=a<=90)
       printf("A");
     else(97<=a<=122)
       printf("a");
  return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before 'printf'
    8 |      else(97<=a<=122)
      |                      ^
      |                      ;
    9 |        printf("a");
      |        ~~~~~~
Language: C

#include<stdio.h> 
int main() 
  { 
    string a;
    scanf("%s",a);
     if(65<=a<=91)
       printf("A");
     else 
       printf("a");
  return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name 'string'; did you mean 'stdin'?
    4 |     string a;
      |     ^~~~~~
      |     stdin
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before '}' token
    9 |         printf("A\n")
      |                      ^
      |                      ;
   10 |     }
      |     ~                 
a.cc:12:22: error: expected ';' before '}' token
   12 |         printf("a\n")
      |                      ^
      |                      ;
   13 |     }
      |     ~
Language: Java

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

public class Solution{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] arr = new int[n];
		int sum = 0;
		for(int i=0;i<n;i++)
		{
			arr[i] = sc.nextInt();
			sum = sum + arr[i];
		}
		int q = sc.nextInt();
		int[] b = new int[q];
		int[] c = new int[q];
		for(int i=0;i<q;i++)
		{
			b[i] = sc.nextInt();
			c[i] = sc.nextInt();
			for(int j=0;j<n;j++)
			{
				if(arr[j] == b[i])
				{
					arr[j] = c[i];
					sum = sum+c[i]-b[i];
				}
			}
			System.out.println(sum);
		}
	}
}

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

#include <stdio.h>

int main()
{
    char ch;

    
    printf("Enter any character: ");
    scanf("%c", &ch);


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

    return 0;
}
}

Compiler output:
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: 'c' was not declared in this scope
    5 |         scanf("%c", &c);
      |                      ^
Language: C++

#include <stdio.h>

int main()
{
    char ch;



    scanf("%c", &ch);


    if(ch >= 'A' && ch <= 'Z')
    {
        printf("A");
    }
    else if(ch >= 'a' && ch <= 'z')
    {
        printf("a");
    }


    return 0;


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

#include <stdio.h>

// lowercase
void lowercase(){
for (int i=97; i <=112; i++) 
	printf("%d", i);
puts("");
	
}
// uppercase
void uppercase(){

for (int i=65; i<=90; i++) {
	printf("%d", i);
	puts("");
	
}
int main() {

	printf("uppercase \n");
	uppercase();
	
	printf("lowercase \n");	
	lowercase();
	return 0;
}

Compiler output:
a.cc: In function 'void uppercase()':
a.cc:18:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   18 | int main() {
      |         ^~
a.cc:18:9: note: remove parentheses to default-initialize a variable
   18 | int main() {
      |         ^~
      |         --
a.cc:18:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:18:12: error: a function-definition is not allowed here before '{' token
   18 | int main() {
      |            ^
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:11:17: note: to match this '{'
   11 | void uppercase(){
      |                 ^
Language: C++

#include <stdio.h>
int main(){
int alpha;
	scanf("%s",&alpha);

	if(alpha>64 && alpha<91){
		printf("%c is uppercase, so we should print A",alpha,);
	}
	else if(alpha>=97&&alpha<=122){
		printf("%c is uppercase, so we should print a",alpha);
	}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:70: error: expected primary-expression before ')' token
    7 |                 printf("%c is uppercase, so we should print A",alpha,);
      |                                                                      ^
Language: C++

#include <stdio.h>
int main(){
int alpha;
	scanf("%s",&alpha);

	if(b>64 && b<91){
		printf("%c is uppercase, so we should print A",alpha,);
	}
	else if(b>=97&&b<=122){
		printf("%c is uppercase, so we should print a",alpha);
	}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'b' was not declared in this scope
    6 |         if(b>64 && b<91){
      |            ^
a.cc:7:70: error: expected primary-expression before ')' token
    7 |                 printf("%c is uppercase, so we should print A",alpha,);
      |                                                                      ^
Language: C++

#include <stdio.h>

int main() {
	char alpha;
	scan("%c", &alpha);
	if('a' >= alpha <= 'z') {
		print("a");
	}
	else if ('A' >= alpha <= 'Z') {
		print("A");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scan' was not declared in this scope; did you mean 'scanf'?
    5 |         scan("%c", &alpha);
      |         ^~~~
      |         scanf
a.cc:7:17: error: 'print' was not declared in this scope; did you mean 'printf'?
    7 |                 print("a");
      |                 ^~~~~
      |                 printf
a.cc:10:17: error: 'print' was not declared in this scope; did you mean 'printf'?
   10 |                 print("A");
      |                 ^~~~~
      |                 printf
Language: C++

#include <stdio.h>

int main() {
	char alpha;
	scan("%c", &alpha);
	if(a >= alpha <= z) {
		print("a");
	}
	else if (A >= alpha <= Z) {
		print("A");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scan' was not declared in this scope; did you mean 'scanf'?
    5 |         scan("%c", &alpha);
      |         ^~~~
      |         scanf
a.cc:6:12: error: 'a' was not declared in this scope
    6 |         if(a >= alpha <= z) {
      |            ^
a.cc:6:26: error: 'z' was not declared in this scope
    6 |         if(a >= alpha <= z) {
      |                          ^
a.cc:7:17: error: 'print' was not declared in this scope; did you mean 'printf'?
    7 |                 print("a");
      |                 ^~~~~
      |                 printf
a.cc:9:18: error: 'A' was not declared in this scope
    9 |         else if (A >= alpha <= Z) {
      |                  ^
a.cc:9:32: error: 'Z' was not declared in this scope
    9 |         else if (A >= alpha <= Z) {
      |                                ^
a.cc:10:17: error: 'print' was not declared in this scope; did you mean 'printf'?
   10 |                 print("A");
      |                 ^~~~~
      |                 printf
Language: C++

#include <stdio.h>

int main(){
int a,b;
scanf("%c",&a);
//printf("%d",a);
//printf("\n%c",a);
if(a>=65 && a<=90){
	b=a-1;
	printf("%c",b);
	puts("");
	printf("%c is uppercase, so we should print %c.",b,a);
}
else if(a>=97 && a<=122){
	printf("%c",a;);
	puts("");
	printf("%c is lowercase, so we should print %c.",a,a);
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: expected ')' before ';' token
   15 |         printf("%c",a;);
      |               ~      ^
      |                      )
a.cc:15:23: error: expected primary-expression before ')' token
   15 |         printf("%c",a;);
      |                       ^
Language: C++

#include <stdio.h>

int main(){
int a,b;
scanf("%c",&a);
//printf("%d",a);
//printf("\n%c",a);
if(a>=65 && a<=90){
	b=a-1;
	printf("%c",b)
	puts("");
	printf("%c is uppercase, so we should print %c.",b,a);
}
else if(a>=97 && a<=122){
	printf("%c",a;)
	puts("");
	printf("%c is lowercase, so we should print %c.",a,a);
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before 'puts'
   10 |         printf("%c",b)
      |                       ^
      |                       ;
   11 |         puts("");
      |         ~~~~           
a.cc:15:22: error: expected ')' before ';' token
   15 |         printf("%c",a;)
      |               ~      ^
      |                      )
a.cc:15:23: error: expected primary-expression before ')' token
   15 |         printf("%c",a;)
      |                       ^
Language: C++

#include <stdio.h>

int main(){
int a,b;
scanf("%c",&a);
//printf("%d",a);
//printf("\n%c",a);
if(a>=65 && a<=90){
	b=a-1;
	printf("%c",b)
	puts("")
	printf("%c is uppercase, so we should print %c.",b,a);
}
else if(a>=97 && a<=122){
	printf("%c",a;)
	puts("")
	printf("%c is lowercase, so we should print %c.",a,a);
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before 'puts'
   10 |         printf("%c",b)
      |                       ^
      |                       ;
   11 |         puts("")
      |         ~~~~           
a.cc:15:22: error: expected ')' before ';' token
   15 |         printf("%c",a;)
      |               ~      ^
      |                      )
a.cc:15:23: error: expected primary-expression before ')' token
   15 |         printf("%c",a;)
      |                       ^
Language: C++

#include<stdio.h>

int main(){
    char a;
    scanf("%c", &a);
    if (a < 'Z'){
        printf ("A"\n);
    } else {
        printf ("a"\n);
    }
    return 0;
}

Compiler output:
a.cc:7:20: error: stray '\' in program
    7 |         printf ("A"\n);
      |                    ^
a.cc:9:20: error: stray '\' in program
    9 |         printf ("a"\n);
      |                    ^
a.cc: In function 'int main()':
a.cc:7:20: error: expected ')' before 'n'
    7 |         printf ("A"\n);
      |                ~   ^~
      |                    )
a.cc:9:20: error: expected ')' before 'n'
    9 |         printf ("a"\n);
      |                ~   ^~
      |                    )
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(c>="A"&&c<="Z")
      |      ~^~~~~
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(c>="A"&&c<="Z")
      |              ~^~~~~
Language: C

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


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

#include <iostream>
using namespace std;
int main(void){
    int a;
    cin >> a;
    if(isuppeer != 0){
        cout << "A" << endl;
    }
    else cout << "a" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'isuppeer' was not declared in this scope; did you mean 'isupper'?
    6 |     if(isuppeer != 0){
      |        ^~~~~~~~
      |        isupper
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    
    char a;
    cin >> a;
    
    if(isupper(a)){
    cout << "A" << endl;
    else
    cout << "a" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected '}' before 'else'
   11 |     else
      |     ^~~~
a.cc:9:19: note: to match this '{'
    9 |     if(isupper(a)){
      |                   ^
Language: C++

#include <stdio.h>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <set>
#include <string>
#include <vector>

typedef long long ll;
using namespace std;

int main() {
  int N;
  cin >> N;
  int anums[10005] = {};
  unsigned ll sum = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    anums[a]++;
    sum += a;
  }
  int Q;
  cin >> Q;
  vector<ll> bs(Q);
  vector<ll> cs(Q);
  for (int i = 0; i < Q; i++) {
    cin >> bs.at(i) >> cs.at(i);
  }
  for (int i = 0; i < Q; i++) {
    int num = anums[bs.at(i)];
    sum = sum + ((cs.at(i) - bs.at(i)) * num);
    anums[cs.at(i)] += num;
    anums[bs.at(i)] = 0;
    cout << sum << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: expected initializer before 'sum'
   16 |   unsigned ll sum = 0;
      |               ^~~
a.cc:21:5: error: 'sum' was not declared in this scope
   21 |     sum += a;
      |     ^~~
a.cc:32:5: error: 'sum' was not declared in this scope; did you mean 'num'?
   32 |     sum = sum + ((cs.at(i) - bs.at(i)) * num);
      |     ^~~
      |     num
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: no matching function for call to 'isupper(std::string&)'
   10 |   if(isupper(s)) {
      |      ~~~~~~~^~~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 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,
                 from a.cc:1:
/usr/include/c++/14/bits/locale_facets.h:2631:5: note: candidate: 'template<class _CharT> bool std::isupper(_CharT, const locale&)'
 2631 |     isupper(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2631:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/cctype:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:35:
/usr/include/ctype.h:117:1: note: candidate: 'int isupper(int)'
  117 | __exctype (isupper);
      | ^~~~~~~~~
/usr/include/ctype.h:117:1: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  117 | __exctype (isupper);
      | ^~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: no matching function for call to 'isupper(std::string&)'
   10 |   if(isupper(s)) cout << "A" << endl;
      |      ~~~~~~~^~~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 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,
                 from a.cc:1:
/usr/include/c++/14/bits/locale_facets.h:2631:5: note: candidate: 'template<class _CharT> bool std::isupper(_CharT, const locale&)'
 2631 |     isupper(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2631:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/cctype:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:35:
/usr/include/ctype.h:117:1: note: candidate: 'int isupper(int)'
  117 | __exctype (isupper);
      | ^~~~~~~~~
/usr/include/ctype.h:117:1: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  117 | __exctype (isupper);
      | ^~~~~~~~~
Language: C

#include <iostream>

int main() {
    char a;
    std::cin >> a;
    if (std::isupper(a)) {
        std::cout << 'A' << std::endl;
    } else {
        std::cout << 'a' << std::endl;
    }
    return 0;
}

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

# puts "hello world!!"
# i = 9
# if(i == 10)
#     puts "Yes"
# elsif(i == 9)
#     puts "999"
# else  
#      puts "No"
# end

# for i in 0...101
#     if(i%3 == 0 && i%5 == 0)
#         puts "FizzBuzz"
#     elsif(i%3 == 0)
#         puts "Fizz"
#     elsif(i%5 == 0)  
#          puts "Buss"
#     else
#         p i
#     end
# end

s = gets.chomp
if s >= "a"
    puts "a"
else
    puts "A"
end

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #puts
    1 | # puts "hello world!!"
      |   ^~~~
a.cc:2:3: error: invalid preprocessing directive #i; did you mean #if?
    2 | # i = 9
      |   ^
      |   if
a.cc:8:8: error: invalid preprocessing directive #puts
    8 | #      puts "No"
      |        ^~~~
a.cc:9:3: error: invalid preprocessing directive #end; did you mean #endif?
    9 | # end
      |   ^~~
      |   endif
a.cc:11:3: error: invalid preprocessing directive #for
   11 | # for i in 0...101
      |   ^~~
a.cc:13:11: error: invalid preprocessing directive #puts
   13 | #         puts "FizzBuzz"
      |           ^~~~
a.cc:14:7: error: invalid preprocessing directive #elsif; did you mean #elif?
   14 | #     elsif(i%3 == 0)
      |       ^~~~~
      |       elif
a.cc:15:11: error: invalid preprocessing directive #puts
   15 | #         puts "Fizz"
      |           ^~~~
a.cc:16:7: error: invalid preprocessing directive #elsif; did you mean #elif?
   16 | #     elsif(i%5 == 0)
      |       ^~~~~
      |       elif
a.cc:17:12: error: invalid preprocessing directive #puts
   17 | #          puts "Buss"
      |            ^~~~
a.cc:12: error: unterminated #else
   12 | #     if(i%3 == 0 && i%5 == 0)
a.cc:3: error: unterminated #else
    3 | # if(i == 10)
Language: C++

#include<iostream>

int main(){
   char a;
   std::cin >> a;
  if (std::isuppercase(a)) std::cout << 'A';
  else std::cout << 'a';
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'isuppercase' is not a member of 'std'; did you mean 'uppercase'?
    6 |   if (std::isuppercase(a)) std::cout << 'A';
      |            ^~~~~~~~~~~
      |            uppercase
Language: C++

#include <algorithm>
#include <iostream>
#include <cstdio>
#include <map>
#include <numeric>
#include <cmath>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <complex>
#include <string.h>
#include <unordered_set>
#include <unordered_map>
#include <bitset>
#include <iomanip>
#include <sys/time.h>
#include <tuple>
#include <random>
using namespace std;

#define endl '\n'
#define ALL(v) (v).begin(), (v).end()
#define RALL(v) (v).rbegin(), (v).rend()
#define UNIQ(v) (v).erase(unique((v).begin(), (v).end()), (v).end())

typedef long long ll;
typedef long double ld;
typedef pair<int, string> P;
typedef tuple<int, string, string> T;
typedef complex<double> comp;
typedef vector< vector<ld> > matrix;
struct pairhash {
public:
    template<typename T, typename U>
    size_t operator()(const pair<T, U> &x) const {
	size_t seed = hash<T>()(x.first);
	return hash<U>()(x.second) + 0x9e3779b9 + (seed<<6) + (seed>>2);
    }
};
const int inf = 1e9 + 9;
const ll mod = 1e9 + 7;
const double eps = 1e-8;
const double pi = acos(-1);

cahr a;

char solve() {
    if ('a' <= a && a <= 'z') return 'a';
    return 'A';
}

void input() {
    cin >> a;
}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << fixed << setprecision(15);

    input();
    cout << solve() << endl;
}


Compiler output:
a.cc:48:1: error: 'cahr' does not name a type; did you mean 'char'?
   48 | cahr a;
      | ^~~~
      | char
a.cc: In function 'char solve()':
a.cc:51:16: error: 'a' was not declared in this scope
   51 |     if ('a' <= a && a <= 'z') return 'a';
      |                ^
a.cc: In function 'void input()':
a.cc:56:12: error: 'a' was not declared in this scope
   56 |     cin >> a;
      |            ^
Language: C++

#include <iostream>
#indluse <bits/stdc++.h>

using namespace std;

int main(){
  char ch;
  cin>>ch;
  if(ch>='a'&&ch<='z'){
    cout<<"a";
  }
  else
    cout<<"A";
  return 0;
}

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


int main(void){

  char c;
  int i;
  
  std::cin >> c;
  i=(int)c;
  //std::cout << i;

  if (i<97){
    i+=32;
  }
  else{
    i-=32;
  }
  std::cout << (char)i;;
  
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'cin' is not a member of 'std'
    7 |   std::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 | 
a.cc:17:8: error: 'cout' is not a member of 'std'
   17 |   std::cout << (char)i;;
      |        ^~~~
a.cc:17:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.*;class Main{public static void main(String[] a){char c=new Scanner(System.in).nextChar();System.out.println(c>'z'?'A':'a');}}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.*;class Main{public static void main(String[] a){char c=new Scanner(System.in).nextChar();System.out.println(c>'z'?'A':'a');}}
                                                                                               ^
  symbol:   method nextChar()
  location: class Scanner
1 error
Language: C

#include<algorithm>
#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<stack>
#include<queue>
using namespace std;
typedef long long ll;
const int N=1e3+5;
#define endl '\n'

int main(){
	ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
	char ch;
	cin>>ch;
	if(ch>='a'&&ch<='z') cout<<"a"<<endl;
	else cout<<"A"<<endl;
	
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1e3+5;
#define endl '\n'

int main(){
	ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
	char ch;
	cin>>ch;
	if(ch>='a'&&ch<='z') cout<<"a"<<endl;
	else cout<<"A"<<endl;
	
	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 s;
  cin>>s;
  
  int a = s;
  
  if(a>=97)
    cout<<"a"<<endl;
  else
    cout<<"A"<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected '}' at end of input
   14 |     cout<<"A"<<endl;
      |                     ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,k,all=0;
  cin >> n >> k;
  vector<int> p(n);
  for(int i=0;i<n;i++){
    cin >> p.at(i);
  }
  for(int i=0;i<k;i++){
    all += min(p(n));
  }
  cout << all << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: no match for call to '(std::vector<int>) (int&)'
   11 |     all += min(p(n));
      |                ~^~~
Language: C++

int main() {
char a;
  cin >> a;
  if(a >= 97){
	  cout << 'a' << endl;
  } else {
	  cout << 'A' << endl;
  }

}

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

void solve() {
  char a;
  cin >> a;
  if(a >= 97){
	  cout << 'a' << endl;
  } else {
	  cout << 'A' << endl;
  }
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a;
      |   ^~~
a.cc:5:11: error: 'cout' was not declared in this scope
    5 |           cout << 'a' << endl;
      |           ^~~~
a.cc:5:26: error: 'endl' was not declared in this scope
    5 |           cout << 'a' << endl;
      |                          ^~~~
a.cc:7:11: error: 'cout' was not declared in this scope
    7 |           cout << 'A' << endl;
      |           ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope
    7 |           cout << 'A' << endl;
      |                          ^~~~
Language: C++

#include <stdio.h>

int main() {
    char a;
    scanf("%d", &c);
    if (c >= 'A' && c <= 'Z') puts("A");
    else puts("a");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'c' was not declared in this scope
    5 |     scanf("%d", &c);
      |                  ^
Language: C++

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

int main() {
  string A ;
  cin >> A ;
  
  string L = "abcdefghijklmnopqrstuvwxyz"
  string S = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  
  for( int i=0 ; i<30 ; i++){
    if( A == L.at(i) ){
      cout << "a" << endl;
      break;
    }
    else if( A == S.at(i) ){
      cout<< "A" << endl;
      break;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'string'
    9 |   string S = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
      |   ^~~~~~
a.cc:11:18: error: 'i' was not declared in this scope
   11 |   for( int i=0 ; i<30 ; i++){
      |                  ^
Language: C++

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

int main() {
  string A ;
  cin >> A ;
  
  string L = "abcdefghijklmnopqrstuvwxyz"
  string S = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  
  for( int i=0 ; i<30 ; i++){
    if( A == L.at(i) ){
      cout << "a" << endl;
      break;
    }
    if( A == S.at(i) ){
      cout<< "A" << endl;
      break;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'string'
    9 |   string S = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
      |   ^~~~~~
a.cc:11:18: error: 'i' was not declared in this scope
   11 |   for( int i=0 ; i<30 ; i++){
      |                  ^
Language: C++

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

int main() {
  string A ;
  cin >> A ;
  
  string L = "abcdefghijklmnopqrstuvwxyz"
  string S = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  
  for( int i=0 ; i<30 ; i++){
    if( A == "L.at(i)" ){
      cout << "a" << endl;
      break;
    }
    if( A == "S.at(i)" ){
      cout<< "A" << endl;
      break;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'string'
    9 |   string S = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
      |   ^~~~~~
a.cc:11:18: error: 'i' was not declared in this scope
   11 |   for( int i=0 ; i<30 ; i++){
      |                  ^
Language: C++

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

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

#include <iostream>
#include <iomanip>
#include <cstdio>
#include <string>
#include <queue>
#include <deque>
#include <list>
#include <vector>
#include <utility>
#include <algorithm>
#include <map>
#include <set>
#include <complex>
#include <cmath>
#include <limits>
#include <cfloat>
#include <climits>
#include <ctime>
#include <cassert>
#include <numeric>
#include <fstream>
#include <functional>
#include <bitset>

using namespace std;


#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define repr(i,n) for(int (i)=(n); (i)>=(0); (i)--)
#define SIZE(x) ((int)(x).size())
#define GCD(a, b) int gcd(int a,int b){return b?gcd(b,a%b):a;}
#define QP(a, b) int qp(int a,ll b){int ans=1;do{if(b&1)ans=1ll*ans*a%mo;a=1ll*a*a%mo;}while(b>>=1);return ans;}
#define pb(a) push_back(a)
#define mp(a,b) make_pair(a,b)
#define all(v) (v).begin(),(v).end()


template<typename T> void chmax(T &a, T b) {a = max(a, b);}
template<typename T> void chmin(T &a, T b) {a = min(a, b);}
template<typename T> void chadd(T &a, T b) {a = a + b;}
template<typename A, size_t N, typename T>
void FILL(A (&array)[N], const T &val){
    std::fill( (T*)array, (T*)(array+N), val );
}

typedef vector<int, int> vint;
typedef pair<int,int> pint;
typedef vector<pint>vpint;
typedef long long ll;

int dx[] = {0, 0, 1, -1};
int dy[] = {1, -1, 0, 0};
const ll INF = 1LL << 60;
const ll MOD = 1000000007LL;


int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    char alpha; cin alpha;
    if('a' <= alpha && alpha <= 'z') cout << 'a';
    else cout << 'A';
    cout << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:60:20: error: expected ';' before 'alpha'
   60 |     char alpha; cin alpha;
      |                    ^~~~~~
      |                    ;
Language: C

#include <stdio.h>

int main(void)[
    char alpha;

    scanf("%c", &alpha);
 
    if((alpha >= 'a') && (alpha <='z')){
      printf("a\n");
    }else if((alpha >= 'A') && (alpha <='Z')){
      printf("A\n");
    }
    return 0;
}

Compiler output:
main.c:4:5: error: expected expression before 'char'
    4 |     char alpha;
      |     ^~~~
Language: C

#include <stdio.h>

int main(void)[
    int i;
    char alpha;

    scanf("%c", &alpha);
 
    if((alpha >= 'a') && (alpha <='z')){
      printf("a\n");
    }else if((alpha >= 'A') && (alpha <='Z')){
      printf("A\n");
    }
    return 0;
}

Compiler output:
main.c:4:5: error: expected expression before 'int'
    4 |     int i;
      |     ^~~
Language: C

#include <stdio.h>

int main(void)[
    int i;
    char α;

    scanf("%c", &α);
 
    if((α >= 'a') && (α <='z')){
      printf("a\n");
    }
    else 
      printf("A\n");
 
    return 0;
}

Compiler output:
main.c:4:5: error: expected expression before 'int'
    4 |     int i;
      |     ^~~
Language: C++

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

int main() {
    std::string alpha;
    cin >> alpha;
    
    if (isupper(alpha))
     {
         cout << "A" << endl;
     }
     else
     {
         cout << "a" << endl;
     }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: no matching function for call to 'isupper(std::string&)'
   11 |     if (isupper(alpha))
      |         ~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:3:
/usr/include/c++/14/bits/locale_facets.h:2631:5: note: candidate: 'template<class _CharT> bool std::isupper(_CharT, const locale&)'
 2631 |     isupper(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2631:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/cctype:42,
                 from a.cc:2:
/usr/include/ctype.h:117:1: note: candidate: 'int isupper(int)'
  117 | __exctype (isupper);
      | ^~~~~~~~~
/usr/include/ctype.h:117:1: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  117 | __exctype (isupper);
      | ^~~~~~~~~
Language: C++

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

int main() {
    std::string c;
    cin >> alpha;
    
    if (isupper(alpha))
     {
         cout << "A" << endl;
     }
     else
     {
         cout << "a" << endl;
     }

}

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

#include<stdio.h>
#include<ctype.h>

int main(){
  char a;
  scanf("%c",&a);
  
  if(islower(*a)){
    printf('a');
  }
  else printf('A');
  
  return 0;
}


Compiler output:
In file included from main.c:2:
main.c: In function 'main':
main.c:8:14: error: invalid type argument of unary '*' (have 'int')
    8 |   if(islower(*a)){
      |              ^~
main.c:9:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    9 |     printf('a');
      |            ^~~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:11:15: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |   else printf('A');
      |               ^~~
      |               |
      |               int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <iostream>
#include <numeric>
#include <math.h>
#include <algorithm>
#include <float.h>
#include <limits>
#include <vector>
#include <string.h>
#include <iomanip>
#include <sstream>

#define rep(i,a,n) for(ll int (i) = (a);(i) < (n);(i)++)
#define urep(i,a,n) for(ll int (i) = (a);(i) > (n);(i)--)
#define MOD 1000000007
#define INF 2147483647
#define ll long long
#define asort(a) sort(a.begin(),a.end());
#define usort(a) sort(a.rbegin(),a.rend());

using namespace::std;

ll int jo(ll int a, ll int b){//累乗
    ll int num=1;
    rep(i,0,b) num=num*a;
    return num;
}
char tobig(char s){//char大文字化
  return (s-0x20);
}
char tolow(char s){//char小文字化
  return (s+0x20);
}
int ctoi(char a){//char->int
  if('0'<=a&&a<='9') return (a-'0');
  return -1;
}
ll int gcd(ll int a,ll int b) {//最大公約数
  if(a<b) return gcd(b,a);
  int c;
  while ((c=a%b)) {
    a=b;
    b=c;
  }
  return b;
}
ll int lcm(ll int a,ll int b){//最小公倍数
 return (a*b)/gcd(a,b);
}


int main(){
  char c;
  int c;
  cout<<(c-'A'<28?"A":"a");

}
// int *p = new int[N];

//  sort(変数名.begin(),変数名.end());//昇順ソート
//  sort(変数名.rbegin(),変数名.rend());//降順ソート

// vector<vector<int>> 変数名(左の個数, vector<int>(右の個数));

//cout<<fixed<<setprecision(n);  //小数点n桁まで表示

//  vector<pair<int,int>> data(N);  //2つのデータを格納、.first/.secondで参照
// pairのソートはfirst優先の昇順

//cout.fill('0');
//cout<<setw(N)<<value;  //整数の左側を0梅して指定桁数出力

//    str tmp,str;　　　　　//一行の入力を指定した文字で分割//a[i]はあらかじめ宣言しておくこと
//    getline(cin,str);
//    stringstream ss{str};  //これがないとバグる
//    while(getline(ss,tmp,'分割したい文字')){
//      a[i]=tmp;
//      i++;
//  }


//    int N=atoi(変換したい文字列.c_str());//stringをintに変換


Compiler output:
a.cc: In function 'int main()':
a.cc:53:7: error: conflicting declaration 'int c'
   53 |   int c;
      |       ^
a.cc:52:8: note: previous declaration as 'char c'
   52 |   char c;
      |        ^
Language: C

#include<stdio.h>

int main(void){

  int i;
  char a;

  scanf("%c", &a);

  if((a>= 'a') && (a<='z')){
    printf("a\n");
  }
  else ((a>= 'A') && (a<='Z')){
    printf("A\n");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:31: error: expected ';' before '{' token
   13 |   else ((a>= 'A') && (a<='Z')){
      |                               ^
      |                               ;
Language: C++

#include <bits/stdc++.h>
#include <unordered_map>

using namespace std;
typedef long long int ll;
typedef long double ld;
#define REP(i, n) for(ll i = 0LL; i < (ll)(n); i++)
#define REPR(i, n) for (ll i = (ll)(n) - 1; i >= 0; i--)
#define FOR(i, n, m) for(ll i = (ll)n; i < (ll)(m); i++)
#define ALL(x) (x).begin(),(x).end()
#define MOD 1000000007
#define INF (1LL << 62)

#define PI (acos(-1))
#define PRINT(x) std::cout << x << endl
 
ll gcd(ll a, ll b) { return b ? gcd(b,a%b) : a;}
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
ll countDigit(ll n) { return floor(log10(n) + 1); } 
typedef pair <ll,ll> P;
static const ll dx[8] = {0,1,0,-1, 1, -1, 1, -1}, dy[8] = {1,0,-1,0,1,1,-1,-1};

template <typename T> 
ostream& operator<<(ostream& os, const vector<T>& v) 
{ 
    for (int i = 0; i < (int)v.size(); ++i) os << v[i] << " ";  
    return os; 
}

template <typename T1, typename T2> 
ostream& operator<<(ostream& os, const map<T1, T2>& m) 
{ 
    for (auto p : m) os << "<" << p.first << ", " << p.second << "> "; 
    return os; 
}

int main()
{
  char c;
  cin >> c;
  char ans;
  if ('a' <= c && c <= 'z') {
    PRINT('a')
  } else {
    PRINT('A');
  }
  return 0;
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:44:3: error: expected ';' before '}' token
   44 |   } else {
      |   ^
Language: C++

#inculde<bits/stdc++.h>
using namespace std;
int main(){
  char c;
  cin>>c;
  if(c<='Z')puts("A");
  else puts("a");
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde<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 | #inculde<bits/stdc++.h>
a.cc:6:13: error: 'puts' was not declared in this scope
    6 |   if(c<='Z')puts("A");
      |             ^~~~
a.cc:7:8: error: 'puts' was not declared in this scope
    7 |   else puts("a");
      |        ^~~~
Language: Java

import java.util.Scanner;

public class AnswerA {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        char input = scanner.next().charAt(0);

        if (input >= 'a' && input <= 'z') {
            System.out.println('a');
        } else {
            System.out.println('A');
        }

    }
}


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

import java.util.*;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		String bs=str.toUpperCase();
		Stirng ss=str.toLowerCase();
		if(str.equals(bs))
		{
			System.out.println("A");
		}
		else if(str.equals(ss))
		{
			System.out.println("a");
		}
		sc.close();
	}
}


Compiler output:
Main.java:10: error: cannot find symbol
		Stirng ss=str.toLowerCase();
		^
  symbol:   class Stirng
  location: class Main
1 error
Language: C++

int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    char t;
    cin >> t;
    if(t - 97 >= 0 ){
        cout << 'a';
    }else{
        cout << 'A';
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'ios' has not been declared
    2 |     ios::sync_with_stdio(0);
      |     ^~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin.tie(0);
      |     ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << 'a';
      |         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << 'A';
      |         ^~~~
Language: C++

#include <ctype.h>
#include <iostream>

using namespace std;

int main(){
    char c; cin >> c;
    if(islower(c)) cout << "a" << endl;
    else cout << "A" << endl;
  　return 0;
}

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

#include <stdio.h>

int main(void)
{
	int moji;

	moji = getchar();

	if(moji == 'a'){
	printf("取得した文字：%c\n", moji);
    }else if(moji == 'A'){
    printf("取得した文字：%c\n", moji);
    }else
	
}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: expected expression before '}' token
   15 | }
      | ^
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
      
      if(Character.isUpperCase(line.charAt(0)){
      	System.out.println("A");
      }else{
      	System.out.println("a");
      }
    }
}

Compiler output:
Main.java:8: error: ')' expected
      if(Character.isUpperCase(line.charAt(0)){
                                              ^
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
      
      if(Character.isUpperCase(line)){
      	System.out.println("A");
      }else{
      	System.out.println("a");
      }
    }
}

Compiler output:
Main.java:8: error: no suitable method found for isUpperCase(String)
      if(Character.isUpperCase(line)){
                  ^
    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)
1 error
Language: C++

#include<bits/stdc++.h>
#include<cstdio>

using namespace std;

int main(){
  char a; cin >> a;
  if("a"<= a && a<="z") a='a';
  else a='A';

  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if("a"<= a && a<="z") a='a';
      |      ~~~^~~~
a.cc:8:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if("a"<= a && a<="z") a='a';
      |                 ~^~~~~
Language: C++

#include<bits/stdc++.h>
#include<cstdio>

using namespace std;

int main(){
  char a; cin >> a;
  if("a"<= a && a<="z") a='a';
  else a='A'

  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if("a"<= a && a<="z") a='a';
      |      ~~~^~~~
a.cc:8:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if("a"<= a && a<="z") a='a';
      |                 ~^~~~~
a.cc:9:13: error: expected ';' before 'cout'
    9 |   else a='A'
      |             ^
      |             ;
   10 | 
   11 |   cout << a << endl;
      |   ~~~~
Language: Java

import java.util.Scanner;
public class A{
	public static void main(String args[]){
		Scanner in = new Scanner(System.in);
		char c=in.next().charAt(0);
		if(c>='A' && c<='Z')	System.out.print("A");
		else System.out.print("a");
	}
}

Compiler output:
Main.java:2: 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;

//Containers
typedef long long int lng;
#define vint vector<int>
#define vtwod vector<vector<int>>
#define vlng vector<long long int>
#define vstr vector<string>
#define vpint vector<pair<int,int>>
#define pint pair<int,int>
#define lint list<int>
#define qint queue<int>
#define dqint deque<int>
#define pq priority_queue<int>
#define rpq priority_queue<int,vector<int>,greater<int>>
#define fl forward_list<int>
#define st stack<int>
#define sint set<int>
#define msint multiset<int>


//Methods of containers:-
#define pb push_back
#define pf push_front
#define mp make_pair
#define F first
#define S second
#define ub upper_bound
#define lb lower_bound
#define binsear binary_search
#define popf pop_front
#define popb pop_back
#define empb emplace_back
#define empf emplace_front
#define emp emplace
#define emt empty
#define ins insert
#define insaft insert_after
#define emplaft emplace_after
#define ersaft erase_after
#define swp swap
#define splicaft splice_after


//FUNCTIONS
bool isprime(int n)
{
    if(n<=1)
    {
        return false;
    }
    for(size_t i=2;i<n;i++)
    {
        if(n%i==0)
        {
            return false;
        }
    }
    return true;
}

int min3(int a,int b,int c)
{
    return min(min(a,b),c);
}

int max3(int a,int b,int c)
{
    return max(max(a,b),c);
}

void gcd(int a,int b)
{
    cout<<__gcd(a,b)<<endl;
}

/*******************************************************CODE**************************************************************/
void doit()
{
    char x;
    cin>>x;
    if(x==toupper(x))
    {
        cout<<'A'<<endl;
    }
    else
    {
        cout<<'a'<<endl;
    }
}
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(NULL);
    doit();urn 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:97:12: error: 'urn' was not declared in this scope
   97 |     doit();urn 0;
      |            ^~~
Language: Java

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc=new Scanner(System.in);
		String str=sc.next();
		if(Character.isUpperCase(str.charAt(0))) {
			System.out.println("A");
		}else {
			System.out.println("a");
		}

		}
	}




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

import java.util.Scanner;
import java.util.regex.*
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    
    if(Pattern.matches("[A-Z]",str))
      System.out.println('A');
      else
        System.out.println('a');
  }
}


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

import java.util.Scanner;
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    
    if(Pattern.matches("[A-Z]",str))
      System.out.println('A');
      else
        System.out.println('a');
  }
}


Compiler output:
Main.java:9: error: cannot find symbol
    if(Pattern.matches("[A-Z]",str))
       ^
  symbol:   variable Pattern
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    
    if(Pattern.matches("[A-Z]",str))
      System.out.println("A");
      else
        System.out.println("a");
  }
}


Compiler output:
Main.java:9: error: cannot find symbol
    if(Pattern.matches("[A-Z]",str))
       ^
  symbol:   variable Pattern
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    
    if(Pattern.matches("[A-Z]",str))
      System.out.println("A");
      else
        System.out.println("a");
  }
}


Compiler output:
Main.java:9: error: cannot find symbol
    if(Pattern.matches("[A-Z]",str))
       ^
  symbol:   variable Pattern
  location: class Main
1 error