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

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

 int main(){
   string A="QWERTYUIOPASDFGHJKLZXCVBNM";
   string a="qwertyuiopasdfghjklzxcvbnm";
   string alpha;
   cin>>alpha;
   
   rep(i,n){
     if(alpha = A.at(i))
       cout<<"A"<<endl;
     if(alpha = a.at(i))
       cout<<"a"<<endl;
   }
     
     return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:2:18: error: expected primary-expression before '=' token
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                  ^
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,n){
      |    ^~~
a.cc:2:20: error: expected primary-expression before 'for'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                    ^~~
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,n){
      |    ^~~
a.cc:11:8: error: 'i' was not declared in this scope
   11 |    rep(i,n){
      |        ^
a.cc:2:35: note: in definition of macro 'rep'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                                   ^
a.cc:11:10: error: 'n' was not declared in this scope
   11 |    rep(i,n){
      |          ^
a.cc:2:39: note: in definition of macro 'rep'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                                       ^
Language: C++

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

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

#include<stdio.h>

int main(void)
{
  int size,reps;
  scanf("%d%d",&size,&reps);
  int i=0;
  int a=size;
  int arr[a]=0;
  
  while(i<size)
  {
    scanf("%d",&arr[i]);
    i++;
  }
  
 int sum=0,min[reps],j=0,l;
 printf("\n");
  
  
   for(i=0;i<size;i++)
   {
    for(l=0;l<size;l++)
    {
      if(arr[i]>arr[j])
      {
        int tmp=arr[i];
        arr[i]=arr[j];
        arr[j]=tmp;
      }
    }
     
 while(j!=reps)
 {
  sum=arr[j]+sum;      	
 }
     printf("%d",sum);
   }
  

Compiler output:
main.c: In function 'main':
main.c:9:14: error: variable-sized object may not be initialized except with an empty initializer
    9 |   int arr[a]=0;
      |              ^
main.c:38:4: error: expected declaration or statement at end of input
   38 |    }
      |    ^
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char s = sc.nextChar();
    if(Character.isUpperCase(s)){
      System.out.println("A");
    }
    else{
      System.out.println("a");
    }
  }
}

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

#include<stdio.h>
using namespace std;
int main(void)
{
  char a;
  
  printf("英文字を入力");
  scanf("%c", &a);
  
  
  if((a>='a')&&(a<='z'))
    printf("a");
  else if((a>='A')&&(a<='Z'))
    printf('A');
  return 0;
}


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

class Main{
	public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
	        String str1 = sc.next();  
			String moji = str1.toUpperCase();
        	if(str1 == moji){
            	System.out.println("A");
            }else{
            	System.out.println("a");
            }
    }
}

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

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

 int main(){
   string A="QWERTYUIOPASDFGHJKLZXCVBNM";
   string a="qwertyuiopasdfghjklzxcvbnm";
   string alpha;
   cin>>alpha;
   
   rep(i,26){
     if(alpha = A.at(i))
       cout<<"A"<<endl;
     if(alpha = a.at(i))
       cout<<"a"<<endl;
     
     return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:2:18: error: expected primary-expression before '=' token
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                  ^
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,26){
      |    ^~~
a.cc:2:20: error: expected primary-expression before 'for'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                    ^~~
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,26){
      |    ^~~
a.cc:11:8: error: 'i' was not declared in this scope
   11 |    rep(i,26){
      |        ^
a.cc:2:35: note: in definition of macro 'rep'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                                   ^
a.cc:18:3: error: expected '}' at end of input
   18 |  }
      |   ^
a.cc:5:12: note: to match this '{'
    5 |  int main(){
      |            ^
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
      String str1 = new String(S);
          if(Character.isUpperCase(str1.charAt( 0 ))){
            String T = str1.toLowerCase();
            System.out.println(A);
          }
         else {String T = str1.toUpperCase();
           System.out.println("a");
                }
        }
    }

Compiler output:
Main.java:10: error: cannot find symbol
            System.out.println(A);
                               ^
  symbol:   variable A
  location: class Main
1 error
Language: C

#include<stdio.h>
#include<ctype.h>
 
int main(){
  int c;
  while(scanf("%lc",&c)==0);
  
  if(c=='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\n");
  }else(c=='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\n");
  }
  
  
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:10:141: error: expected ';' before '{' token
   10 |   }else(c=='A'||'B'||'C'||'D'||'E'||'F'||'G'||'H'||'I'||'J'||'K'||'L'||'M'||'N'||'O'||'P'||'Q'||'R'||'S'||'T'||'U'||'V'||'W'||'X'||'Y'||'Z'){
      |                                                                                                                                             ^
      |                                                                                                                                             ;
Language: C

#include<stdio.h>

int main(void)
{
  int size,reps;
  scanf("%d%d",&size,&reps);
  int i=0;
  int arr[size]=0;
  
  while(i<size)
  {
    scanf("%d",&arr[i]);
    i++;
  }
  
 int sum=0,min[reps],j=0,l;
 printf("\n");
  
  
   for(i=0;i<size;i++)
   {
    for(l=0;l<size;l++)
    {
      if(arr[i]>arr[j])
      {
        int tmp=arr[i];
        arr[i]=arr[j];
        arr[j]=tmp;
      }
    }
     
 while(j!=reps)
 {
  sum=arr[j]+sum;      	
 }
     printf("%d",sum);
   
  

Compiler output:
main.c: In function 'main':
main.c:8:17: error: variable-sized object may not be initialized except with an empty initializer
    8 |   int arr[size]=0;
      |                 ^
main.c:36:6: error: expected declaration or statement at end of input
   36 |      printf("%d",sum);
      |      ^~~~~~
main.c:36:6: error: expected declaration or statement at end of input
Language: Java

import java.util.*;
 
class Main{
	public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
	        String str1 = sc.next();  
			String moji = str1.toUpperCase();
        	if(str1 == moji){
            	System.out.println(A);
            }else{
            	System.out.println(a);
            }
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
            	System.out.println(A);
            	                   ^
  symbol:   variable A
  location: class Main
Main.java:11: error: cannot find symbol
            	System.out.println(a);
            	                   ^
  symbol:   variable a
  location: class Main
2 errors
Language: C++

α = input('input your favorite alpabet:')
if α.isupper():
    print('A')
else:
    print('a')

Compiler output:
a.cc:1:11: warning: multi-character literal with 28 characters exceeds 'int' size of 4 bytes
    1 | α = input('input your favorite alpabet:')
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: '\U000003b1' does not name a type
    1 | α = input('input your favorite alpabet:')
      | ^
Language: C++

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

 int main(){
   string A="QWERTYUIOPASDFGHJKLZXCVBNM";
   string a="qwertyuiopasdfghjklzxcvbnm";
   string alpha;
   cin>>alpha;
   
   rep(i,n){
     if(alpha = A.at(i))
       cout<<"A"<<endl;
     if(alpha = a.at(i))
       cout<<"a"<<endl;
     
     return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:2:18: error: expected primary-expression before '=' token
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                  ^
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,n){
      |    ^~~
a.cc:2:20: error: expected primary-expression before 'for'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                    ^~~
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,n){
      |    ^~~
a.cc:11:8: error: 'i' was not declared in this scope
   11 |    rep(i,n){
      |        ^
a.cc:2:35: note: in definition of macro 'rep'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                                   ^
a.cc:11:10: error: 'n' was not declared in this scope
   11 |    rep(i,n){
      |          ^
a.cc:2:39: note: in definition of macro 'rep'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                                       ^
a.cc:18:3: error: expected '}' at end of input
   18 |  }
      |   ^
a.cc:5:12: note: to match this '{'
    5 |  int main(){
      |            ^
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    if(s.isUpperCase()){
      System.out.println("A");
    }
    else{
      System.out.println("a");
    }
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    if(s.isUpperCase()){
        ^
  symbol:   method isUpperCase()
  location: variable s of type String
1 error
Language: C

#include<stdio.h>
#include<ctype.h>
 
int main(){
  int c;
  while(scanf("%lc",&c)==0);
  
  if(c=='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\n");
  }else(c==='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\n");
  
  
  
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected expression before '=' token
   10 |   }else(c==='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:10:142: error: expected ';' before 'printf'
   10 |   }else(c==='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')
      |                                                                                                                                              ^
      |                                                                                                                                              ;
   11 |     printf("A\n");
      |     ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  string a;
  cin>>a;
  if(a[0]<'a') cout<<A;
  else cout<<a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'A' was not declared in this scope
    7 |   if(a[0]<'a') cout<<A;
      |                      ^
Language: C++

#include<stdio.h>
using namespace std;
int main(void)
{
  char a;
  
  printf("英文字を入力");
  scanf(a);
  
  
  if((a>='a')&&(a<='z'))
    printf("a");
  else if((a>='A')&&(a<='Z'))
    printf('A');
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    8 |   scanf(a);
      |         ^
      |         |
      |         char
In file included from a.cc:1:
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:14:12: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   14 |     printf('A');
      |            ^~~
      |            |
      |            char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    if(s.isUpperCase()){
      System.out.println("A"):
    }
    else{
      System.out.println("a");
    }
  }
}
      

Compiler output:
Main.java:7: error: ';' expected
      System.out.println("A"):
                             ^
1 error
Language: C++

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

 int main(){
   string A=QWERTYUIOPASDFGHJKLZXCVBNM;
   string a=qwertyuiopasdfghjklzxcvbnm;
   string alpha;
   cin>>alpha;
   
   rep(i,n){
     if(alpha = A.at(i))
       cout<<"A"<<endl;
     if(alpha = a.at(i))
       cout<<"a"<<endl;
     
     return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'QWERTYUIOPASDFGHJKLZXCVBNM' was not declared in this scope
    6 |    string A=QWERTYUIOPASDFGHJKLZXCVBNM;
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:13: error: 'qwertyuiopasdfghjklzxcvbnm' was not declared in this scope
    7 |    string a=qwertyuiopasdfghjklzxcvbnm;
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:2:18: error: expected primary-expression before '=' token
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                  ^
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,n){
      |    ^~~
a.cc:2:20: error: expected primary-expression before 'for'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                    ^~~
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,n){
      |    ^~~
a.cc:11:8: error: 'i' was not declared in this scope
   11 |    rep(i,n){
      |        ^
a.cc:2:35: note: in definition of macro 'rep'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                                   ^
a.cc:11:10: error: 'n' was not declared in this scope
   11 |    rep(i,n){
      |          ^
a.cc:2:39: note: in definition of macro 'rep'
    2 | #define rep(i,n) = for(int i = 0; i < n; i++);
      |                                       ^
a.cc:18:3: error: expected '}' at end of input
   18 |  }
      |   ^
a.cc:5:12: note: to match this '{'
    5 |  int main(){
      |            ^
Language: C++

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

 int main(){
   string A=QWERTYUIOPASDFGHJKLZXCVBNM;
   string a=qwertyuiopasdfghjklzxcvbnm;
   string alpha;
   cin>>alpha;
   
   rep(i,n){
     if(alpha = A.at(i))
       cout<<"A"<<endl;
     if(alpha = a.at(i))
       cout<<"a"<<endl;
     
     return 0;
 }

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

using namespace std;
int main(void)
{
  char a;
  
  printf("英文字を入力");
  scanf(a);
  
  
  if((a>='a')&&(a<='z'))
    printf("a");
  else if((a>='A')&&(a<='Z'))
    printf('A');
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'printf' was not declared in this scope
    6 |   printf("英文字を入力");
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | using namespace std;
a.cc:7:3: error: 'scanf' was not declared in this scope
    7 |   scanf(a);
      |   ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using vl = vector<ll>; using vvl = vector<vl>;
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
const ll INF = 9223372036854775807;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: expected primary-expression before ',' token
   12 |   else cout << 'a' <, endl;
      |                     ^
Language: Java

import java.util.*;

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

Compiler output:
Main.java:6: error: cannot find symbol
    String str = ?;
                 ^
  symbol:   variable ?
  location: class Main
1 error
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:6: error: 'a' undeclared (first use in this function)
    6 |   if(a-'0'<=alf-'0'&&z-'0'>=alf-'0'){
      |      ^
main.c:6:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:22: error: 'z' undeclared (first use in this function)
    6 |   if(a-'0'<=alf-'0'&&z-'0'>=alf-'0'){
      |                      ^
Language: C++

#include<studio.h>
using namespace std;
int main(void)
{
  char a;
  
  printf("英文字を入力");
  scanf(a);
  
  
  if((a>='a')&&(a<='z'))
    printf("a");
  else if((a>='A')&&(a<='Z'))
    printf('A');
  return 0;
}


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

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


Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected expression before '<' token
    6 |   if(a=<'z') {
      |        ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:6: warning: comparison between pointer and integer
    6 | if((α>"A")&&(α<"Z"))
      |      ^
main.c:6:15: warning: comparison between pointer and integer
    6 | if((α>"A")&&(α<"Z"))
      |               ^
main.c:10:6: warning: comparison between pointer and integer
   10 | if((α>"a")&&(α<"z"))
      |      ^
main.c:10:15: warning: comparison between pointer and integer
   10 | if((α>"a")&&(α<"z"))
      |               ^
main.c:12:16: error: expected ';' before '}' token
   12 | printf("a\n",α)
      |                ^
      |                ;
   13 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  string s;
  cin>>s:
  if(isupper(s)
     cout << to_lower(s);
     else
     cout << to_upper(s);
     }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before ':' token
    6 |   cin>>s:
      |         ^
      |         ;
a.cc:9:6: error: 'else' without a previous 'if'
    9 |      else
      |      ^~~~
a.cc:10:14: error: 'to_upper' was not declared in this scope; did you mean 'towupper'?
   10 |      cout << to_upper(s);
      |              ^~~~~~~~
      |              towupper
Language: C

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

int main()
{
	char alpha;
	
	// 文字の入力
	scanf("%c", &alpha);
	
	// 判定
	for(moji='A'; moji<='Z'; ++moji){
	
		if(alpha == moji){
			printf("A");
		}
	}
	
	// 判定
	for(moji='a'; moji<='z'; ++moji){
	
		if(alpha == moji){
			printf("a");
		}
	}


	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:13: error: 'moji' undeclared (first use in this function)
   14 |         for(moji='A'; moji<='Z'; ++moji){
      |             ^~~~
main.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<studio.h>
using namespace std;
int main(void)
{
  char a;
  
  printf("英文字を入力");
  scanf(a);
  
  
  if((a>='a')&&(a<='z'))
    printf("a");
  else if((a>='A')&&(a<='Z'))
    printf('A');
  
#include<iostream>
using namespace std;
int main(void)
{
  int a;
  char a;
  
  printf("英文字を入力");
  cout << a;
  
  
  if(a>='a',a<='z')
    printf("a");
  else if(a>='A',a<='Z')
    printf('A');
  
  return 0;
}

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

#include <bits/stdc++.h>

using namespace std;
int main()
{
	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:25: error: 'A' was not declared in this scope
   11 |                 cout << A << endl;
      |                         ^
Language: Java



import java.util.Scanner;

public class Alphabet {

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

}


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

package atcoder;

import java.util.Scanner;
public class AtcoderA {

	public static void Main(String[] args) {



		Scanner scan = new Scanner(System.in);

		String chara = scan.nextLine();

		if(Character.isUpperCase(chara.charAt(0))) {
			System.out.println("A");
		}else {
			System.out.println("a");
		}
		scan.close();

	}

}



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

#include <bits/stdc++.h>

using namespace std;
int main()
{
	string a;
	cin >> a;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: no matching function for call to 'isupper(std::string&)'
    9 |         if (isupper(a))
      |             ~~~~~~~^~~
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);
      | ^~~~~~~~~
a.cc:11:25: error: 'A' was not declared in this scope
   11 |                 cout << A << endl;
      |                         ^
Language: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: no matching function for call to 'isupper(std::string&)'
    7 |     if(isupper(a)){
      |        ~~~~~~~^~~
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: Java

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


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

#include<bits/stdc++.h>
#define ll long long
#define pi acos(-1.0)
#define pb push_back
#define vi vector<int>
#define mapii map<int , int>
#define mapci map<char, int>
#define mapsi map<string,int>
#define FOR(i,n) for(int i = 0;i<n;i++)
#define CP(n) cout<<"Case "<<n<<": "
#define fr freopen("input.txt","r",stdin)
#define fw freopen("output.txt","w",stdout)
#define MAX 1000007
#define all(x)(x.begin(),x.end())
#define debug(x,c) cout<<x<<": "<<c<<" ";
#define fast_io ios_base::sync_with_stdio(false);cin.tie(0)
using namespace std;
int main()
{
	char c;
	cin>>c;
	if(c>='A' && c<=Z)
		cout<<"A"<<endl;
	else
		cout<<"a"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:25: error: 'Z' was not declared in this scope
   22 |         if(c>='A' && c<=Z)
      |                         ^
Language: Java

import java.util.Scanner;
public class AtcoderA {

	public static void main(String[] args) {



		Scanner scan = new Scanner(System.in);

		String chara = scan.nextLine();

		if(Character.isUpperCase(chara.charAt(0))) {
			System.out.println("A");
		}else {
			System.out.println("a");
		}
		scan.close();

	}

}


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

#include <stdio.h>

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


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

#include<iostream>
using namespace std;
int main(void)
{
  int a;
  char a;
  
  printf("英文字を入力");
  cout << a;
  
  
  if(a>='a',a<='z')
    printf("a");
  else if(a>='A',a<='Z')
    printf('A');
  
#include<iostream>
using namespace std;
int main(void)
{
  char a;
  
  printf("英文字を入力");
  cout << a;
  
  
  if(a>='a',a<='z')
    printf("a");
  else if(a>='A',a<='Z')
    printf('A');
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: conflicting declaration 'char a'
    6 |   char a;
      |        ^
a.cc:5:7: note: previous declaration as 'int a'
    5 |   int a;
      |       ^
a.cc:15:12: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   15 |     printf('A');
      |            ^~~
      |            |
      |            char
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:20:1: error: a function-definition is not allowed here before '{' token
   20 | {
      | ^
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <cstdio>
#include <cstring>
#include <string>
#include <iostream>
#include <algorithm>

int main() {
	char c;
	scanf("%c", &c);
	if (c >= 'a' && c <= 'z') puts("a");
	else puts("A");
	return 0;
}#include <cstdio>
#include <cstring>
#include <string>
#include <iostream>
#include <algorithm>

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

Compiler output:
a.cc:13:2: error: stray '#' in program
   13 | }#include <cstdio>
      |  ^
a.cc:13:3: error: 'include' does not name a type
   13 | }#include <cstdio>
      |   ^~~~~~~
Language: C++

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

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

#include<iostream>
using namespace std;
int main(void)
{
  int a;
  char a;
  
  printf("英文字を入力");
  cout << a;
  
  
  if(a>='a',a<='z')
    printf("a");
  else if(a>='A',a<='Z')
    printf('A');
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: conflicting declaration 'char a'
    6 |   char a;
      |        ^
a.cc:5:7: note: previous declaration as 'int a'
    5 |   int a;
      |       ^
a.cc:15:12: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   15 |     printf('A');
      |            ^~~
      |            |
      |            char
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: Java

import java.util.Scanner;

public class Alphabet {

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

}


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

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

Compiler output:
main.c: In function 'main':
main.c:3:15: error: 'a' undeclared (first use in this function)
    3 |   scanf("%d",&a);
      |               ^
main.c:3:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
#include<string>
typedef long long ll;
const int mod = 1e9 + 7;
using namespace std;

void solve() {
	char c;
	cin >> c;
	if(isUpper(c)) cout << "A" << endl;
	else cout << "a" << endl;
}

int main() {
	ios_base :: sync_with_stdio(0);
	cin.tie(0);
	cout.precision(20);
	int t;
		solve();
	return 0;
}
 















Compiler output:
a.cc: In function 'void solve()':
a.cc:10:12: error: 'isUpper' was not declared in this scope; did you mean 'isupper'?
   10 |         if(isUpper(c)) cout << "A" << endl;
      |            ^~~~~~~
      |            isupper
Language: C++

#include<iostream>
using namespace std;
int main(void)
{
  int a;
  char a;
  
  printf("英文字を入力");
  cout << a;
  
  
  if(a>='a',a<='z')
    printf("a");
  else if(a>='A',a<='Z')
    printf('A');
  
#include<iostream>
using namespace std;
int main(void)
{
  int a;
  char a;
  
  printf("英文字を入力");
  cout << a;
  
  
  if(a>='a',a<='z')
    printf("a");
  else if(a>='A',a<='Z')
    printf('A');
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: conflicting declaration 'char a'
    6 |   char a;
      |        ^
a.cc:5:7: note: previous declaration as 'int a'
    5 |   int a;
      |       ^
a.cc:15:12: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   15 |     printf('A');
      |            ^~~
      |            |
      |            char
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:20:1: error: a function-definition is not allowed here before '{' token
   20 | {
      | ^
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include<iostream>
using namespace std;

int main(void){
	char s;
	cin >> s;
	if(isupper(s)) cout << "A\n";
	else cout << "a\n";
	return 0;
}

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

import java.util.*;

public class Solution{
public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  char value = sc.nextLine().toCharArray()[0];
  if(Character.isUpperCase(value))
    System.out.println('A');
  else
    System.out.println('a');
}
}

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

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

int main(void){
  string A;
  cin >> A;
  string B=A.ToUpper();
  if(A == B) cout << "A" << endl;
  else cout << "a" << endl;
  
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'ToUpper'
    7 |   string B=A.ToUpper();
      |              ^~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:4: error: 'a' undeclared (first use in this function)
    5 | if(a-=('a'-'A')>=0){
      |    ^
main.c:5:4: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <cstdio>
using namespace std;

int main()
{
	char a = getchar();
	if ('a' <= a && a <= 'z') puts('a');
	else puts('b');
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:40: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    7 |         if ('a' <= a && a <= 'z') puts('a');
      |                                        ^~~
      |                                        |
      |                                        char
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:8:19: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    8 |         else puts('b');
      |                   ^~~
      |                   |
      |                   char
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C

#include<stdio.h>
#include<ctype.h>
 
int main(){
  char s;
  while(scanf("%s",s)==0);
  
  if(int isupper(s)==0){
  printf("a\n");
  }else
    printf("A\n");
  
  
  
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:8:6: error: expected expression before 'int'
    8 |   if(int isupper(s)==0){
      |      ^~~
Language: Java

public static void main(String[] args) {



		Scanner scan = new Scanner(System.in);

		String chara = scan.nextLine();

		if(Character.isUpperCase(chara.charAt(0))) {
			System.out.println("A");
		}else {
			System.out.println("a");
		}
		scan.close();

	}


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

#include <stdio.h>

int main()
{
  char c;
  scanf("%c",&c);
  if (c >= 65 && <= 91)
  {
    printf("A");
  }
  else
  {
    printf("a");
  }
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected expression before '<=' token
    7 |   if (c >= 65 && <= 91)
      |                  ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 void check(char alpha) 
{ 
   if (alpha >= 'A' && alpha <= 'Z') 
        cout<< alpha << "\A"; 
  
    else (alpha >= 'a' && alpha <= 'z') 
    cout<< alpha << "\B"; 
              
int main() 
{ 
    char alpha; 
  
    alpha = 'A'; 
  
    check(alpha); 
  
    alpha = 'a'; 
  
    check(alpha); 
  
    return 0; 
}               

Compiler output:
a.cc: In function 'void check(char)':
a.cc:6:25: warning: unknown escape sequence: '\A'
    6 |         cout<< alpha << "\A";
      |                         ^~~~
a.cc:8:40: error: expected ';' before 'cout'
    8 |     else (alpha >= 'a' && alpha <= 'z')
      |                                        ^
      |                                        ;
    9 |     cout<< alpha << "\B";
      |     ~~~~                                
a.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   11 | int main()
      |         ^~
a.cc:11:9: note: remove parentheses to default-initialize a variable
   11 | int main()
      |         ^~
      |         --
a.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:12:1: error: a function-definition is not allowed here before '{' token
   12 | {
      | ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:4: error: 'a' undeclared (first use in this function)
    5 | if(a-=('a'-'A')>=0){
      |    ^
main.c:5:4: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;
int main(void)
{
  int a;
  char a;
  
  printf("英文字を入力");
  cout << a;
  
  
  if(a>='a',a<='z')
    printf("a");
  else if(a>='A',a<='Z')
    printf('A');
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: conflicting declaration 'char a'
    6 |   char a;
      |        ^
a.cc:5:7: note: previous declaration as 'int a'
    5 |   int a;
      |       ^
a.cc:15:12: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   15 |     printf('A');
      |            ^~~
      |            |
      |            char
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:15:17: error: expected '}' at end of input
   15 |     printf('A');
      |                 ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

// C++ 14
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define loop(__x, __start, __end) for(int __x = __start; __x < __end; __x++)
void solve(); int main() { solve(); return 0; }

void solve() {
  char n;
  cin >> n;
  if (isupper(n)) cout << "A" << endl;
  else cout << "a" << endl;i
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:12:28: error: 'i' was not declared in this scope
   12 |   else cout << "a" << endl;i
      |                            ^
Language: C

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

int main(){
	char c;
	scanf("%c", &c);
	if(isupper(c)){
		put('A');
	}else{
		puts('a');
	}
	
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:17: error: implicit declaration of function 'put'; did you mean 'puts'? [-Wimplicit-function-declaration]
   10 |                 put('A');
      |                 ^~~
      |                 puts
main.c:12:22: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   12 |                 puts('a');
      |                      ^~~
      |                      |
      |                      int
In file included from main.c:1:
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C

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

int main(){
  int c;
  while(scanf("%c",&c)==0);
  
  if(int isupper(int c)==0){
  printf("a\n");
  }else
    printf("A\n");
  
  
  
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:8:6: error: expected expression before 'int'
    8 |   if(int isupper(int c)==0){
      |      ^~~
Language: Java

package atcoder;

import java.util.Scanner;
public class AtcoderA {

	public static void main(String[] args) {



		Scanner scan = new Scanner(System.in);

		String chara = scan.nextLine();

		if(Character.isUpperCase(chara.charAt(0))) {
			System.out.println("A");
		}else {
			System.out.println("a");
		}
		scan.close();

	}

}


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

#pragma GCC optimize("Ofast")
#pragma GCC optimize ("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include<iostream>
typedef long long     ll;
#define fast          ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define fr            first
#define sc            second
#define com(i,n)      for(int i=0;i<n;i++)
#define dom(i,n)      for(int i=1;i<=n;i++)
#define mom(i,n)      for(int i=n;i>=0;i--)
#define sortI(a,n)    sort(a,a+n)
#define sortD(a,n)    sort(a,a+n,greater<int>())
#define sortvi(a)     sort(a.begin(),a.end())
#define sortvd(a)     sort(a.begin(),a.end(),greater<int>())
#define sumall(a,x)   accumulate(a.begin(),a.end(),x)
#define pi            3.14159265358979323846264338327950
using namespace std;
int main()
{
    string s;
    cin>>s;
    char c;
    c=s[0];
    if(c<=90 && c>=65)
        cout << "A\n";
    else
        cout << "a\n";
}


Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:4:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C

#include <stdio.h>

int main() {
    char c;
    scanf("%c",&c);
    if (c=='A'||c=='B'||c=='C'||c=='D'||c=='E'||c=='F'||c=='G'||c=='H'||c=='I'||c=='J'||c=='K'||c=='L'||c=='M'||c=='N'||c=='O'||c=='P'||c=='Q'||c=='R'||c=='S'||c=='T'||c=='U'||c=='V'||c=='W'||c=='X'||c=='Y'||c=='Z')
    {
        printf("A");
    }
    else
    {
        printf("a");
    }

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

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	char c;
	cin>>c;
	int d = c- 'A';
	%cout<<d<<endl;
	if(0<=d && d<=25) cout<<"A"<<endl;
	else if(32<=d && d<=57) cout<<"a"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before '%' token
    9 |         %cout<<d<<endl;
      |         ^