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

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


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

Compiler output:
a.cc:2:17: error: 'sed' is not a namespace-name
    2 | using namespace sed;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << 'A' << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << 'A' << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << 'a' << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout << 'a' << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  char s;
   cin >> s;
  if(s>='A' && s<='Z'){
    cout << 'A' << endl;
    else{
      cout << 'A' << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected '}' before 'else'
    8 |     else{
      |     ^~~~
a.cc:6:23: note: to match this '{'
    6 |   if(s>='A' && s<='Z'){
      |                       ^
a.cc: At global scope:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  char s;
   cin >> s;
  if(s>='A' && s<='Z'){
    cout << 'A' << endl;
  }
    else{
      cout << 'A' << endl;
    }
  }
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 int main() {
  char c;
  cin >> c;
  if (s>='A' && s=<'Z'){
    cout << "a" << endl;
  }
  else {
    cout << "A" << endl;
  }
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 's' was not declared in this scope
    9 |   if (s>='A' && s=<'Z'){
      |       ^
a.cc:9:19: error: expected primary-expression before '<' token
    9 |   if (s>='A' && s=<'Z'){
      |                   ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int 

Compiler output:
a.cc: In function 'int main()':
a.cc:4:6: error: expected unqualified-id at end of input
    4 |   int
      |      ^
a.cc:4:6: error: expected '}' at end of input
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
int main()
{
  char ch;
  cin>>ch;
  if(isupper(ch))
    cout<<"A";
  else
    cout<<"a";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>ch;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"A";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"a";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
int main()
{
  char ch;
  cin>>ch;
  if(isupper(ch))
    cout<<"a";
  else
    cout<<"A";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>ch;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"a";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"A";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:35: error: expected ';' before 'else'
    5 |     if(a>=65&&a<=90) printf("A\n")
      |                                   ^
      |                                   ;
    6 |     else printf("a\n");
      |     ~~~~
Language: Java

iimport java.util.Scanner;



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

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
iimport java.util.Scanner;
^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
public static void main(Stirng[] args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:16: error: reached end of file while parsing
  }
   ^
3 errors
Language: C++

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

void main(){
  std::string str;
  cin >> str;
  cout << "\n";
  int n = (int)str.c_str();
  std::string ans;
  if (n >= 65 && n <= 90){
  	ans = "A";
  }else if (n >= 97 && n <= 122){
    ans = "a";
  }
  printf("%s", ans.c_str())
}


Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> str;
      |   ^~~
      |   std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << "\n";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:11: error: cast from 'const char*' to 'int' loses precision [-fpermissive]
    9 |   int n = (int)str.c_str();
      |           ^~~~~~~~~~~~~~~~
a.cc:16:28: error: expected ';' before '}' token
   16 |   printf("%s", ans.c_str())
      |                            ^
      |                            ;
   17 | }
      | ~
Language: Java

String mozi = Input.String();

if(Character.isLowerCase(mozi)==true){
 System.out.println("a");
}
else{
  System.out.println("A");
}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
String mozi = Input.String();
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
if(Character.isLowerCase(mozi)==true){
^
Main.java:5: error: class, interface, enum, or record expected
}
^
Main.java:8: error: class, interface, enum, or record expected
}
^
4 errors
Language: C++

#include <bits/stdc++.h>

int32_t main() {
  char c;
  scanf("%c", &c);

  printf("%c\n", c > 'Z' : 'a' : 'A');

  return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:7:25: error: expected ')' before ':' token
    7 |   printf("%c\n", c > 'Z' : 'a' : 'A');
      |         ~               ^~
      |                         )
Language: C

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

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

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String a = scan.nextLine();
    
    if(a.equals("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")){
      System.out.println("a");
    }else{
      System.out.println("A");
    }
    
  }
}

Compiler output:
Main.java:3: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner scanner = new Scanner(System.in);
                          ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
    String a = scan.nextLine();
               ^
  symbol:   variable scan
  location: class Main
Main.java:6: error: method equals in class String cannot be applied to given types;
    if(a.equals("a","b","c","d","e","f","g","h","i","j","k",
        ^
  required: Object
  found:    String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String
  reason: actual and formal argument lists differ in length
4 errors
Language: Java

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    String a = scan.nextLine();
    
    if(a.equals("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"){
      System.out.println("a")
    }else{
      System.out.println("A")
    }
    
  }
}

Compiler output:
Main.java:6: error: ')' expected
    if(a.equals("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.java:7: error: ';' expected
      System.out.println("a")
                             ^
Main.java:9: error: ';' expected
      System.out.println("A")
                             ^
3 errors
Language: C++

int main()
	{
		char betu;
		scanf_s("%c", &betu);
		if(islower(betu))
			 {
			printf("a");
			 }
		else
		{
			printf("A");

		}
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'scanf_s' was not declared in this scope
    4 |                 scanf_s("%c", &betu);
      |                 ^~~~~~~
a.cc:5:20: error: 'islower' was not declared in this scope
    5 |                 if(islower(betu))
      |                    ^~~~~~~
a.cc:7:25: error: 'printf' was not declared in this scope
    7 |                         printf("a");
      |                         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:11:25: error: 'printf' was not declared in this scope
   11 |                         printf("A");
      |                         ^~~~~~
a.cc:11:25: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iostream>
#include <locale>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected '}' before 'else'
   10 |     else {
      |     ^~~~
a.cc:8:18: note: to match this '{'
    8 |   if(isupper(c)) {
      |                  ^
Language: C

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:1: error: 'else' without a previous 'if'
    8 | else
      | ^~~~
Language: Java

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

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


Compiler output:
Main.java:7: error: cannot find symbol
      	char[] c = s.toCharArray();
      	            ^
  symbol:   method toCharArray()
  location: variable s of type Scanner
1 error
Language: Java

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

public class Main{
	public static void main(String[] args){
    	Scanner s = new Scanner(System.in);
      	char[] c = s.toCharArray();
      	if (Character.isUpperCase(c)){
          	System.out.println('A');
        }else{
          System.out.println('a');
        }}}


Compiler output:
Main.java:7: error: cannot find symbol
      	char[] c = s.toCharArray();
      	            ^
  symbol:   method toCharArray()
  location: variable s of type Scanner
Main.java:8: error: no suitable method found for isUpperCase(char[])
      	if (Character.isUpperCase(c)){
      	             ^
    method Character.isUpperCase(char) is not applicable
      (argument mismatch; char[] cannot be converted to char)
    method Character.isUpperCase(int) is not applicable
      (argument mismatch; char[] cannot be converted to int)
2 errors
Language: Java

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

public class Main{
	public static void main(String[] args){
    	Scanner s = new Scanner(System.in);
      	char[] s = str.toCharArray();
      	if (Character.isUpperCase(s)){
          	System.out.println('A');
        }else{
          System.out.println('a');
        }}}


Compiler output:
Main.java:7: error: variable s is already defined in method main(String[])
      	char[] s = str.toCharArray();
      	       ^
Main.java:7: error: cannot find symbol
      	char[] s = str.toCharArray();
      	           ^
  symbol:   variable str
  location: class Main
Main.java:8: error: no suitable method found for isUpperCase(char[])
      	if (Character.isUpperCase(s)){
      	             ^
    method Character.isUpperCase(char) is not applicable
      (argument mismatch; char[] cannot be converted to char)
    method Character.isUpperCase(int) is not applicable
      (argument mismatch; char[] cannot be converted to int)
3 errors
Language: Java

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

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

Compiler output:
Main.java:7: error: no suitable method found for isUpperCase(Scanner)
      	if (Character.isUpperCase(s)){
      	             ^
    method Character.isUpperCase(char) is not applicable
      (argument mismatch; Scanner cannot be converted to char)
    method Character.isUpperCase(int) is not applicable
      (argument mismatch; Scanner cannot be converted to int)
1 error
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
  char c;
  cin>>c;
  if(c<=90) cout << 'A\n'
    else cout << 'a\n'
}

Compiler output:
a.cc:9:21: warning: multi-character character constant [-Wmultichar]
    9 |   if(c<=90) cout << 'A\n'
      |                     ^~~~~
a.cc:10:18: warning: multi-character character constant [-Wmultichar]
   10 |     else cout << 'a\n'
      |                  ^~~~~
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before 'else'
    9 |   if(c<=90) cout << 'A\n'
      |                          ^
      |                          ;
   10 |     else cout << 'a\n'
      |     ~~~~
Language: C++

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

int main(){
int n,sum=0,a,b;
unordered_map<int,int> temp;
cin>>n;
int a[n];
for(int i=0;i<n;i++){
	cin>>a[i];
	sum=sum+a[i];
	temp[a[i]]++;
}
int q;
cin>>q;
while(q--){
	cin>>a>>b;
	sum=sum-a*temp[a];
	sum=sum+b*temp[a];
	tem[b]=temp[b]+temp[a];
	temp[a]=0;
	cout<<sum<<endl;
	
}
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: conflicting declaration 'int a [n]'
    8 | int a[n];
      |     ^
a.cc:5:13: note: previous declaration as 'int a'
    5 | int n,sum=0,a,b;
      |             ^
a.cc:10:15: error: invalid types 'int[int]' for array subscript
   10 |         cin>>a[i];
      |               ^
a.cc:11:18: error: invalid types 'int[int]' for array subscript
   11 |         sum=sum+a[i];
      |                  ^
a.cc:12:15: error: invalid types 'int[int]' for array subscript
   12 |         temp[a[i]]++;
      |               ^
a.cc:20:9: error: 'tem' was not declared in this scope; did you mean 'temp'?
   20 |         tem[b]=temp[b]+temp[a];
      |         ^~~
      |         temp
Language: C

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

int main() {
  char a;
  cin >> a;
  if (islower(a)) cout << 'a' << '\n';
  else cout << 'A' << '\n';
  return 0;
}

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

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

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

    string small = "abcdefghijklmnopqrstuvwxyz";

    for (char ch : small)
    {
        if (a == ch)
        {
            cout << 'a' << endl;
            return 0;
        }
    }

    cout << 'A' << endl;
}

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

import java.util.Scanner;

public class prbmA {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String a = s.nextLine();
        if(a.charAt(0)>='A'&&a.charAt(0)<='Z') System.out.println('A');
        else if(a.charAt(0)>='a'&&a.charAt(0)<='z') System.out.println('a');
    }
}

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

#include<iostream>
#include<string>
int main(){
  std::string str;
  std::cin>>str;
  if(std::isupper(str)){
    std::cout<<"A"<<std::endl;
  }else 
    std::cout<<"a"<<std::endl;
  return 0;

}

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

//Abhinav ---IIIT_A
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define pb push_back
#define ff first
#define ss second
#define f(i,x,n) for(int i=x;i<(int)n;++i)
#define vpii vector<pair<int,int>> 
ld pie=3.141592653589793238462643383279;
int mod=1e9+7;
int dx[]={-1,1,0,0};
int dy[]={0,0,1,-1};


int dig(int a){
  int r=0;
  while(a!=0){
    int xp=a%10;
    a/=10; if(xp==1) ++r;
  }
  return r;
}

int fact[2000005];
int infact[2000005];

int inv(int a){
  int y=mod-2;
  int r=1;
  while(y!=0){
    if(y&1){
      r*=a; r%=mod;
    }
    y/=2; a*=a; a%=mod;
  }
  return r;
}

int po(int a,int y){
  int r=1;
  while(y!=0){
    if(y&1){
      r*=a; r%=mod;
    }
    y/=2; a*=a; a%=mod;
  }
  return r; 
}

void facto(){
  fact[0]=1;
  f(i,1,2000005) {fact[i]=i*fact[i-1]; fact[i]%=mod;}
  f(i,0,2000005) infact[i]=inv(fact[i]); 
}

int nck (int n,int k){
  if(k<0 || k>n) return 0;
  int ret=fact[n]; ret*=infact[k]; ret%=mod;
  ret*=infact[n-k]; ret%=mod;
  return ret;
}
void q1(){
  string s; cin>>s;
  if(s>="a" && s<="z") cout<<"a";
  else cout<<"A";
}
void q2(){
  int n,k; cin>>n>>k;
  int a[n]; f(i,0,n) cin>>a[i];
  sort(a,a+n);
  int s=0;
  f(i,0,k)s+=a[i];
  cout<<s;
}
void q3(){
  string ret="";
  int a; cin>>a;
  while(a!=0){
    a--;
    ret+=(a%26 +'a');
    a/=26;
  }
  reverse(ret.begin(),ret.end());
  cout<<ret;
}
void q4(){
  int n; cin>>n;
   int a[100005]={0};
   int s=0;
  f(i,0,n){
    int x; cin>>x;
    s+=x;
    a[x]++;
  }
  int q; cin>>q;
  while(q--){
    int b,c; cin>>b>>c;
    s-=a[b]*b;
    s+=a[b]*c;
    a[c]+=a[b];
    a[b]=0;
    cout<<s<<"\n";
  }
 
}
void q5(){
  int n; cin>>n;
  int x=0;
  int a[n]; f(i,0,n){
    cin>>a[i];
    x^=a[i];
  } 
   f(i,0,n) cout<<x^a[i]<<" ";
}
int32_t main(){
#ifndef ONLINE_JUDGE
  freopen("input.txt","r",stdin);
  freopen("output.txt","w",stdout);
#endif
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  q1();
  return 0;
  facto();
  int k; cin>>k;
  string s; cin>>s;
  int l=k+s.size();
  int xp=s.size();
  // total = 26^l - those which do not contain subsequence
  // --- i= 0 to  xp-1 prefix present as subseqeunce and remaining have 25^(l-i)
  int ret=1;
  f(i,0,l){
    ret*=26; ret%=mod;
  }
  int sub=0;

  f(i,0,xp){
    // l choose i
    sub+= (nck(l,i)*po(25,l-i));
    sub%=mod; 
  }

  cout<<((ret-sub)%mod + mod) %mod <<"\n";
  return 0;
}


Compiler output:
a.cc: In function 'void q5()':
a.cc:115:25: error: invalid operands of types 'long long int' and 'const char [2]' to binary 'operator<<'
  115 |    f(i,0,n) cout<<x^a[i]<<" ";
      |                     ~~~~^~~~~
      |                        |  |
      |                        |  const char [2]
      |                        long long int
Language: C++

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

int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);

  char a;
  cin >> a;
  if (a >= 'a' && a <= 'z')
    cout << 'a' << endl;
  if (a >= 'A' && A <= 'Z')
    cout << 'A' << endl;

  return 0;
}

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

#include<bits/stdc++.h>

using namespace std;

#define FastIO ios_base :: sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define read(in) freopen("Input.txt","r",stdin)
#define write(out) freopen("Ouput.txt","w",stdout)
#define pf printf
#define sf scanf
#define fr(i,n) for(i=1 ; i<=n ; i++)
#define fr1(i,x,n) for(i=x ; i<=n ; i++)
#define sf1(val) scanf("%lld",&val)
#define sf2(val1,val2) scanf("%lld %lld",&val1,&val2)
#define INF 999999999999999999
#define Pi 2*acos(0.0)
#define len 200000

typedef long long int lli;

lli 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,sum=0,total=0,res=0,ans=0;

int main()
{
    //FastIO;

    //read(in);
  
  	char ch;	sc("%c",&ch);
  
  	if(ch>='A' && ch<='Z') pf("A\n");
  	else pf("a\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:25: error: 'sc' was not declared in this scope; did you mean 's'?
   28 |         char ch;        sc("%c",&ch);
      |                         ^~
      |                         s
Language: C++

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

typedef long long ll;
typedef pair<int,int> P;
int dx[] = {-1, 1, 0,  0};
int dy[] = { 0, 0, 1, -1};

 
int main(){
  char a, ans;
  cin >> a;
  if(0<=a-' && a-'a'<=26) ans = 'a';
  else ans = 'A';
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc:13:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   13 |   if(0<=a-' && a-'a'<=26) ans = 'a';
      |           ^~~~~~~~~
a.cc:13:20: warning: multi-character literal with 12 characters exceeds 'int' size of 4 bytes
   13 |   if(0<=a-' && a-'a'<=26) ans = 'a';
      |                    ^~~~~~~~~~~~~~~
a.cc:13:35: warning: missing terminating ' character
   13 |   if(0<=a-' && a-'a'<=26) ans = 'a';
      |                                   ^
a.cc:13:35: error: missing terminating ' character
   13 |   if(0<=a-' && a-'a'<=26) ans = 'a';
      |                                   ^~
a.cc: In function 'int main()':
a.cc:13:11: error: unable to find character literal operator 'operator""a' with 'int' argument
   13 |   if(0<=a-' && a-'a'<=26) ans = 'a';
      |           ^~~~~~~~~
a.cc:15:22: error: expected ')' before ';' token
   15 |   cout << ans << endl;
      |                      ^
      |                      )
a.cc:13:5: note: to match this '('
   13 |   if(0<=a-' && a-'a'<=26) ans = 'a';
      |     ^
Language: C++

#include<bits/stdc++.h>

typedef double          D;
typedef long long int   LL;
typedef long double     LD;
#define OR              ||
#define AND             &&
#define nl              '\n'
#define S               string
#define inf             INT_MAX
#define SQR(a)          (a) * (a)
#define pb              push_back
#define GCD(a, b)       __gcd(a, b)
#define MOD             1000000007
#define PI              2.0*acos(0.0)
#define LCM(a, b)       (a * b) / GCD(a, b)
#define mem(a,b)        memset(a,b,sizeof(a))
#define srtv(v)         sort(v.begin(),v.end())
#define T               int t; cin>>t; while(t--)
#define Rep(i,a,b)      Rep(int i = 0; i <n; i++)
#define rep(i,a,b)      rep(int i = n; i >= 0; i--)
#define boost		    ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define inout           freopen("input.txt","r",stdin);freopen("output.txt","w",stdout)

#define si(x)           scanf("%d",&x)
#define pi(x)           printf("%d",x)
#define ss(str)         scanf("%s",str)
#define pl(x)           printf("%lld",x)
#define sl(x)           scanf("%lld",&x)
#define sii(x,y)        scanf("%d %d",&x,&y)
#define sll(x,y)        scanf("%lld %lld",&x,&y)
#define siii(x,y,z)     scanf("%d %d %d",&x,&y,&z)
#define slll(x,y,z)     scanf("%lld %lld %lld",&x,&y,&z)
using namespace std;

int main(void){

   // boost
    string s;
    cin>>s;

    for(int i=0; i<len; i++){
        if(s[i]>='A'&&s[i]<='Z')
           cout<<'B'<<nl;
        else
           cout<<"a"<<nl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:20: error: 'len' was not declared in this scope
   42 |     for(int i=0; i<len; i++){
      |                    ^~~
Language: C++

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

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

#include <iostream>
using namespace std;

int main(){
 char ch ;
  cin >> ch ; 
  if(int i= 65;i<91;i++){
  if(ch==i){ans = 'A\n'; break;}
  }
  else ans = 'a\n';
  cout << ans << endl;
}

Compiler output:
a.cc:8:19: warning: multi-character character constant [-Wmultichar]
    8 |   if(ch==i){ans = 'A\n'; break;}
      |                   ^~~~~
a.cc:10:14: warning: multi-character character constant [-Wmultichar]
   10 |   else ans = 'a\n';
      |              ^~~~~
a.cc: In function 'int main()':
a.cc:7:20: error: expected ')' before ';' token
    7 |   if(int i= 65;i<91;i++){
      |     ~              ^
      |                    )
a.cc:7:21: error: 'i' was not declared in this scope
    7 |   if(int i= 65;i<91;i++){
      |                     ^
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else ans = 'a\n';
      |   ^~~~
a.cc:10:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   else ans = 'a\n';
      |        ^~~
      |        abs
Language: C++

#include <iostream>
using namespace std;
int main()
{
	char c;
	cin>>c;
	int ch=(int)c;
	if(ch>=65&&ch<=90)
	cout<<"A"<"\n"<<c<<" is uppercase, so we should print A.";
	else
	cout<<"a"<<"\n"<<c<<" is lowercase, so we should print a.";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: invalid operands of types 'const char [2]' and 'char' to binary 'operator<<'
    9 |         cout<<"A"<"\n"<<c<<" is uppercase, so we should print A.";
      |                   ~~~~^~~
      |                   |     |
      |                   |     char
      |                   const char [2]
Language: C++

#bits/stdc++.h>
using namespace std;
int main()
{
  char c;
  cin>>c;
  if(c<=122 && c>=97)
    cout<<"a\n";
  else
    cout<<"A\n";
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #bits
    1 | #bits/stdc++.h>
      |  ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"a\n";
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"A\n";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.io.*;

class Lol{
	public static void main(String[] args){
      try{
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(Character.isUpperCase(str.charAt( 0 ))){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
      }
      catch(IOExpection e){
      
      }
    }
}


Compiler output:
Main.java:15: error: cannot find symbol
      catch(IOExpection e){
            ^
  symbol:   class IOExpection
  location: class Lol
1 error
Language: Java

import java.io.*;
import java.io.IOException;

class Lol{
	public static void main(String[] args){
      try{
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(Character.isUpperCase(str.charAt( 0 ))){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
      }
      catch(IOExpection e){
      
      }
    }
}


Compiler output:
Main.java:16: error: cannot find symbol
      catch(IOExpection e){
            ^
  symbol:   class IOExpection
  location: class Lol
1 error
Language: Java

import java.io.*;
import java.io.IOException;
class lol{
	public static void main(String[] args){
      try{
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(Character.isUpperCase(str.charAt( 0 ))){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
      }
      catch(IOExpection e){
      
      }
    }
}


Compiler output:
Main.java:15: error: cannot find symbol
      catch(IOExpection e){
            ^
  symbol:   class IOExpection
  location: class lol
1 error
Language: Java

import java.io.*;
import java.io.IOException;
class lol{
	public static void main(String[] args){
      try{
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(Character.isUpperCase(str.charAt( 0 ))){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
      }
      catch(){
      
      }
    }
}


Compiler output:
Main.java:15: error: illegal start of type
      catch(){
            ^
1 error
Language: Java

import java.io.*;
import java.io.IOException;
class lol{
	public static void main(String[] args){
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(Character.isUpperCase(str.charAt( 0 ))){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
    }
}


Compiler output:
Main.java:6: error: unreported exception IOException; must be caught or declared to be thrown
      String str = br.readLine();
                              ^
1 error
Language: Java

import java.io.*;

class lol{
	public static void main(String[] args){
      try{
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(Character.isUpperCase(str.charAt( 0 ))){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
      }
    }
  catch{}
}


Compiler output:
Main.java:5: error: 'try' without 'catch', 'finally' or resource declarations
      try{
      ^
Main.java:16: error: illegal start of type
  catch{}
  ^
2 errors
Language: Java

import java.io.*;

class lol{
	public static void main(String[] args){
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(Character.isUpperCase(str.charAt( 0 ))){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
    }
}


Compiler output:
Main.java:6: error: unreported exception IOException; must be caught or declared to be thrown
      String str = br.readLine();
                              ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'is_lower' was not declared in this scope; did you mean 'iswlower'?
    7 | if(is_lower(a)==true)
      |    ^~~~~~~~
      |    iswlower
Language: Java

import java.io.*;

class lol{
	public static void main(String[] args){
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(Character.isUpperCase(str)){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
    }
}


Compiler output:
Main.java:7: error: no suitable method found for isUpperCase(String)
      if(Character.isUpperCase(str)){
                  ^
    method Character.isUpperCase(char) is not applicable
      (argument mismatch; String cannot be converted to char)
    method Character.isUpperCase(int) is not applicable
      (argument mismatch; String cannot be converted to int)
1 error
Language: Java

import java.io.*;

class lol{
	public static void main(String[] args){
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(str.isUpperCase(str)){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
    }
}


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

import java.io.*;

class lol{
	public static void main(String[] args){
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(Character.isuppercase(str)){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
    }
}


Compiler output:
Main.java:7: error: cannot find symbol
      if(Character.isuppercase(str)){
                  ^
  symbol:   method isuppercase(String)
  location: class Character
1 error
Language: Java

import java.io.*;

class lol{
	public static void main(String[] args){
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(str.isuppercase(str)){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
    }
}


Compiler output:
Main.java:7: error: cannot find symbol
      if(str.isuppercase(str)){
            ^
  symbol:   method isuppercase(String)
  location: variable str of type String
1 error
Language: Java

import java.io.*;

class lol{
	public static void main(Strings[] args){
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      if(str.isuppercase(str)){
      	System.out.println("A");
      }
      else{
        System.out.println("a");
      }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
	public static void main(Strings[] args){
	                        ^
  symbol:   class Strings
  location: class lol
Main.java:7: error: cannot find symbol
      if(str.isuppercase(str)){
            ^
  symbol:   method isuppercase(String)
  location: variable str of type String
2 errors
Language: Java

import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.sql.SQLOutput;
import java.util.ArrayList;
import java.util.StringTokenizer;
import javax.swing.plaf.IconUIResource;


 class Main {

  public static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));

  static class FastReader {

    BufferedReader br;
    StringTokenizer st;

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

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

    int nextInt() {
      return Integer.parseInt(next());
    }

    long nextLong() {
      return Long.parseLong(next());
    }

    double nextDouble() {
      return Double.parseDouble(next());
    }

    String[] nextSArray() {
      String sr[] = null;
      try {
        sr = br.readLine().trim().split(" ");
      } catch (IOException e) {
        e.printStackTrace();
      }
      return sr;
    }

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

      return str;
    }
  }

  //  static int MOD=1000000000+7;
//  public static void sortbyCol(int arr[][],int col)
//  {
//    Arrays.sort(arr,new Comparator<int[]>(){
//      @Override
//      public int compare(int[] o1, int[] o2) {
//        // To sort in descending order revert
//        // the '>' Operator
//        if(o1[col]>o2[col])
//          return 1;
//        else
//          return -1;
//      }
//    });
//  }
static int countbits(int a)
{
  if(a==0)
    return 0;
  return  (int)(Math.log(a)/Math.log(2)+1);
}

static int reversebits(int n, int pos)
{
  while(pos>0)
  {
    if((n&pos)>0)
    {
      n-=pos;
    }
    else
      n+=pos;
      pos=pos>>1;
  }
  return n ;
}
  public static void main(String[] args) throws java.lang.Exception {
    FastReader sc = new FastReader();
//   int t1=sc.nextInt();
//
//   for(int t=0;t<t1;++t)
//   {
//
//   }

    String s=sc.nextLine();
    char ch=s.charAt(0);
    if (Character.isUpperCase(ch)) {
      System.out.println("A");
    } else {
      System.out.println("a");
    }

    }

  }

}

// out.println(al.toString().replaceAll("[\\[|\\]|,]",""));


Compiler output:
Main.java:129: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <string>
#include <queue>
#include <map>
#include <bits/stdc++.h>
#define pb push_back
#define ll long long
#define rep(i,l,r)  for(int i=l;i<=r;i++)
#define pre(i,r,l)  for(int i=r;i>=l;i--)
#define pii pair<int,int>
using namespace std;
const int inf = 0x3f3f3f3f;
const int mod = 1000000007;
const int maxn = 1000005;
inline int read(){
    int x=0,f=1;char c=getchar();
    for(;!isdigit(c);c=getchar()) if(c=='-') f=-1;
    for(;isdigit(c);c=getchar()) x=x*10+c-'0';
    return x*f;
}
int main() {
   char c; cin >> c;
   if(c >= 'A' && c <= 'Z') cout <<　'A' << endl;
   else cout << 'a' << endl;
}

Compiler output:
a.cc:27:36: error: extended character 　 is not valid in an identifier
   27 |    if(c >= 'A' && c <= 'Z') cout <<　'A' << endl;
      |                                    ^
a.cc: In function 'int main()':
a.cc:27:36: error: '\U00003000' was not declared in this scope
   27 |    if(c >= 'A' && c <= 'Z') cout <<　'A' << endl;
      |                                    ^~
Language: C++

#include<bits/stdc++.h>

using namepsace std;

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namepsace'
    3 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<'a';
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else cout<<'A';
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

include<stdio.h>

int main (void){
	int a;
    scanf("%c",&a);
    if(65<=a<=90){
    	printf("A\n");
    }
    if(97<=a<=122){
    	printf("a\n");
    }
    return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
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;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: no matching function for call to 'isupper(std::string&)'
    7 |   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<iostream.h>
int main()
{
  char k;
  scanf("%c",&k);
  if(k>=65 & k<=90)
    printf("A");
  else
    printf("a");
  return 0;
}


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

#include<iostream>
int main()
{
  char c;
  scanf("%c",&c);
  if(65<=c<=90)
    printf("A");
  else
    printf("a");
  return 0;
}


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

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


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

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


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str = sc.next();
		//判定// 出力
      	if((str.matches("a-z")){
         	System.out.println("a");
        }else {
          	System.out.println("A");
        }
	}
}

Compiler output:
Main.java:7: error: ')' expected
      	if((str.matches("a-z")){
      	                       ^
1 error