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

import java.util.Scanner;

public class A {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int paramA = Integer.parseInt(scanner.nextLine());
        String paramS = scanner.nextLine();
        scanner.close();
        if (paramA > 3200) {
            System.out.println(paramS);
        } else {
            System.out.println("red");
        }
    }
}

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

include <iostream>
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:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string s;
      |         ^~~~~~
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> a >> s;
      |         ^~~
a.cc:6:21: error: 's' was not declared in this scope
    6 |         cin >> a >> s;
      |                     ^
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;
      |                              ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "red" << endl;
      |                 ^~~~
a.cc:10:34: error: 'endl' was not declared in this scope
   10 |                 cout << "red" << endl;
      |                                  ^~~~
Language: Java

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

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


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


#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse2")

    /*
    ||||||||||||||||||||||||||||||||||||||||||||||||
       |      |||         |      ||||    ||||  |   |
      | |     |   |      | |     |   |  |      |   |
     |   |    |    |    |   |    |   |  |      |   |
    |||||||   |    |   |||||||   |||     |||   |||||
    |     |   |   |    |     |   | |        |  |   |
    |     |   |||      |     |   |  ||  ||||   |   |
    ||||||||||||||||||||||||||||||||||||||||||||||||

    */
    using namespace std;
    //#include "testlib.h"
    #define ff first
    #define ss second
    #define mp make_pair
    #define all(v) v.begin(),v.end()
    #define int long long
    #define ll long long
    #define M 1000000007
    #define inputarr(a,n) for(int i=0;i<n;++i) cin>>a[i]
    #define GCD(m,n) __gcd(m,n)
    #define LCM(m,n) m*(n/GCD(m,n))
    #define mii  map<ll ,ll >
    #define msi  map<string,ll >
    #define mis  map<ll int, string>
    #define rep(a,b)    for(ll i=a;i<b;i++)
    #define rep0(n)    for(ll i=0;i<n;i++)
    #define repi(i,a,b) for(ll i=a;i<b;i++)
    #define pb push_back
    #define vi vector<ll>
    #define mp make_pair
    #define vs vector<string>
    #define ppb pop_back
    #define endl '\n'
    #define asdf ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
    #define r0 return 0;
    #define FORD(i, a, b) for (int i = (int) (a); i >= (int) (b); --i)
    #define FORE(it, c) for (__typeof((c).begin()) it = (c).begin(); it != (c).end(); ++it)
    #define inputoutput freopen("input.txt", "r", stdin);freopen("output.txt", "w", stdout);
    #define input freopen("input.txt", "r", stdin);
    #define Set(a, s) 4(a, s, sizeof (a))
    #define FOR repi
    #define pii pair<int,int>
    #define REVERSE(v) reverse(ALL(v))
    #define display(x) trav(a,x) cout<<a<<" ";cout<<endl
    #define debug cerr<<"bhau"<<endl
    #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
    template <typename Arg1>
    void __f(const char* name, Arg1&& arg1){
        std::cerr << name << " : " << arg1 << endl;
    }
    template <typename Arg1, typename... Args>
    void __f(const char* names, Arg1&& arg1, Args&&... args){
        const char* comma = strchr(names + 1, ',');std::cerr.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...);
    }
 
    //#define float long double
    ll max(ll a, ll b) { return (a > b)? a : b;}
    int min(int a, int b) { return (a < b)? a : b;}


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

        r0   
     }
    signed main()
    {   
        asdf
        
        int t=1;
        //cin>>t;
        while(t--)
        {
            solve();
        }     
        
}

Compiler output:
a.cc: In function 'long long int solve()':
a.cc:72:31: error: expected ';' before 'else'
   72 |         if(a<3200) cout<<"red"
      |                               ^
      |                               ;
   73 |             else cout<<s;
      |             ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define watch(x) cout << (#x) << " is " << (x) << endl
#define fast                          \
	ios_base::sync_with_stdio(false); \
	cin.tie(NULL);
#define openfile freopen("input.txt", "r" ,stdin); freopen("output.txt", "w", stdout); 
#define FOR(n) for(int i(0);i<n;++i)
#define ASC(i,a,b) for(int i(a); i <=b; ++i)
#define DESC(i,a,b) for(int i(a);i>=b;i--)
#define WL(t) while(t--)
#define SZ(a) int((a).size())
#define PB push_back
#define MP make_pair
#define FF first
#define SS second
#define BB begin()
#define EE end()
#define all(c) c.BB, c.EE
#define present(container, element) (container.find(element) != container.end())
// ^^for set,map etc
#define cpresent(container, element) (find(all(container), element) != container.end())
// for vector,array etc
#define tr(container, it) for (auto it = container.begin(); it != container.end(); it++)
#define gcd(a, b) __gcd((a), (b))
#define lcm(a, b) ((a) * (b)) / gcd((a), (b))
typedef long long LL;
typedef long double LD;
typedef vector<int> vi;
typedef vector<LL> vl;
typedef map<char,int> mci;
typedef pair<int, int> pii;
typedef map<int,pii> ipii;
const float INF = numeric_limits<float>::infinity();
const int MOD = 1e9 + 7;
const double PI = 3.14159265358979323846264338;
const LL big=998244353;

#ifdef _DEBUG
freopen(input.txt,"r",stdin);
freopen(output.txt,"w",stdout);
#endif

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

Compiler output:
a.cc: In function 'int main()':
a.cc:48:12: error: 'a' was not declared in this scope
   48 |         if(a<3200) cout << "red";
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |    str s;
      |    ^~~
      |    std
a.cc:9:11: error: 's' was not declared in this scope
    9 |    cin >> s;
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |    str s;
      |    ^~~
      |    std
a.cc:11:14: error: 's' was not declared in this scope
   11 |      cout << s << endl;
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    char c[100];
    cin>>a;
    cin>>c;
    if(a<3200)
    {
        cout<<"red"24<<endl;

    }
    else
    {
        cout<<c<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before numeric constant
   11 |         cout<<"red"24<<endl;
      |                    ^~
      |                    ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    char c[100];
    cin>>a;
    cin>>c;
    if(a<3200)
    {
        cout<<"red"24<<endl;

    }
    else
    {
        cout<<c<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before numeric constant
   11 |         cout<<"red"24<<endl;
      |                    ^~
      |                    ;
Language: C++

#include <bits/stdc++.h>
#define speed                                                                  \
  ios_base::sync_with_stdio(0);                                                \
  cin.tie(0);                                                                  \
  cout.tie(0);
#define oprecision                                                             \
  cout.precision(30);                                                          \
  cerr.precision(7);
#define bb bool
#define ii int
#define ll long long
#define ff float
#define dd double
#define cc char
#define ss string
#define forn(sz) for (int i = 1; i <= sz; i++)
#define forni(i, sz) for (int i = 1; i <= sz; i++)
#define fornid(i, m, sz) for (int i = m; i <= sz; i++)
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define vii vector<ii>
#define vii64 vector<ll>
#define vb vector<bb>
using namespace std;
ff sz, arr[10005], ans;
ii main() {
  speed;
  oprecision;
  /*#ifndef ONLINE_JUDGE
    freopen("outd.txt", "rt", stdin);
  #endif*/
  // code
  cin >> sz;
  forn(sz)cin >> arr[i];
  sort(arr + 1, arr + sz + 1);
  ans = (arr[1] + arr[2]) / 2;
  for(int i = 3; i <= sz; i++){
    ans = (ans + arr[i]) / 2;
  }
  cout << ans;
// endl
#ifndef ONLINE_JUDGE
  cerr << "\nTime elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
#endif
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:21: error: invalid operands of types 'float [10005]' and 'float' to binary 'operator+'
   36 |   sort(arr + 1, arr + sz + 1);
      |                 ~~~ ^ ~~
      |                 |     |
      |                 |     float
      |                 float [10005]
Language: Java

import java.util.*;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:32: error: expected '}' at end of input
   10 |         else cout << s << endl;
      |                                ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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" << endl;
  }

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

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

  cin >> a;
  cin >> s;

  if (a >= 3200){
    cout << S;
  }else{
    cout << "red";
  }
}

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

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

  cin >> a;
  cin >> s;

  if (a >= 3200){
    cout << S;
  }else{
    cout << "red" 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'S' was not declared in this scope
   12 |     cout << S;
      |             ^
a.cc:14:18: error: expected ';' before '}' token
   14 |     cout << "red"
      |                  ^
      |                  ;
   15 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  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:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a;
      |          ^
a.cc:8:10: error: 's' was not declared in this scope
    8 |   cin >> s;
      |          ^
Language: C++

#include <stdio.h>
int main (){
  int a, s;
  scanf("%d\n",a);
  scanf("%s\n",s);
  if ( a>3200);{
         s="red";
  }
  printf("%d",a);
  printf("%s",s);
  retunr 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |          s="red";
      |            ^~~~~
      |            |
      |            const char*
a.cc:11:3: error: 'retunr' was not declared in this scope
   11 |   retunr 0;
      |   ^~~~~~
Language: C++

#include 
int main (){
  int a, s;
  scanf("%d\n",a);
  scanf("%s\n",s);
  if ( a>3200);{
         s="red";
  }
  printf("%d",a);
  printf("%s",s);
  retunr 0;
}
    

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |          ^
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d\n",a);
      |   ^~~~~
a.cc:7:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |          s="red";
      |            ^~~~~
      |            |
      |            const char*
a.cc:9:3: error: 'printf' was not declared in this scope
    9 |   printf("%d",a);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include
a.cc:11:3: error: 'retunr' was not declared in this scope
   11 |   retunr 0;
      |   ^~~~~~
Language: C++

#include <iostream>
using namespace std;
void 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:3:1: error: '::main' must return 'int'
    3 | void main() {
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:59: error: 'else' without a previous 'if'
    3 | int main(){int a,s;cin>>a>>s;if(a<3200)cout<<"red"<<endl;;else cout<<s<<endl;}
      |                                                           ^~~~
Language: Java

import java.util.*;

public class Main {

	public static void main(){
		Scanner sc  = new Scanner(System.in);
		Scanner sc2 = new Scanner(System.in); 
		int a = sc;
		String s = sc2;

		if(a >= 3200){
			System.out.println(s);
		}else{
			System.out.println(red);
		}
	}
}

Compiler output:
Main.java:8: error: incompatible types: Scanner cannot be converted to int
		int a = sc;
		        ^
Main.java:9: error: incompatible types: Scanner cannot be converted to String
		String s = sc2;
		           ^
Main.java:14: error: cannot find symbol
			System.out.println(red);
			                   ^
  symbol:   variable red
  location: class Main
3 errors
Language: C++

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

int a;
stting str;
int main(){
  ios::sync_with_stdio(NULL);
  cin.tie(nullptr),cout.tie(nullptr);
  cin>>a>>str;
  cout<<(a>=32?str:"red")<<endl;
  return 0;
}


Compiler output:
a.cc:5:1: error: 'stting' does not name a type; did you mean 'stdin'?
    5 | stting str;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:9:11: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |   cin>>a>>str;
      |           ^~~
      |           std
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        final String s = scan.next();   
        final String t = scan.next();
        String resultStr = s;
        boolean isFind = true;
        String tempT;
        int count = 1;
        int[] findIndex = new int[t.length()];
        String[] findString = new String[t.length()]

        // tを構成する全英文字がsに含まれているか
        for(int i = 0; i < t.length(); i++){
            tempT = t.substring(i, i + 1);
            if(s.contains(tempT)){
                findIndex[i] = s.indexOf(tempT);
                findString = tempT;
            }else{
                isFind = false;
                break;
            }
        }
        if(isFind){
            for(int i = 1; i < t.length(); i++){
                if(findIndex[i - 1] > findIndex[i] && !s.indexOf(findString[i], findIndex[i - 1]) + 1){
                    resultStr = resultStr + s;
                    count++;
                }
            }
            resultStr = resultStr.substring(0, (count - 1) * s.length() + findIndex[t.length() - 1] + 1);
            System.out.println(resultStr.length());


        }else{
            System.out.println("-1");
        }
        scan.close();
    }
}

Compiler output:
Main.java:12: error: ';' expected
        String[] findString = new String[t.length()]
                                                    ^
1 error
Language: C

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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 's' was not declared in this scope
    8 |     printf("%s",s);
      |                 ^
Language: C++

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

int n;
  cin>>n;
  string s;
  cin>>s;
  if(n<3200)
    cout<<"red\n";
  else
    cout<<s<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected '}' at end of input
   13 |     cout<<s<<endl;
      |                   ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

int main()
{
  int a,i;
  char s[10];
  scanf("%d",&a);
  for(i=0;i<10;i++)
  {
    gets(s);
  }
    if (a<3200 && a>=2800)
    {
      printf("RED\n");
    }
    else if(a>3200 && a<5000)
    {
    for(i=0;i<10;i++)
    {
      puts(s);
    }
  }
}


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

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


Compiler output:
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     cout<<'red'<<endl;
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |   str s;
      |   ^~~
      |   std
a.cc:7:8: error: 's' was not declared in this scope
    7 |   cin>>s;
      |        ^
a.cc:11:8: error: expected primary-expression before ')' token
   11 |   else(){
      |        ^
Language: C++

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

int main() {
  int a;
  char s;
  cin >> a >> s;
  
  cout << (a < 3200 ? "red" : s) << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: operands to '?:' have different types 'const char*' and 'char'
    9 |   cout << (a < 3200 ? "red" : s) << endl;
      |            ~~~~~~~~~^~~~~~~~~~~
Language: C++

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

int main() {
  int a;
  char s;
  cin >> a >> s;
  
  cout << (a <= 3200? "red":s) << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: operands to '?:' have different types 'const char*' and 'char'
    9 |   cout << (a <= 3200? "red":s) << endl;
      |            ~~~~~~~~~^~~~~~~~~
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 if (A <3200){
        cout << "red" << endl;
    }
    
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'A'
    7 |     cin A >> S;
      |        ^~
      |        ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |     gets(s);
      |     ^~~~
      |     fgets
main.c: At top level:
main.c:11:2: error: stray '#' in program
   11 | }#include<stdio.h>
      |  ^
main.c:11:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   11 | }#include<stdio.h>
      |          ^
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"<<endl;
   }

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

#include <iostream>
#include <string>

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

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:6: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:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin>>a;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:8: error: 's' was not declared in this scope
    9 |   cin>>s;
      |        ^
a.cc:11:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   if(a<3200) cout << "red";
      |              ^~~~
      |              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:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   else cout << s;
      |        ^~~~
      |        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 <iostream.h>
using namespace std;

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

    cin >> a;
    cin >> s;

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

    return 0;
}

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

#include <iostream>
using namespace std;

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

    cin >> a;
    cin >> s;

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

    return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
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" << endl;
  } else {
    cout << s << endl;
  }
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: found ':' in nested-name-specifier, expected '::'
    9 |   cin >> a:
      |           ^
      |           ::
a.cc:9:10: error: 'a' is not a class, namespace, or enumeration
    9 |   cin >> a:
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FIO {ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);}
bool used[2000006];
vector<int> adj[2000006];
long long c[2000006]={0};
void dfs(int s,int val){
	c[s]+=val;
	for(auto i:adj[s])
		dfs(i,val);
}

int main(){
	FIO
	
	int n,m;cin>>n>>m;
	for(int i=0;i<n-1;i++){
		int a,b;cin>>a>>b;
		adj[a].push_back(b);
	}
	map<int,long long int> mapp;
	for(int i=0;i<m;i++){
		long long a,val;cin>>a>>val;
		mapp.insert({a,mapp[a]+=val});
	}
	for(auto i:mapp){
		memeset(used,0,sizeof(used));
		dfs(i.first,i.second);
	}
	
	for(int i=1;i<=n;i++)cout<<c[i]<<" ";
		
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:17: error: 'memeset' was not declared in this scope; did you mean 'memset'?
   27 |                 memeset(used,0,sizeof(used));
      |                 ^~~~~~~
      |                 memset
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>> a >> s;
      |   ^~~
      |   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
      |                  ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string s;
      |     ^~~~~~
a.cc:5:5: 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:14: error: 's' was not declared in this scope
    6 |   cin>> a >> s;
      |              ^
Language: C

#include <stdio.h>
int main(void){
	int a;
	char s[11];
	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:7:12: error: expected '(' before 'a'
    7 |         if a>=3200{
      |            ^
      |            (
Language: C

#include <stdio.h>
int main(void){
	int a;
	char s[11];
	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:7:12: error: expected '(' before 'a'
    7 |         if a=>3200{
      |            ^
      |            (
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a;
string s;
int main(){
	ios_base::sync_with_stdio(0);cin.tie(0);
	cin >> a;
	cin >> s;
	if (a >= 3200){
		cout << s;
		}else (
		cout << "red";
		)

}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: expected ')' before ';' token
   13 |                 cout << "red";
      |                              ^
      |                              )
a.cc:12:23: note: to match this '('
   12 |                 }else (
      |                       ^
a.cc:14:17: error: expected primary-expression before ')' token
   14 |                 )
      |                 ^
Language: C++

#include <cstdio>
#include <cstring>
using namespace std;

int main(){
  int a;
  string str;
  ios::sync_with_stdio(false);
  while(cin>>a>>str){
   if(a<3200){
   	cout << str <<"\n";
   }else{
     cout << "red\n" ;
   }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string str;
      |   ^~~~~~
a.cc:3:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    2 | #include <cstring>
  +++ |+#include <string>
    3 | using namespace std;
a.cc:8:3: error: 'ios' has not been declared
    8 |   ios::sync_with_stdio(false);
      |   ^~~
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |   while(cin>>a>>str){
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <cstring>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:9:17: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |   while(cin>>a>>str){
      |                 ^~~
      |                 std
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << str <<"\n";
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:6: error: 'cout' was not declared in this scope
   13 |      cout << "red\n" ;
      |      ^~~~
a.cc:13:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
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 << endl;
    }


}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'red' was not declared in this scope; did you mean 'read'?
   15 |         cout << red << endl;
      |                 ^~~
      |                 read
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 << endl;
    }


}

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

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

int main() {
    int a;
    string s;

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

    else{
        cout << red << endl;
    }


}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'red' was not declared in this scope; did you mean 'read'?
   13 |         cout << red << endl;
      |                 ^~~
      |                 read
Language: C

#include(stdio.h)
int main()
{
  int a;
  char s;
  scanf("%d",&a);
  scanf("%c",&s);
  if(3200>a)
  {
    printf("red\n");
  {
  else
  {
    printf("%c\n",s);
  {
  return0;
{

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d",&a);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |     printf("red\n");
      |     ^~~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:3: error: 'else' without a previous 'if'
   12 |   else
      |   ^~~~
main.c:16:3: error: 'return0' undeclared (first use in this function)
   16 |   return0;
      |   ^~~~~~~
main.c:16:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:1: error: expected declaration or statement at end of input
   17 | {
      | ^
main.c:17:1: error: expected declaration or statement at end of input
main.c:17:1: error: expected declaration or statement at end of input
main.c:17:1: error: expected declaration or statement at end of input
main.c:17:1: error: expected declaration or statement at end of input
main.c:17:1: error: expected declaration or statement at end of input
Language: C++

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

    int main(){
    	int a;
      String s;
      cin>>a;
      cin>>s;
      if(a<3200)
        cout<<"red";
      else
        cout<<s;
      return0;
    }

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

    #include<bits/stdc++.h>
    int main(){
    	int a;
      String s;
      cin>>a;
      cin>>s;
      if(a<3200)
        cout<<"red";
      else
        cout<<s;
      return0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: 'String' was not declared in this scope
    4 |       String s;
      |       ^~~~~~
a.cc:5:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |       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:6:12: error: 's' was not declared in this scope
    6 |       cin>>s;
      |            ^
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout<<"red";
      |         ^~~~
      |         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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         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:11:7: error: 'return0' was not declared in this scope
   11 |       return0;
      |       ^~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:4:3: 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:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a;
      |   ^~~
      |   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:6:8: error: 's' was not declared in this scope
    6 |   cin>>s;
      |        ^
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<"red";
      |     ^~~~
      |     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<<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:11:3: error: 'return0' was not declared in this scope
   11 |   return0;
      |   ^~~~~~~
Language: C

#includ(stdio.h)
int main()
{
  int a;
  char s;
  scanf("%d",&a);
  scanf("%c",&s);
  if(3200>a)
  {
    printf("red\n");
  {
  else
  {
    printf("%c\n",s);
  {
  return0;
{

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ(stdio.h)
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includ(stdio.h)
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d",&a);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |     printf("red\n");
      |     ^~~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:3: error: 'else' without a previous 'if'
   12 |   else
      |   ^~~~
main.c:16:3: error: 'return0' undeclared (first use in this function)
   16 |   return0;
      |   ^~~~~~~
main.c:16:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:1: error: expected declaration or statement at end of input
   17 | {
      | ^
main.c:17:1: error: expected declaration or statement at end of input
main.c:17:1: error: expected declaration or statement at end of input
main.c:17:1: error: expected declaration or statement at end of input
main.c:17:1: error: expected declaration or statement at end of input
main.c:17:1: error: expected declaration or statement at end of input
Language: C++

#includ(stdio.h)
int main()
{
  int a;
  char s;
  scanf("%d",&a);
  scanf("%c",&s);
  if(3200>a)
  {
    printf("red\n");
  {
  else
  {
    printf("%c\n",s);
  {
  return0;
{

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ(stdio.h)
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf' was not declared in this scope
    6 |   scanf("%d",&a);
      |   ^~~~~
a.cc:10:5: error: 'printf' was not declared in this scope
   10 |     printf("red\n");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #includ(stdio.h)
a.cc:12:3: error: expected '}' before 'else'
   12 |   else
      |   ^~~~
a.cc:11:3: note: to match this '{'
   11 |   {
      |   ^
a.cc:12:3: error: expected '}' before 'else'
   12 |   else
      |   ^~~~
a.cc:9:3: note: to match this '{'
    9 |   {
      |   ^
a.cc:14:5: error: 'printf' was not declared in this scope
   14 |     printf("%c\n",s);
      |     ^~~~~~
a.cc:14:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:16:3: error: 'return0' was not declared in this scope
   16 |   return0;
      |   ^~~~~~~
a.cc:17:2: error: expected '}' at end of input
   17 | {
      | ~^
a.cc:17:2: error: expected '}' at end of input
a.cc:15:3: note: to match this '{'
   15 |   {
      |   ^
a.cc:17:2: error: expected '}' at end of input
   17 | {
      |  ^
a.cc:13:3: note: to match this '{'
   13 |   {
      |   ^
a.cc:17:2: error: expected '}' at end of input
   17 | {
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

#include <string>
#include <iostream>
using namesapce std;
int main(){
  int n;
  cin >> n;
  string s;
  cin >> s;
  if(n >= 3200)s = "red";
  cout << s << endl;
  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
    3 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> n;
      |   ^~~
      |   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:7:3: error: 'string' was not declared in this scope
    7 |   string s;
      |   ^~~~~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 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:8:10: error: 's' was not declared in this scope
    8 |   cin >> s;
      |          ^
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   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:10:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << s << endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

int a[100000001]

int main() {
	a[0] = 10;
    a[100000000] = 10;
    std::cout << a[0] << a[100000000] << std::endl;
	return 0;
}

Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int main() {
      | ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	ios_base::sync_with_stdio(0);cin.tie(0);
	int n;
	string s;
	cin>>n>>s;
	if(a<3200)
		cout<<"red";
	else
		cout<<s;
}

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

#include <stdio.h>

int main<void>{
  int a;
  char s[10];

  scanf{"%d", &a};
  scanf{"%s", &s};

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

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    3 | int main<void>{
      |         ^
Language: C++

// includes {{{
#include<iostream>
#include<iomanip>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#include<map>
#include<set>
#include<tuple>
#include<cmath>
#include<random>
#include<cassert>
#include<bitset>
#include<cstdlib>
// #include<deque>
// #include<multiset>
// #include<cstring>
// #include<bits/stdc++.h>
// }}}
using namespace std;
using ll = long long;

int main() {
  std::ios::sync_with_stdio(false), std::cin.tie(0);
  int a;
  string s;
  cin >> n >> s;
  if(a >= 3200) cout << s << endl;
  else cout << "red" << endl;
  return 0;
}


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

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

using namespace std;

int main(){
	int a;
	string s;
	cin >> a;
	cin >> s;

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

	return 0;
}

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

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

using namespace std;

int main(){
	int a;
	String s;
	cin >> a;
	cin >> s;

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

	return 0;
}

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

#include <iostream.h>

using namespace std;

int main(){
	int a;
	string s;
	cin >> a;
	cin >> s;

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

	return 0;
}

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

#include <iostream.h>

int main(){
	int a;
	string s;
	cin >> a;
	cin >> s;

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

	return 0;
}

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

import java.util.Scanner;

public class Q1 {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        String s = sc.next();

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

        System.out.println(s);

    }

}

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

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

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