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

#include<stdio.h>
int main()
{

    int a;
    char str[10];
    gets(str);
    scanf("%d",&a);
    if(a<3200)
    {
        printf("red");

    }
    else
       {

        puts(str); }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(str);
      |     ^~~~
      |     getw
Language: Java


public class Main {
   
    public static void main(String[] args) {
        
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        String s = input.next();
        
        if(a > 3200)
        {
            System.out.println(s);
            System.out.println("a="+a+" is not less than 3200, so we print s= "+s);
        }
        else if(a < 3200)
        {
            System.out.println("red");
            System.out.println("a="+a+" is less than 3200, so we print red");
            
        }
        
        
    }
    
}


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

#include<iostream>
#include<iomanip>
#include<algorithm>
#include<bitset>
#include<cstdio>
#include<cmath>
#include<deque>
#include<map>
#include<numeric>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<string>
#include<tuple>
#include<utility>
#include<vector>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<long long> vll;
typedef vector<vector<long long>> vvll;
typedef vector<vector<int>> vvi;

#define rep(i, a, n)  for(int i=a; i<n; i++)
#define REP(i, n)  for(int i=0; i<(int)(n); i++)
#define REPS(i, n)  for(int i=1; i<=(int)(n); i++)
#define PER(i, n) for(int i=(int)(n)-1; i>= 0; i--)
#define PERS(i, n)  for(int i=(int)(n); i>0; i--)
#define FOR(i, c) for(__typeof((c).begin()) i = (c).begin(); i!=(c).end(); i++)
#define RFOR(i, c)  for(__typeof((c).rbegin()) i=(c).rbegin(); i!=(c).end(); i++)
#define ALL(container)  (container).begin(), (container).end()
#define RALL(container) (container).rbegin(), (container).rend()
#define SZ(container) (container).size()
#define FILL0(n)  setfill('0') << right << setw(n)
#define mp(a, b)  make_pair(a, b)
#define toLower(c)  c+0x20
#define toUpper(c)  c-0x20
#define pb  push_back
#define eb  emplace_back

const int INF = 1e9;
const long long LLINF = 1e18;
const int MOD = 1000000007;

int main(){
  int n;  cin >> n;
  string s; cin >> s;
  string s = n>=3200? s : "red";
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:10: error: redeclaration of 'std::string s'
   52 |   string s = n>=3200? s : "red";
      |          ^
a.cc:51:10: note: 'std::string s' previously declared here
   51 |   string s; cin >> s;
      |          ^
Language: Java

import java.util.Scanner;


public class ABC138a{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String tmp = scan.nextLine();
    int a = Integer.parseInt(tmp);
    String str = scan.nextLine();
    if(a>=3200){
      System.out.println(str);
    }else{
      System.out.println("red");
    }
    scan.close();
  }
}

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

#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <unordered_map>
#include <unordered_set>
using namespace std;
    
#define ABS(a) (((a) >= 0) ? (a) : -(a))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) > (b) ? (b) : (a))
#define FOR(i, a, b) for (int i = (a); i <= (b); ++i)
#define RFOR(i, a, b) for (int i = (a); i >= (b); --i)
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define POW_10_9 1000000000
#define INF (numeric_limits<int>::max()/2)
#define int long long
    
// typedef long long ll;
// typedef pair<int,int> Pair;
    

    
int main()
{
    int a;
    string s;
    cin >> a >> s;
    cout << ((a<3200) ? "red" : s) << endl;
    return 0;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: Java

import java.util.Scanner;
class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int s = next();
    if (a >= 3200) {
      System.out.println(s);
    } else {
      System.out.println("red");
    }
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    int s = next();
            ^
  symbol:   method next()
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class main {
	public static void main(String args[]) {
    	Scanner sc = new Scanner(System.in);
      	int a = Integer.parseInt(sc.next());
      	int s = next();
      	
      	if(a >= 3200) {
          System.out.println(s);
        } else {
          System.out.println("red");
    }
}

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

#include<stdio.h>
int main(){
  
  int a;
  
  if(a>=3200){
    printf("s");
  }
  else{
    printf("red")
  }
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected ';' before '}' token
   10 |     printf("red")
      |                  ^
      |                  ;
   11 |   }
      |   ~
Language: C++

using namespace std
int main() {
  int a;
  char s[20];
  
  cin >> a >> s;
  if (a >= 3200) {
    cout << "red" << endl;
  } else {
    cout << s << endl;
  }
  
  return 0;
}

Compiler output:
a.cc:1:20: error: expected ';' before 'int'
    1 | using namespace std
      |                    ^
      |                    ;
    2 | int main() {
      | ~~~                 
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> s;
      |   ^~~
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:5: error: 'cout' was not declared in this scope
    8 |     cout << "red" << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << "red" << 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:10:5: error: 'cout' was not declared in this scope
   10 |     cout << s << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |     cout << s << endl;
      |                  ^~~~
a.cc:10:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

using namespace std
int main() {
  int a;
  char s[20];
  
  cin >> a >> s;
  if (s >= 3200) {
    cout << 'red' << endl;
  } else {
    cout << s << endl;
  }
  
  return 0;
}
  

Compiler output:
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |     cout << 'red' << endl;
      |             ^~~~~
a.cc:4:20: error: expected ';' before 'int'
    4 | using namespace std
      |                    ^
      |                    ;
    5 | int main() {
      | ~~~                 
a.cc: In function 'int main()':
a.cc:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s >= 3200) {
      |       ~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int a;
  char s;
  cin>>a;
  cin>>s;
  
  if(a>=3200){
    cout<<s<<endl;
  }
  else{
    cout<<red<<endl;
  }
  return 0;
}

  

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

#include <iostream>
using namespace std;

int main()
{
  int a;
  char s;
  cin>>a;
  cin>>s;
  
  if(a>=3200){
    cout<<s<<l;
  }
  else{
    cout<<"red"<<l;
  }
  return 0;
}

  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'l' was not declared in this scope
   12 |     cout<<s<<l;
      |              ^
a.cc:15:18: error: 'l' was not declared in this scope
   15 |     cout<<"red"<<l;
      |                  ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int a;
  char s;
  cin>>a;
  cin>>s;
  
  if(a>=3200){
    cout<<s<<l;
  }
  else{
    cout<<"red"<<l;
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'l' was not declared in this scope
   12 |     cout<<s<<l;
      |              ^
a.cc:15:18: error: 'l' was not declared in this scope
   15 |     cout<<"red"<<l;
      |                  ^
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: Java

import java.util.Scanner;
public class Main{
    
public static void main( String args[]) {
  Scanner sc = new Scanner(System.in);
   String s ;
   
   int n = sc.nextInt();
    s = sc.nextLine();
  int x =  s.length();
    if(n<3200 && n>=2800)
    System.out.println("red");
    else
    System.out.println(s);
  }
}
  
         
    }

Compiler output:
Main.java:19: error: class, interface, enum, or record expected
    }
    ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
    
public static void main( String args[]) {
  Scanner sc = new Scanner(System.in);
   String s ;
   
   int n = sc.nextInt();
    s = sc.nextLine().toLowerCase();
  
    if(n<3200 && n>=2800)
    System.out.println("red");
    else if(n >3200 && n<5000)
    System.out.println(s);
  break ;
}
  
         
    }

Compiler output:
Main.java:15: error: break outside switch or loop
  break ;
  ^
1 error
Language: Java

import java.util.Scanner;
public class StringQuestion{
    
public static void main( String args[]) {
  Scanner sc = new Scanner(System.in);
   String s ;
   
   System.out.println("Enter the string in lowercase");
    s = sc.nextLine();
  System.out.println("Enter the integer");
  int n = sc.nextInt();
  
  
 
   
    
   
    if(n<3600)
    System.out.println(s);
    else 
    System.out.println("red");
}
  
         
    }

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

#include <stdio>

int main(){
  int a;
  char s[20];
  scanf("%d",&a);
  if(a>=3200){
    printf("%s",s);}
    else{
      printf("red");}
  return 0;
}
      

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a;
  string s;
  cin>>a>>s;
  if(!(a<3200))cout<<s<<endl;
    else cout<<"red"<<endl      
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before '}' token
    9 |     else cout<<"red"<<endl
      |                           ^
      |                           ;
   10 | }
      | ~
Language: C++

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

int main() {
  
  int a;
  string s;
  cin >> a,s;
 
  
  if (a >= 3200 ) {
    cout << s << endl;
  }
  
  else{
    cout<< " red " << endl;
}
    


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

#include <stdio.h>

int main(){
  int a;
  char s[12];

  scanf("%d\n",&a);
  scanf("%s",s);
    if(a!<3200)
    printf("%s",s);

    else
    printf("pink\n");


  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: expected ')' before '!' token
    9 |     if(a!<3200)
      |       ~ ^
      |         )
Language: C++

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

int main() {
  
  int a,s;
  cin >> a;
  string s;
  
  if (a >= 3200 ) {
    cout << s << endl;
  }
  
  else cout<< "red" << endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: conflicting declaration 'std::string s'
    8 |   string s;
      |          ^
a.cc:6:9: note: previous declaration as 'int s'
    6 |   int a,s;
      |         ^
Language: C++

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

int main() {
  
  int a,s;
  cin >> a;
  string >> s;
  
  if (a >= 3200 ) {
    cout << s << endl;
  }
  
  else cout<< "red" << endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected unqualified-id before '>>' token
    8 |   string >> s;
      |          ^~
Language: C++

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

int main() {
  cin >> a;
  string >> s;
  
  if (a >= 3200 ) {
    cout << s << endl;
  }
  
  else cout<< "red" << endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'a' was not declared in this scope
    5 |   cin >> a;
      |          ^
a.cc:6:10: error: expected unqualified-id before '>>' token
    6 |   string >> s;
      |          ^~
a.cc:9:13: error: 's' was not declared in this scope
    9 |     cout << s << endl;
      |             ^
Language: C

#include<stdio.h>

int main()

{
    int a;
    char p[10];
    scanf("%d%s",&a,&p);
    if (a<=5000 && 3200<=a)
    {
    printf("%s",p);
    }
    else if(a<3200 && 2800<=a)
    {
    printf("Red");
    }
getch();
}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   17 | getch();
      | ^~~~~
      | getc
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] えーびーしー百三十八){
    Scanner 入力かず = new Scanner(System.in);
    Scanner 入力もじ = new Scanner(System.in);
    int これ以上 = 入力かず.nextInt();
    int 三千二百 = 3200;
    String 赤じゃないやつ = 入力もじ.nextLine();
    String 赤 = "red";
    if(これ以上 >= 三千二百)
      System.out.println(赤じゃないやつ);
    else
      System.out.println(赤);
}

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

int main(){
    int a;
	string s;
	cin >> a >> s;
	if(a<3200){
		cout << "red" << endl;
	}else{
		cout << s << endl;
	}
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string s;
      |         ^~~~~~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> a >> s;
      |         ^~~
a.cc:4:21: error: 's' was not declared in this scope
    4 |         cin >> a >> s;
      |                     ^
a.cc:6:17: error: 'cout' was not declared in this scope
    6 |                 cout << "red" << endl;
      |                 ^~~~
a.cc:6:34: error: 'endl' was not declared in this scope
    6 |                 cout << "red" << endl;
      |                                  ^~~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << s << endl;
      |                 ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |                 cout << s << endl;
      |                              ^~~~
Language: C

#include<stdio.h>
#define 三千二百 3200
#define 十 10
int main(){
  int これ以上;
  scanf("%d",&これ以上);
  char 赤じゃないやつ[これ以上 + 十];
  scanf("%s",赤じゃないやつ);
  (これ以上 >= 三千二百) ? printf("%s",赤じゃないやつ); : printf("red");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:55: error: expected ':' before ';' token
    9 |   (これ以上 >= 三千二百) ? printf("%s",赤じゃないやつ); : printf("red");
      |                                                       ^
      |                                                       :
main.c:9:57: error: expected expression before ':' token
    9 |   (これ以上 >= 三千二百) ? printf("%s",赤じゃないやつ); : printf("red");
      |                                                         ^
Language: C++

#include <iostream>
using namespace std;
int main (){
  int a;
  cin >> a;
  String s;
  cin >> s;
  if (a <3200)
    cout << "red";
  else cout << s;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'String' was not declared in this scope
    6 |   String s;
      |   ^~~~~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
Language: C

#include <bits/stdc++.h>
#include <string.h>
using namespace std;
int main()
{
    int a;
    string s;
    cin >> a >> s;

    if(a<3200) puts("red");
    else cout << s << endl;

    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;

int a;

cin >> a;

if(a >= 3200){
  cout << "s" << endl;
}
if(a < 3200){
  cout << "red" << endl;
}


Compiler output:
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> a;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if(a >= 3200){
      | ^~
a.cc:11:1: error: expected unqualified-id before 'if'
   11 | if(a < 3200){
      | ^~
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int a[100],j,n,temp;
	double k;
	cin>>n;
	for(int i=0;i<n;i++)
	{
		cin>>a[i];
	}
	for(int i=1;i<n;i++)
	{
		j=i;
		temp=a[i];
		while(j>0;temp<a[j-1])
		{
			a[j]=a[j-1];
			j--;
		}
		a[j]=temp;
	}
	k=a[0];
	for(int i=1;i<n;i++)
	{
		k=(k+a[i])/2;
	}
	cout<<k;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: expected ')' before ';' token
   16 |                 while(j>0;temp<a[j-1])
      |                      ~   ^
      |                          )
a.cc:16:38: error: expected ';' before ')' token
   16 |                 while(j>0;temp<a[j-1])
      |                                      ^
      |                                      ;
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int n;
	char a[100];
	cin>>n>>a;
	if(n>=3200)
	{
		cout<<s;
	}
	else
	{
		cout<<"red";
	}
	return 0;
}

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

#include<stdio.h>

scanf("a",%d);
scanf("s",%s);
if(a >= 3200)
    printf("s",%s);
}else{
    printf("red");
};


Compiler output:
a.cc:3:6: error: expected constructor, destructor, or type conversion before '(' token
    3 | scanf("a",%d);
      |      ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf("s",%s);
      |      ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(a >= 3200)
      | ^~
a.cc:7:1: error: expected declaration before '}' token
    7 | }else{
      | ^
a.cc:7:2: error: expected unqualified-id before 'else'
    7 | }else{
      |  ^~~~
Language: C++

if (a>=3200)
  std::cout<<s;
else
  std::cout<<"red";

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if (a>=3200)
      | ^~
a.cc:3:1: error: expected unqualified-id before 'else'
    3 | else
      | ^~~~
Language: C++

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <new>

using namespace std;

int main(){
    int a;
    string s;

    cin >> a >> s;

    if(a < 3200){
        cout << "red" << endl;
    }else{
        cout << s <<endl;
    
	return 0;
}


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

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <new>

using namespace std;

int main(){
    int a;
    string s;

    cin >> a;
    cin >> s;

    if(a < 3200){
        cout << "red" << endl;
    }else{
        cout << s <<endl;
    
	return 0;
}

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

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <new>

using namespace std;

int main(){
    int a;
    char s[10];

    cin >> a;
    cin >> s;

    if(a < 3200){
        cout << "red" << endl;
    }else{
        cout << s <<endl;
    
	return 0;
}


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

#include<iostream>

using namespace
  
int main()
{
  int a;
  cin >> a;
  string s;
  cin >> s;
  
  if(a>=3200)
  {
    cout << s;
  }
  else{
    cout << "red";
  }
}
  

Compiler output:
a.cc:5:1: error: expected identifier before 'int'
    5 | int main()
      | ^~~
a.cc:3:16: error: expected ';' before 'int'
    3 | using namespace
      |                ^
      |                ;
    4 | 
    5 | int main()
      | ~~~             
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'string' was not declared in this scope
    9 |   string s;
      |   ^~~~~~
a.cc:9:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:10:10: error: 's' was not declared in this scope
   10 |   cin >> s;
      |          ^
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout << s;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout << "red";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#inckude<iostream>

using namespace
  
int main()
{
  int a;
  cin >> a;
  string s;
  cin >> s;
  
  if(a>=3200)
  {
    cout << s;
  }
  else{
    cout << "red";
  }
}
  

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inckude; did you mean #include?
    1 | #inckude<iostream>
      |  ^~~~~~~
      |  include
a.cc:5:1: error: expected identifier before 'int'
    5 | int main()
      | ^~~
a.cc:3:16: error: expected ';' before 'int'
    3 | using namespace
      |                ^
      |                ;
    4 | 
    5 | int main()
      | ~~~             
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> a;
      |   ^~~
a.cc:9:3: error: 'string' was not declared in this scope
    9 |   string s;
      |   ^~~~~~
a.cc:10:10: error: 's' was not declared in this scope
   10 |   cin >> s;
      |          ^
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << s;
      |     ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "red";
      |     ^~~~
Language: C++

#inckude<iostream>

using namespace
  
int main()
{
  int a;
  cin >> a;
  string s;
  cin >> s;
  
  if(a>=3200)
  {
    cout << a;
  }
  else{
    cout << s;
  }
}
  

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inckude; did you mean #include?
    1 | #inckude<iostream>
      |  ^~~~~~~
      |  include
a.cc:5:1: error: expected identifier before 'int'
    5 | int main()
      | ^~~
a.cc:3:16: error: expected ';' before 'int'
    3 | using namespace
      |                ^
      |                ;
    4 | 
    5 | int main()
      | ~~~             
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> a;
      |   ^~~
a.cc:9:3: error: 'string' was not declared in this scope
    9 |   string s;
      |   ^~~~~~
a.cc:10:10: error: 's' was not declared in this scope
   10 |   cin >> s;
      |          ^
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << a;
      |     ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << s;
      |     ^~~~
Language: C++

//c++
#include<iostream>
#include<string>
using namespace std;

int main()
{
  int a;
  string b;
  
  cin >> a;
  cin >> name;
  
  if(a >= 3200){
    cout<<name<<endl;
  }else{
    cout<<"red"<<endl;
  }
}
    


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

//c++
#include<iostream>
#include<string>
using namespace std;

int main()
{
  int a;
  string b;
  
  cin >> a;
  cin >> name;
  
  if(a >= 3200){
    cout<<name<<endl;
  }else{
    cout<<"red"<<endl;
  }
}
    

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

#include <iostream>
#include <string>
int main() {
  int a;
  string s;
  cin >> a >> s;
  if (a >= 3200)
    cout << s;
  else
    cout <<"red";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> s;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:15: error: 's' was not declared in this scope
    6 |   cin >> a >> s;
      |               ^
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << s;
      |     ^~~~
      |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout <<"red";
      |     ^~~~
      |     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>
void main()
{  short a;
char s[10];
 scanf("%hd %[^\n]%*c",&a,s];
       if(a<3200)
       printf("\nred");
       else
       printf("%s",s);
      
}

Compiler output:
main.c: In function 'main':
main.c:5:28: error: expected ')' before ']' token
    5 |  scanf("%hd %[^\n]%*c",&a,s];
      |       ~                    ^
      |                            )
main.c:5:28: error: expected ';' before ']' token
    5 |  scanf("%hd %[^\n]%*c",&a,s];
      |                            ^
      |                            ;
main.c:5:28: error: expected statement before ']' token
Language: C

#include<stdio.h>
void main()
{  int a;
char s[10];
 scanf("%hd %[^\n]%*c",&a,s];
       if(a<3200)
       printf("\nred");
       else
       printf("%s",s);
      
}

Compiler output:
main.c: In function 'main':
main.c:5:28: error: expected ')' before ']' token
    5 |  scanf("%hd %[^\n]%*c",&a,s];
      |       ~                    ^
      |                            )
main.c:5:28: error: expected ';' before ']' token
    5 |  scanf("%hd %[^\n]%*c",&a,s];
      |                            ^
      |                            ;
main.c:5:28: error: expected statement before ']' token
Language: Java

public class Main{

     public static void main(String[] args){
         
                Scanner sc = new Scanner(System.in);
                int n = sc.nextInt();
                String s = sc.next();
                if (n >= 3200) {
                    System.out.println(s);
                } else {
                    System.out.printf("red");
                }

     }

}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    string s;
    scanf("%d",&a);
    gets(s);
    {
        if(a>3200)
            printf("red\n");
        else
            puts(s);
    }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(s);
      |     ^~~~
      |     getw
a.cc:13:18: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   13 |             puts(s);
      |                  ^
      |                  |
      |                  std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    string s;
    while(scanf("%d%s",&a,&s)==2)
    {
        if(a>3200)
            printf("red\n");
        else
            printf("%s\n",s);
    }
    return 0;
}


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

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

int main(){
  int a;
  string s;
  
  cin >> a;
  cin >> s;
  
  if(a >= 3200)
    cout <<'red';
  else 
    cout << s;

Compiler output:
a.cc:13:12: warning: multi-character character constant [-Wmultichar]
   13 |     cout <<'red';
      |            ^~~~~
a.cc: In function 'int main()':
a.cc:15:15: error: expected '}' at end of input
   15 |     cout << s;
      |               ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<cstdio>

int n;
char s[10];

int main(){
  scanf("%d", &n);
  if(a>=3200){
    printf("%s\n", s);
  } else {
    printf("red\n");
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'a' was not declared in this scope
    8 |   if(a>=3200){
      |      ^
Language: C

#include<stdio.h>
int main()
{
  int a;
  char s[10];
  
  scanf("%d",&a);
  scanf("%s",s);
  if(a>=3200){
    printf("%s",s);
  }
  else{
    printf("red");
  }
  return 0;

Compiler output:
main.c: In function 'main':
main.c:15:3: error: expected declaration or statement at end of input
   15 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>
int main()
{
  int a;
  char s[10];
  
  scanf("%d",&a);
  scanf("%s",&s);
  if(a>=3200){
    printf("%s",s);
  }
  else{
    printf("red");
  }
  return 0;

Compiler output:
main.c: In function 'main':
main.c:15:3: error: expected declaration or statement at end of input
   15 |   return 0;
      |   ^~~~~~
Language: C

include stdio.h
int main()
{
  int a;
  char s[10];
  
  scanf("%d",&a);
  scanf("%s",&s);
  if(a>=3200){
    printf("%s",s);
  }
  else{
    printf("red");
  }
  return 0;
}
  

Compiler output:
main.c:1:1: error: unknown type name 'include'
    1 | include stdio.h
      | ^~~~~~~
main.c:1:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | include stdio.h
      |              ^
Language: C

if(a>=3200){
  printf(s);
}
else{
  print("red");
}

Compiler output:
main.c:1:1: error: expected identifier or '(' before 'if'
    1 | if(a>=3200){
      | ^~
main.c:4:1: error: expected identifier or '(' before 'else'
    4 | else{
      | ^~~~
Language: C++

#include <iostream>
#include <string>

int main(int argc, char** argv)
{
    int a;
    std::cin >> a;
    std::string s;
    std::cin >> s;

    std::cout << (a >= 3200) ? s : "red" << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:11:42: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |     std::cout << (a >= 3200) ? s : "red" << std::endl;
      |                                    ~~~~~~^~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
#include <vector>
int main(){
	vector<int> A;
    A.push_back(9);
    A.push_back(8);
    print(A[-1]);
    print(A[0]);
	print(A[1]);
  
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'print' was not declared in this scope; did you mean 'printf'?
    8 |     print(A[-1]);
      |     ^~~~~
      |     printf
Language: C++

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

int main(){
  int a;
  string s;
  cin >> a >> s;
  
  if(a >= 3200){
    cout << s <<endl;
  }
  else{
    cout <<"red"<<endl;
  }
}

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

#include <bits/stdc++.h>

using namespace std;

int main() {
	int a,
  	string s;
  cin >> a;
  cin >> s;
  if (a >= 3200) cout << s << endl;
  else cout << "red\n"; 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected initializer before 's'
    7 |         string s;
      |                ^
a.cc:9:10: error: 's' was not declared in this scope
    9 |   cin >> s;
      |          ^
Language: C++

string input;
cin >> input;
if atoi(input)>3200{
  cin >> input;
  cont >> "red" >> endl;
} else {
  cin >> input;
  cont >> cin >> endl;
}

Compiler output:
a.cc:1:1: error: 'string' does not name a type
    1 | string input;
      | ^~~~~~
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> input;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if atoi(input)>3200{
      | ^~
a.cc:6:3: error: expected unqualified-id before 'else'
    6 | } else {
      |   ^~~~
Language: C++

#include <iostream>
#include <vector>

int main(int argc, char** argv)
{
    int N;
    std::cin >> N;
    std::vector<double> values;
    for (int i = 0; i < N; ++i) {
        double V;
        std::cin >> V;
        values.push_back(V);
    }

    std::sort(std::begin(values), std::end(values));

    double x = values[0];
    for (int i = 1; i < N; ++i) {
        double y = values[i];
        x = (x + y)  * 0.5; 
    }

    std::cout << static_cast<int>(x) << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:15:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   15 |     std::sort(std::begin(values), std::end(values));
      |          ^~~~
      |          qsort
Language: C++

#include <iostream>
#include <vector>

int main(int argc, char** argv)
{
    int N;
    std::cin >> N;
    std::vector<double> values;
    for (int i = 0; i < N; ++i) {
        double V;
        std::cin >> V;
        values.push_back(V);
    }

    std::sort(std::begin(values), std::end(values));

    double x = values[0];
    for (int i = 1; i < N; ++i) {
        double y = values[i];
        x = (x + y)  * 0.5; 
    }

    std::cout << staic_cast<int>(x) << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:15:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   15 |     std::sort(std::begin(values), std::end(values));
      |          ^~~~
      |          qsort
a.cc:23:18: error: 'staic_cast' was not declared in this scope; did you mean 'static_assert'?
   23 |     std::cout << staic_cast<int>(x) << std::endl;
      |                  ^~~~~~~~~~
      |                  static_assert
a.cc:23:29: error: expected primary-expression before 'int'
   23 |     std::cout << staic_cast<int>(x) << std::endl;
      |                             ^~~
Language: C++

#include <iostream>
#include <vector>

int main(int argc, char** argv)
{
    int N;
    std::cin >> N;
    std::vector<double> values;
    for (int i = 0; i < N; ++i) {
        double V;
        std::cin >> V;
        values.push_back(V);
    }

    std::sort(std::begin(values), std::end(values));

    double x = values[0];
    for (int i = 1; i < N; ++i) {
        double y = values[i];
        x = (x + y)  * 0.5; 
    }

    std::cout << std::to_int(x) << std::endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:15:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   15 |     std::sort(std::begin(values), std::end(values));
      |          ^~~~
      |          qsort
a.cc:23:23: error: 'to_int' is not a member of 'std'
   23 |     std::cout << std::to_int(x) << std::endl;
      |                       ^~~~~~
Language: Java

class Question_A {
	public static void main(String[] args){
		Scanner scan1 = new Scanner(System.in);
		Scanner scan2 = new Scanner(System.in);
	if (scan1.nextInt() >= 3200) {
			System.out.println(scan2.next());
		} else {
			System.out.println("red");
		}
	}
}


Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan1 = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Question_A
Main.java:3: error: cannot find symbol
		Scanner scan1 = new Scanner(System.in);
		                    ^
  symbol:   class Scanner
  location: class Question_A
Main.java:4: error: cannot find symbol
		Scanner scan2 = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Question_A
Main.java:4: error: cannot find symbol
		Scanner scan2 = new Scanner(System.in);
		                    ^
  symbol:   class Scanner
  location: class Question_A
4 errors
Language: Java

import java.util.Scanner;

public class Question_A {
	public static void main(String[] args){
		Scanner scan1 = new Scanner(System.in);
		Scanner scan2 = new Scanner(System.in);
	if (scan1.nextInt() >= 3200) {
			System.out.println(scan2.next());
		} else {
			System.out.println("red");
		}
	}
}


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

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

int main(){
	int a,s;
	cin >> a >> s;
	if(a>=3200)	cout << s << "\n";
	else		cout << "red\n"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:40: error: expected ';' before '}' token
    9 |         else            cout << "red\n"
      |                                        ^
      |                                        ;
   10 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

int main(){

    int a;
    string s;
    cin >> a >> s;    
    if(a < 3200){
        cout << "red" << endl;
    }
    else if(a=>3200){
        cout << s << endl;
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected primary-expression before '>' token
   12 |     else if(a=>3200){
      |               ^
Language: C++

#include <iostream>
#include "Calc.h"
#include "MInMax.h"

int main()
{
	using namespace std;
	string red = "red";
	string b = "";
	int a = 0;
	cin >> a;
	cin >> b;
	if (3200 <= a)
	{
		cout << b << endl;
	}
	else
	{
		cout << red << endl;
	}
	return 0;
}


Compiler output:
a.cc:2:10: fatal error: Calc.h: No such file or directory
    2 | #include "Calc.h"
      |          ^~~~~~~~
compilation terminated.
Language: Java

import java.io.*;
import java.util.*;
 
public class Main{
  	public static void main(String[] args){
      BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
      int n=Integer.parseInt(br.readLine());
      String s=br.readLine();
      if(n>=3200){
       System.out.println(s); 
      }else{
        System.out.println("red");
      }
    }
}

Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
      int n=Integer.parseInt(br.readLine());
                                        ^
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
      String s=br.readLine();
                          ^
2 errors
Language: Java

import java.io.*;
import java.util.*;
 
public class Main{
  	public static void main(String[] args){
      BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
      int n=Integer.parseInt(br.readLine());
      String s=br.readLine();
      if(!(n<3200)){
       System.out.println(s); 
      }else{
        System.out.println("red");
      }
    }
}

Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
      int n=Integer.parseInt(br.readLine());
                                        ^
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
      String s=br.readLine();
                          ^
2 errors
Language: Java

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

public class Main{
  	public static void main(String[] args){
      BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
      int n=Integer.parseInt(br.readLine());
      String s=br.readLine();
      if(!n<3200){
       System.out.println(s); 
      }else{
        System.out.println("red");
      }
    }
}

Compiler output:
Main.java:9: error: bad operand type int for unary operator '!'
      if(!n<3200){
         ^
1 error
Language: C++

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

int main(){
	string s;
	int m;
  	cin>>m>>s;
  	if(a>=3200)
      cout<<s<<endl;
	else
      cout<<"red"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
    8 |         if(a>=3200)
      |            ^
Language: C++

#include <bits/stdc++.h>
int main() {
	int a;
	string s;
	cin >> a>>s;
	if (a >= 3200)cout << s << endl;
	else cout << "red" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string s;
      |         ^~~~~~
a.cc:4:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> a>>s;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:19: error: 's' was not declared in this scope
    5 |         cin >> a>>s;
      |                   ^
a.cc:6:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         if (a >= 3200)cout << s << endl;
      |                       ^~~~
      |                       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         if (a >= 3200)cout << s << 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:7:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         else cout << "red" << 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:7:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         else cout << "red" << endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Scanner;

class test{
  public static void main(String args[]){
  	Scanner scanner = new Scanner(System.in);
  	int a = scanner.nextInt();
    String s = scanner.nextString();
    if(a<3200){
      System.out.print(s);
    }else{
      System.out.print("red");
    }
  }
}


Compiler output:
Main.java:7: error: cannot find symbol
    String s = scanner.nextString();
                      ^
  symbol:   method nextString()
  location: variable scanner of type Scanner
1 error
Language: Java

import java.util.Scanner;

class test{
  public static void main(String args[]){
  	Scanner scanner = new Scanner(System.in);
  	int a = sccaner.nextInt();
    String s = sccaner.nextSTring();
    if(a<3200){
      System.out.print(s);
    }else{
      System.out.print("red");
    }
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
  	int a = sccaner.nextInt();
  	        ^
  symbol:   variable sccaner
  location: class test
Main.java:7: error: cannot find symbol
    String s = sccaner.nextSTring();
               ^
  symbol:   variable sccaner
  location: class test
2 errors