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

import java.util.Scanner;
import java.util.Arrays;
 
public class Main {
 
		public static void main(String[] args) {
	        Scanner sc = new Scanner(System.in);
	        int n = sc.nextInt();
	        int k = sc.nextInt();
			String[] strs = new String[n];
			for (int i = 0; i < n; i++) { 
				strs[i] = sc.nextLine(); 
            }
	       Arrays.sort(strs);
			String min;
	        for(int j = 0; j < k;j++){
            	min = min + strs[j]; 
            }
			System.out.println(min);
	}
}

Compiler output:
Main.java:17: error: variable min might not have been initialized
            	min = min + strs[j]; 
            	      ^
Main.java:19: error: variable min might not have been initialized
			System.out.println(min);
			                   ^
2 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;
 
public class Main {
 
		public static void main(String[] args) {
	        Scanner sc = new Scanner(System.in);
	        int n = sc.nextInt();
	        int k = sc.nextInt();
			String[] strs = new String[n];
			for (int i = 0; i < n; i++) { 
				strs[i] = sc.nextLine(); 
            }
	       Arrays.sort(strs);
			String min;
	        for(int j = 0; j < k;j++){
            	min = min + srts[j]; 
            }
			System.out.println(min);
	}
}

Compiler output:
Main.java:17: error: cannot find symbol
            	min = min + srts[j]; 
            	            ^
  symbol:   variable srts
  location: class Main
1 error
Language: Java

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

public class Main{

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


Compiler output:
Main.java:7: error: no suitable constructor found for Scanner(no arguments)
Scanner scan = new Scanner();
               ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
Main.java:8: error: cannot find symbol
string s = (scan.charAt( 0 ));
^
  symbol:   class string
  location: class Main
Main.java:8: error: cannot find symbol
string s = (scan.charAt( 0 ));
                ^
  symbol:   method charAt(int)
  location: variable scan of type Scanner
3 errors
Language: C++

#include <iostream>

signed main() {
  int n;
  std::cin >> n;

  int a[n];
  int xo = 0;
  for(int i = 0; i < n; i++) {
    std::cin >> a[i];
    xo ^= a[i];
  }

  for(int i = 0; i < n; i++)
    std::cout << a[i]^xo << " ";

  std::cout << std::endl;
  return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   15 |     std::cout << a[i]^xo << " ";
      |                       ~~ ^~ ~~~
      |                       |     |
      |                       int   const char [2]
Language: Java

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

public class Main{

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


Compiler output:
Main.java:7: error: '(' or '[' expected
Scanner scan = new Scanner;
                          ^
1 error
Language: Java

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

public class Main{

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


Compiler output:
Main.java:8: error: '(' or '[' expected
string s = (scan.charAt( 0 ));
^
1 error
Language: C++

#include <algorithm>
#include <iostream>
#include <vector
#include <numeric>
#include <string>
#include <stdio.h>
#include <set>
#include <iomanip>
using namespace std;

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

Compiler output:
a.cc:3:17: error: missing terminating > character
    3 | #include <vector
      |                 ^
Language: Java

import java.util.*;
public class alphbet{
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		if(Character.isUpperCase(in.next().charAt(0)))
			System.out.println('A');
		else
			System.out.println('a');
	}
}

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

import java.util.Scanner;
import java.util.Arrays;
 
public class Main {
 
		public static void main(String[] args) {
	        Scanner sc = new Scanner(System.in);
	        int n = sc.nextInt();
	        int k = sc.nextInt();
			String[] strs = new String[n];
			for (int i = 0; i < n; i++) { 
				strs[i] = sc.nextLine(); 
            }
	       Arrays.sort(strs);
			int min;
	        for(int j = 0; j < k;j++){
            	min = min + srts[j]; 
            }
			System.out.println(min);
	}
}

Compiler output:
Main.java:17: error: cannot find symbol
            	min = min + srts[j]; 
            	            ^
  symbol:   variable srts
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Case {
	
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		String ch = sc.next();
		
		if(ch.charAt(0)>=65 && ch.charAt(0)<=90)
			System.out.println("A");
		
		else if(ch.charAt(0)>=97 && ch.charAt(0)<=122)
			System.out.println("a");
	}

}

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

#include <iostream>
using namespace std;
int main(void){
  int α;
  cin>>α;
  if(α='A'to'Z'){
    cout<<"A";
  }
  if(α='a'to'z'){
    cout<<"a";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: unable to find character literal operator 'operator""to' with 'char' argument
    6 |   if(α='A'to'Z'){
      |        ^~~~~
a.cc:6:13: error: expected ')' before 'Z'
    6 |   if(α='A'to'Z'){
      |     ~       ^~~
      |             )
a.cc:9:8: error: unable to find character literal operator 'operator""to' with 'char' argument
    9 |   if(α='a'to'z'){
      |        ^~~~~
a.cc:9:13: error: expected ')' before 'z'
    9 |   if(α='a'to'z'){
      |     ~       ^~~
      |             )
Language: Java

import java.util.Scanner;
import java.util.Arrays;
 
public class Main {
 
		public static void main(String[] args) {
	        Scanner sc = new Scanner(System.in);
	        int n = sc.nextInt();
	        int k = sc.nextInt();
			int min;
			String[] strs = new String[n];
			for (int i = 0; i < n; i++) { 
				strs[i] = sc.nextLine(); 
            }
	       Arrays.sort(strs);
	        for(int j = 0; j < k;j++){
            	min = min + srts[j]; 
            }
			System.out.println(min);
	}
}

Compiler output:
Main.java:17: error: cannot find symbol
            	min = min + srts[j]; 
            	            ^
  symbol:   variable srts
  location: class Main
1 error
Language: Java

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

public class Main{

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


Compiler output:
Main.java:8: error: '(' or '[' expected
string s = scan.charAt( 0 );
^
1 error
Language: Java

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

public class Main{

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


Compiler output:
Main.java:8: error: '(' or '[' expected
string s = scan.charAt( 0 )
^
Main.java:8: error: ';' expected
string s = scan.charAt( 0 )
                           ^
2 errors
Language: Java

class Alphabet{
Scan scan = new Scan(System.in);
if(Character.isUpperCase(scan.charAt()){
  System.out.println("A");
}else {
  System.out.println("a");
  }
}

Compiler output:
Main.java:3: error: illegal start of type
if(Character.isUpperCase(scan.charAt()){
^
Main.java:3: error: <identifier> expected
if(Character.isUpperCase(scan.charAt()){
                        ^
Main.java:3: error: <identifier> expected
if(Character.isUpperCase(scan.charAt()){
                                    ^
Main.java:5: error: illegal start of type
}else {
 ^
4 errors
Language: C++

#include<iostream>
using namespace std;
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:6:13: error: no matching function for call to 'isupper(std::string&)'
    6 |   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/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 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/c++/14/bits/localefwd.h:42,
                 from /usr/include/c++/14/ios:43:
/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 <stdio.h>

int main(void)
{
  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:8:30: error: expected ';' before 'printf'
    8 |   else ('A' <= a && a <= 'Z') printf("A\n");
      |                              ^~~~~~~
      |                              ;
Language: C

#include<stdio.h>
int main()
{ char a;
scanf("%c",&a);
if(a-z)
printf("the alphabet is lowercase");


else()
{
    printf("the alphabet is uppercase");
return 0;
    
}

Compiler output:
main.c: In function 'main':
main.c:5:6: error: 'z' undeclared (first use in this function)
    5 | if(a-z)
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:6: error: expected expression before ')' token
    9 | else()
      |      ^
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
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:6:13: error: no matching function for call to 'isupper(std::string&)'
    6 |   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>
using namespace std;
int main (){
  int α;
  α = 'a'-'z' || 'A'-'Z'
  
  if(α >= 'a' && α <='z'){
    cout << "a"<< endl;
  }
  else {
    cout << "A" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: expected ';' before 'if'
    5 |   α = 'a'-'z' || 'A'-'Z'
      |                         ^
      |                         ;
    6 | 
    7 |   if(α >= 'a' && α <='z'){
      |   ~~                     
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
Language: C

def exchange
    input = gets
    if input >= 'A' && input <= 'Z'
      puts 'A'
    else if input>= 'a' && input <= 'z'
      puts 'a'
    else
      puts 'error'
    end
end

puts exchange

Compiler output:
main.c:1:1: error: unknown type name 'def'
    1 | def exchange
      | ^~~
main.c:2:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'input'
    2 |     input = gets
      |     ^~~~~
main.c:8:12: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    8 |       puts 'error'
      |            ^~~~~~~
Language: Java

import java.util.Scanner;
import java.util.Arrays;
 
public class Main {
 
		public static void main(String[] args) {
	        Scanner sc = new Scanner(System.in);
	        int n = sc.nextInt();
	        int k = sc.nextInt();
			String[] strs = new String[n];
			for (int i = 0; i < n; i++) { 
				strs[i] = sc.nextLine(); 
            }
	       Arrays.sort(strs);
	        for(int j = 0; j < k;j++){
            	int min += srts[j]; 
            }
			System.out.println(min);
	}
}

Compiler output:
Main.java:16: error: ';' expected
            	int min += srts[j]; 
            	       ^
Main.java:16: error: not a statement
            	int min += srts[j]; 
            	               ^
2 errors
Language: Java

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

public class Main{

public static void main(String[] args){
Scanner scan = new Scanner

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


Compiler output:
Main.java:9: error: '(' or '[' expected
if(Character.isUpperCase(scan.charAt( 0 )))
^
1 error
Language: C++


    #include <bits/stdc++.h>
    #include <cstdio>
    #include <cstring>
    #include <cmath>
    #include <cstring>
    #include <chrono>
    #include <complex>
    #define endl "\n"
    #define int long long int
    #define vi vector<int>
    #define vll vector<ll>
    #define vvi vector < vi >
    #define pii pair<int,int>
    #define pll pair<long long, long long>
    #define mod 1000000007
    #define inf 1000000000000000001;
    #define all(c) c.begin(),c.end()
    #define mp(x,y) make_pair(x,y)
    #define mem(a,val) memset(a,val,sizeof(a))
    #define eb emplace_back
    #define f first
    #define s second

    using namespace std;
int power(int base, int exp)
{
    if (exp == 0)
       return 1;
    else if (exp == 1)
       return base;
    else
    {
       int calc;
       if (exp % 2 == 0)
       {
         calc = power(base, exp/2);
         calc =(calc* calc)%mod;
       }
       else
       {
         calc = (base*power(base, exp-1))%mod;
       }
       return calc%mod;
    }
}
    int32_t main()
    {
        std::ios::sync_with_stdio(false);
        char c;
        cin>>c;
        if(c>='A' && a<='Z')
            cout<<'A'<<endl;
        else
            cout<<'a'<<endl;
        return 0;
    }


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

#include <iostream>
using namespace std;

int main(){
  int α;
  cin>>α
  if(α='A'-'Z'){
    cout<<"A";
  }
  else {
    cout<<"a";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'if'
    6 |   cin>>α
      |         ^
      |         ;
    7 |   if(α='A'-'Z'){
      |   ~~     
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  int α;
  α = ('a'-'z' || 'A'-'Z');
  
  if(α >= 'a' && α <='z'){
    cout << a << endl;
  }
  else {
    cout << A << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'a' was not declared in this scope
    8 |     cout << a << endl;
      |             ^
a.cc:11:13: error: 'A' was not declared in this scope
   11 |     cout << A << endl;
      |             ^
Language: Java

import java.util.Scanner;
import java.lang.Object;
package com.example.mynavi.string;

public class Main{

public static void main(String[] args){
Scanner scan = new Scanner

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


Compiler output:
Main.java:3: error: class, interface, enum, or record expected
package com.example.mynavi.string;
^
Main.java:10: error: '(' or '[' expected
if( Character.isUpperCase( scan.charAt( 0 )))
^
2 errors
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:8: error: cannot find symbol
    if(Character.isupperCase(str.charAt(0))){
                ^
  symbol:   method isupperCase(char)
  location: class Character
1 error
Language: C

#include<stdio.h>
int main()
{ char a;
scanf("%c",&a);
if(a>0)
printf("the alphabet is uppercase");


else()
{
    printf("the alphabet is lowercase");
return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:9:6: error: expected expression before ')' token
    9 | else()
      |      ^
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  int α;
  α = 'a'-'z' || 'A'-'Z'
  
  if(α >= 'a' && α <='z'){
    cout << a << endl;
  }
  else {
    cout << A << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: expected ';' before 'if'
    5 |   α = 'a'-'z' || 'A'-'Z'
      |                         ^
      |                         ;
    6 | 
    7 |   if(α >= 'a' && α <='z'){
      |   ~~                     
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
a.cc:11:13: error: 'A' was not declared in this scope
   11 |     cout << A << endl;
      |             ^
Language: Java

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

Compiler output:
Main.java:8: error: unclosed character literal
    if(Character.isupperCase('str')){
                             ^
Main.java:8: error: unclosed character literal
    if(Character.isupperCase('str')){
                                 ^
Main.java:8: error: not a statement
    if(Character.isupperCase('str')){
                               ^
Main.java:10: error: 'else' without 'if'
    }else{
     ^
4 errors
Language: Java

import java.util.*;

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

Compiler output:
Main.java:8: error: unclosed character literal
    if(Character.isupperCase('str'){
                             ^
Main.java:8: error: unclosed character literal
    if(Character.isupperCase('str'){
                                 ^
Main.java:8: error: not a statement
    if(Character.isupperCase('str'){
                               ^
Main.java:10: error: 'else' without 'if'
    }else{
     ^
4 errors
Language: Java

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

class Main{

public static void main(String[] args){
Scanner scan = new Scanner

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


Compiler output:
Main.java:9: error: '(' or '[' expected
if( Character.isUpperCase( scan.charAt( 0 ))
^
Main.java:9: error: ')' expected
if( Character.isUpperCase( scan.charAt( 0 ))
                                            ^
2 errors
Language: Java

import java.util.*;
 public class main
 {
   public static void main(String args[])
   { 
     Scanner s = new Scanner(System.in);
     int n = s.nextInt();
     int k = s.nextInt();
     int i,j,swap,sum=0;
     int p[] = new int[n];
     for(i=0;i<n;i++)
     {
       p[i] = s.nextInt();
     }
     for(i=0;i<n;i++)
     {
       for(j=i+1;j<n-1;j++)
       {
         if(p[i]>p[j])
         {
           swap = p[i];
           p[i] = p[j];
           p[j] = swap;
         }
       }
     }
     for(i=0;i<k;i++)
     {
       sum+=p[i];
     }
   }
 }  

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

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

Compiler output:
Main.java:5: error: cannot find symbol
   char ch = sc.next.charAt(0);
               ^
  symbol:   variable next
  location: variable sc of type Scanner
1 error
Language: Java

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

class Main{

public static void main(String[] args){
Scanner scan = new Scanner

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


Compiler output:
Main.java:9: error: '(' or '[' expected
if( Character.isUpperCase( scan.charAt( 0 ) ) ) 
^
1 error
Language: C++

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

int main()
{
	string a;
	
	cin>>a;
	
	if(65<=a&&a<=90)
	    cout<<"A";
	else
	    cout<<"a";
	    
    return 0
}

Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++>h>
      |                       ^
a.cc:1:9: fatal error: bits/stdc++>: No such file or directory
    1 | #include<bits/stdc++>h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: Java

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

public static void main(String[] args){
Scanner scan = new Scanner

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


Compiler output:
Main.java:4: 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)
Main.java:7: error: '(' or '[' expected
if( Character.isUpperCase( scan.charAt( 0 ) ) ) 
^
2 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected expression before '>' token
    8 |   if((x=>'a') && (x<='z')){
      |         ^
main.c:10:15: error: expected expression before '>' token
   10 |   }else if((x=>'A') && (x<='Z')){
      |               ^
Language: Java

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

public static void main(String[] args){
Scanner scan = new Scanner

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


Compiler output:
Main.java:4: 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)
Main.java:7: error: '(' or '[' expected
if( Character.isUpperCase( scan.charAt( 0 ) ) ) {
^
2 errors
Language: C++

#include <iostream>
using namespace std;
int main(){
  int α;
  cin >>α
    if(α='A'-'Z'){
      cout<<A;
    }
  else {
    cout<<a;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected ';' before 'if'
    5 |   cin >>α
      |          ^
      |          ;
    6 |     if(α='A'-'Z'){
      |     ~~    
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else {
      |   ^~~~
a.cc:10:11: error: 'a' was not declared in this scope
   10 |     cout<<a;
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
    char ch;
  cin>>ch;
  char c;
  c= (ch>='A'&&ch<='Z')?cout<<"A":cout<<"a";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: cannot convert 'std::basic_ostream<char>' to 'char' in assignment
    8 |   c= (ch>='A'&&ch<='Z')?cout<<"A":cout<<"a";
      |      ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
      |                        |
      |                        std::basic_ostream<char>
Language: Java

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

public static void main(String[] args){
Scanner scan = new Scanner

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


Compiler output:
Main.java:2: error: ';' expected
import java.lang.Object
                       ^
Main.java:4: 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)
Main.java:7: error: '(' or '[' expected
if( Character.isUpperCase( str.charAt( 0 ) ) ) {
^
3 errors
Language: C++

#pragma GCC optimize("O3") 

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

typedef long long int ll;
typedef unsigned long long int ull;
typedef long double ld;

#define test(t)		int t; cin >> t; while(t--)
#define f(i, a, b)	for(int (i) = (a); (i) < (b); ++(i))
#define all(a)		(a).begin(), (a).end()
#define endl 		"\n"
#define maxvec(vec)     *max_element(all(vec))
#define minvec(vec)     *min_element(all(vec))
#define maxarr(arr)     *max_element(arr, arr + n)
#define minarr(arr)     *min_element(arr, arr + n)
#define deb(x)		cout << #x << " is " << x << endl;
#define deb2(x,y)	cout << #x << " is " << x << " and " <<  #y << " is " << y << endl;
#define deba(arr)	cout << #arr << " ~ [ "; for(auto n: arr) cout << n << " "; cout << "]" << endl;
#define debap(arr)	cout << #arr << " ~ [ "; for(auto n: arr) cout << n.first << "-" << n.second << " "; cout << "]" << endl;
#define fast 		ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

#define mx9		1000000007
#define mx7		10000007
#define mx6		1000006
#define mx5		200005
#define inf		1<<30                                 
#define eps		1e-9
#define mod		1000000007
#define PI		3.141592653589793238462643383279502884L

void solve()
{
    string s;
    cin >> s;
    if(int(s) >= 65 && s[i] <= 90)
        cout << 'A' << endl;
    else
        cout << 'b' << endl;
}

int main()
{
    fast;
    // test(t)
        solve();
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:37:8: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   37 |     if(int(s) >= 65 && s[i] <= 90)
      |        ^~~~~~
a.cc:37:26: error: 'i' was not declared in this scope
   37 |     if(int(s) >= 65 && s[i] <= 90)
      |                          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected expression before '>' token
    8 |   if((x=>'a') && (x<='z')){
      |         ^
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:10:15: error: expected expression before '>' token
   10 |   }else if((x=>'A') && (x<='Z')){
      |               ^
main.c:11:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |     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<bits/stdc++.h>
#define rep(i,n)  for(int i = 0; i < int 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:38: error: expected primary-expression before 'int'
    2 | #define rep(i,n)  for(int i = 0; i < int n; i++);
      |                                      ^~~
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,n){
      |    ^~~
a.cc:2:38: error: expected ';' before 'int'
    2 | #define rep(i,n)  for(int i = 0; i < int n; i++);
      |                                      ^~~
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,n){
      |    ^~~
a.cc:2:38: error: expected primary-expression before 'int'
    2 | #define rep(i,n)  for(int i = 0; i < int n; i++);
      |                                      ^~~
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,n){
      |    ^~~
a.cc:2:38: error: expected ')' before 'int'
    2 | #define rep(i,n)  for(int i = 0; i < int 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:45: note: in definition of macro 'rep'
    2 | #define rep(i,n)  for(int i = 0; i < int n; i++);
      |                                             ^
Language: Java

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

Compiler output:
Main.java:6: error: char cannot be dereferenced
    if(ch.charAt(0).isUpperCase())
                   ^
1 error
Language: Java

import java.util.Scanner;
 
 
public class Q6 {
 
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int total = scan.nextInt();
        int size = scan.nextInt();
        int price = 0;
        int[] prices = new int[size];
        while(total>0){
          boolean hasChanged = false;
          int cand = scan.nextInt();
          for(int i=0;i<prices.length;i++){
            if(prices[i] == 0){
              prices[i] = cand;
              hasChanged = true;
            break;
            }
            }
          if(hasChanged){
        	  total--;
            continue;
          }
          
           for(int i=0;i<prices.length;i++){
            if(prices[i]>cand){
              prices[i] = cand;
            break;
            }
            }
           total--;
        }
      
        
        int result = 0;
		for(int i=0;i<prices.length;i++){
          result += prices[i];
        }
        
				
		System.out.println(result);
 
	}
 
}


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

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

}

}

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

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

Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected expression before '>' token
   11 |   if((x=>"a") && (x<="z")){
      |         ^
main.c:11:20: warning: comparison between pointer and integer
   11 |   if((x=>"a") && (x<="z")){
      |                    ^~
main.c:13:15: error: expected expression before '>' token
   13 |   }else if((x=>"A") && (x<="Z")){
      |               ^
main.c:13:26: warning: comparison between pointer and integer
   13 |   }else if((x=>"A") && (x<="Z")){
      |                          ^~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) = for(int i = 0; i < int 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 < int 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 < int 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 < int n; i++);
      |                                   ^
a.cc:2:39: error: expected primary-expression before 'int'
    2 | #define rep(i,n) = for(int i = 0; i < int n; i++);
      |                                       ^~~
a.cc:11:4: note: in expansion of macro 'rep'
   11 |    rep(i,n){
      |    ^~~
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);
char ch = sc.nextChar();
if(ch.isUpper())
System.out.println("A");
else
System.out.println("a");

}

}

Compiler output:
Main.java:5: error: cannot find symbol
char ch = sc.nextChar();
            ^
  symbol:   method nextChar()
  location: variable sc of type Scanner
Main.java:6: error: char cannot be dereferenced
if(ch.isUpper())
     ^
2 errors
Language: Java

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

}

}

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

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected expression before '>' token
    8 |   if((x=>"a") && (x<="z")){
      |         ^
main.c:8:20: warning: comparison between pointer and integer
    8 |   if((x=>"a") && (x<="z")){
      |                    ^~
main.c:10:15: error: expected expression before '>' token
   10 |   }else if((x=>"A") && (x<="Z")){
      |               ^
main.c:10:26: warning: comparison between pointer and integer
   10 |   }else if((x=>"A") && (x<="Z")){
      |                          ^~
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:12:22: error: 'i' was not declared in this scope
   12 |      if(alpha = A.at(i))
      |                      ^
a.cc:14:22: error: 'i' was not declared in this scope
   14 |      if(alpha = a.at(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<stdio.h>

int main(void)
{
  int size,reps;
  scanf("%d",&size);
  scanf("%d",&reps);
  int i=0;
  int arr[size];
  
  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:37:6: error: expected declaration or statement at end of input
   37 |      printf("%d",sum);
      |      ^~~~~~
main.c:37:6: error: expected declaration or statement at end of input
Language: C++

#include <iostream>
using namespace std;

int main(){
  cahr x;
  cin>>x;
  if(isupper(x)){
  	cout<<"A";
  }else{
  	cout<<"a";
  }
  
}

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

using namespace std;

int main () {
  char a;
  cin>>a;
  for (char w='A';w<='Z';w++) {
    if (a==w) {
      cout<<"A"<<endl;
    }
  }
  for (char w='a';w<='z';w++) {
    if (a==w) {
      cout<<"a"<<endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:7: error: 'cout' was not declared in this scope
    8 |       cout<<"A"<<endl;
      |       ^~~~
a.cc:8:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |       cout<<"A"<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:13:7: error: 'cout' was not declared in this scope
   13 |       cout<<"a"<<endl;
      |       ^~~~
a.cc:13:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:18: error: 'endl' was not declared in this scope
   13 |       cout<<"a"<<endl;
      |                  ^~~~
a.cc:13:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>
#include<ctype.h>
 
int main(){
  char s[1];
  while(scanf("%s",s[0])==0);
  
  if(s[0]=='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 if(s[0]=='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");
  }
  

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected declaration or statement at end of input
   13 |   }
      |   ^
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:37:6: error: expected declaration or statement at end of input
   37 |      printf("%d",sum);
      |      ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
 int α;
 cin>>α;
  if(α='A'-'Z'){
   cout<<A
  }
  else{
   cout<<a
  }
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'A' was not declared in this scope
    7 |    cout<<A
      |          ^
a.cc:10:10: error: 'a' was not declared in this scope
   10 |    cout<<a
      |          ^
Language: Java

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

	}
	
	
	
				
		
	}
}

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

import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int total = scan.nextInt();
        int size = scan.nextInt();
        int price = 0;
        int[] prices = new int[size];
        while(scan.hasNext()){
          boolean hasChanged = false;
          int cand = scan.nextInt();
          for(int i=0;i<prices.length;i++){
            if(prices[i] == 0){
              prices[i] = cand;
              hasChaned = true;
            break;
            }
            }
          if(hasChanged)
            continue;
          
           for(int i=0;i<prices.length;i++){
            if(prices[i]>cand){
              prices[i] = cand;
            break;
            }
            }
        }
      int result = 0;
		for(int i=0;i<prices.length;i++){
          result += prices[i];
        }
        
				
		System.out.println(result);

	}

}


Compiler output:
Main.java:19: error: cannot find symbol
              hasChaned = true;
              ^
  symbol:   variable hasChaned
  location: class Main
1 error
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected expression before '>' token
    8 |   if((x=>"a") && (x<="z"){
      |         ^
main.c:8:20: warning: comparison between pointer and integer
    8 |   if((x=>"a") && (x<="z"){
      |                    ^~
main.c:8:26: error: expected ')' before '{' token
    8 |   if((x=>"a") && (x<="z"){
      |     ~                    ^
      |                          )
main.c:14:1: error: expected expression before '}' token
   14 | }
      | ^
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:38:4: error: expected declaration or statement at end of input
   38 |    }
      |    ^
Language: Java

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

Compiler output:
Main.java:4: error: cannot find symbol
    if(Character.isUpperCase(str.CharAt(0))){
                                ^
  symbol:   method CharAt(int)
  location: variable str of type String
1 error