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

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


Compiler output:
a.cc:10:3: error: 'cout' does not name a type
   10 |   cout << "red" << endl;
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

using namespace std;

int main()
{
  int N;
  cin >> N;
  string S;
  cin >> S;

  if(a>3199)
    cout << S << endl;
  else
    cout << "red" << endl;


  return 0;
}



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


#include<std
#include<stdio.h>

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

Compiler output:
main.c:2:13: error: missing terminating > character
    2 | #include<std
      |             ^
main.c:2:9: fatal error: std: No such file or directory
    2 | #include<std
      |         ^
compilation terminated.
Language: C++

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

Compiler output:
a.cc:1:14: error: missing terminating > character
    1 | #include<iost
      |              ^
a.cc:1:9: fatal error: iost: No such file or directory
    1 | #include<iost
      |         ^
compilation terminated.
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC138
{
	class Program
	{
		static void Main(string[] args)
		{


			int a;
			a = int.Parse(Console.ReadLine());
				
			
			if (a >= 3200)
				Console.WriteLine("pink");
			else if (a < 3200)
				Console.WriteLine("red");
			Console.ReadKey();
		}
	}
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:34: error: 'string' has not been declared
   11 |                 static void Main(string[] args)
      |                                  ^~~~~~
a.cc:11:43: error: expected ',' or '...' before 'args'
   11 |                 static void Main(string[] args)
      |                                           ^~~~
a.cc:25:10: error: expected ';' after class definition
   25 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void ABC138::Program::Main(int*)':
a.cc:16:29: error: expected primary-expression before 'int'
   16 |                         a = int.Parse(Console.ReadLine());
      |                             ^~~
a.cc:20:33: error: 'Console' was not declared in this scope
   20 |                                 Console.WriteLine("pink");
      |                                 ^~~~~~~
a.cc:22:33: error: 'Console' was not declared in this scope
   22 |                                 Console.WriteLine("red");
      |                                 ^~~~~~~
a.cc:23:25: error: 'Console' was not declared in this scope
   23 |                         Console.ReadKey();
      |                         ^~~~~~~
Language: C

// A - Red or Not
#include <stdio.h>

int main(void){
    int a;
    char s[20];
    scanf("%d", &a);
    scnaf("%s", s);
    if(a>=3200)printf("%s\n", s);
    else printf("red\n");

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |     scnaf("%s", s);
      |     ^~~~~
      |     scanf
Language: C++

#include <iostream> <Iostream>
использование пространства имен std ; 
int main () {
  int a ;
  cin >> a ;
  string s ;
  cin >> s ;
  if( а > 3200 ) 
    cout << "red" ;
  if( а < 3200 )
    cout<< s;
  if ( a== 3200 )
    cout << s ;
}

Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> <Iostream>
      |                     ^~~~~~~~~~
a.cc:2:1: error: '\U00000438\U00000441\U0000043f\U0000043e\U0000043b\U0000044c\U00000437\U0000043e\U00000432\U00000430\U0000043d\U00000438\U00000435' does not name a type
    2 | использование пространства имен std ;
      | ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> 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: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:
/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:7:10: error: 's' was not declared in this scope
    7 |   cin >> s ;
      |          ^
a.cc:8:7: error: '\U00000430' was not declared in this scope
    8 |   if( а > 3200 )
      |       ^
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:7: error: '\U00000430' was not declared in this scope
   10 |   if( а < 3200 )
      |       ^
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     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>
using namespace std;
int main(){
  int a;
  string s;
  if(a>3200)
    cout<<"red';
    else
      cout<<s;
}

Compiler output:
a.cc:7:11: warning: missing terminating " character
    7 |     cout<<"red';
      |           ^
a.cc:7:11: error: missing terminating " character
    7 |     cout<<"red';
      |           ^~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: expected primary-expression before 'else'
    8 |     else
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define optimizator ios_base::sync_with_stdio(0);
#define ll long long
#define str string
#define LOL unsigned long long int
using namespace std;
int main(){
	optimizator;
	int n;
	cin>>n;
	str a;
	cin>>a;
	if(n<=3200){
		cout<<a;
	}
	else{
		cout<<"red";2
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:30: error: expected ';' before '}' token
   17 |                 cout<<"red";2
      |                              ^
      |                              ;
   18 |         }
      |         ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: no match for 'operator||' (operand types are 'std::basic_ostream<char>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   12 |     cout<<"red"||s;
      |     ~~~~~~~~~~~^~~
      |         |        |
      |         |        std::string {aka std::__cxx11::basic_string<char>}
      |         std::basic_ostream<char>
a.cc:12:16: note: candidate: 'operator||(bool, bool)' (built-in)
   12 |     cout<<"red"||s;
      |     ~~~~~~~~~~~^~~
a.cc:12:16: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected '(' before 'cout'
   14 |     cout<<"red";
      |     ^~~~
      |     (
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a;
  cin>>a;
  string s;
  if (a>3200)
    cout<<s;
  if(a<3200)
    cout<<red;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'red' was not declared in this scope
   10 |     cout<<red;
      |           ^~~
a.cc:10:15: error: expected '}' at end of input
   10 |     cout<<red;
      |               ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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

#include <iostream>
using namespace std;
int a;

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

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

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define RREP(i, n) for (int i = (n); i >= 0; i--)
#define FOR(i, m, n) for (int i = (m); i < (n); i++)
#define ALL(obj) begin(obj), end(obj)
using namespace std;
using ll = long long;
using ull = unsigned long long;

const int INF = 2100100100;
const int MOD = 1e9 + 7;

// 多次元 vector 生成
template <class T> vector<T> make_vec(size_t a) { return vector<T>(a); }
template <class T, class... Ts> auto make_vec(size_t a, Ts... ts) {
    return vector<decltype(make_vec<T>(ts...))>(a, make_vec<T>(ts...));
}
template <class T> bool chmax(T &a, const T &b) {
    if (a < b) {
        a = b;
        return 1;
    }
    return 0;
}
template <class T> bool chmin(T &a, const T &b) {
    if (b < a) {
        a = b;
        return 1;
    }
    return 0;
}
int main() {
    // cin.tie(0);
    // ios::sync_with_stdio(false);

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:14: error: 'n' was not declared in this scope
   39 |     if(3200<=n){
      |              ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a;
      |   ^~~
a.cc:7:8: error: 's' was not declared in this scope
    7 |   cin>>s;
      |        ^
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |   if(a>=3200)cout<<"red";
      |              ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout<<s;
      |        ^~~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<endl;
      |   ^~~~
a.cc:10:9: error: 'endl' was not declared in this scope
   10 |   cout<<endl;
      |         ^~~~
Language: C++

#include <iostream>

int main(){
	using namespace std;
	int a;
	string s;
	cin >> a >> s;
	if (a < 3200) {
		cout << s << endl;

	}
	else {
		cout << "red" << emdl;
	}
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
#define int int64_t
#define PB push_back
#define loop(i,x,y) for(int i=x;i<y;i++)
#define rloop(i,x,y) for(int i=x;i>y;i--)
#define NL cout<<"\n"
#define ans(x) cout<<x<<"\n"
#define out(x) cout<<x<<" "
#define F first
#define S second
#define ansf(x,y) cout<<fixed<<setprecision(y)<<x<<endl;
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);
void solve()
{
  string s;
  cin>>s;
  int n=stoi(s);
  ans((n>=3200?"red":n));
}
signed main()
{
  // FAST;
  int T=1;
  // cin>>T;
  while(T--) solve();
  return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:19:15: error: operands to '?:' have different types 'const char*' and 'int64_t' {aka 'long int'}
   19 |   ans((n>=3200?"red":n));
      |        ~~~~~~~^~~~~~~~
a.cc:8:22: note: in definition of macro 'ans'
    8 | #define ans(x) cout<<x<<"\n"
      |                      ^
Language: Java

package java.lang;
import java.util.ArrayList;
import java.util.Scanner;
import java.util.Collections;
/**
 * @author shirai_a
 *
 */
public class nabe {
    /**
     * @param args
     */
    public static void main(String[] args) {
        ArrayList<Double> intlist = new ArrayList<>();
        Scanner sc = new Scanner(System.in);
        sc.nextLine();
        for (String str: sc.nextLine().split(" ")){
            intlist.add(Double.parseDouble(str));
          }
            sc.close();
        Collections.sort(intlist);
        double tr = intlist.get(0);
        for(int i = 0; i < intlist.size();) {
            tr = (tr + intlist.get(++i))/2;
        }
        System.out.println(tr);
    }
}


Compiler output:
Main.java:1: error: package exists in another module: java.base
package java.lang;
^
Main.java:9: error: class nabe is public, should be declared in a file named nabe.java
public class nabe {
       ^
2 errors
Language: C++

//   _/                _/                 _/_/_/   _/
//_/_/_/_/   _/_/   _/_/_/_/   _/_/    _/       _/_/
// _/     _/    _/   _/     _/    _/  _/_/_/     _/
//_/     _/    _/   _/     _/    _/  _/    _/   _/
// _/_/   _/_/       _/_/   _/_/      _/_/     _/
#include<iostream>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<set>
#include<map>
#include<queue>
#include<vector>
using namespace std;
typedef long long ll;
const int MOD=1e9+7;
const double pi=3.14159265358979323846;
const int inf=1e9;
const ll INF=1e18;
typedef pair<int,int> P;
int main() {
  cin.tie(0),cout.tie(0);
  ios::sync_with_stdio(false);
  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:26:3: error: expected initializer before 'cin'
   26 |   cin >> a >> s;
      |   ^~~
a.cc:28:13: error: 's' was not declared in this scope
   28 |     cout << s << endl;
      |             ^
Language: C++

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

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

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

#include <bits/stdc++.h>

using namespace std;

#define pb push_back
#define F first
#define S second
#define INF ll(1e18)
#define MOD 1000000007

typedef long long ll;
typedef pair<ll,ll> ii;
typedef vector<ll> vi;
typedef long double ld;

int main(){
	ios_base::sync_with_stdio(0); cin.tie(0);
    int a,string b;cin>>a>>b;
    if(a<3200){cout<<"red";}
    else{cout<<b;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected initializer before 'b'
   18 |     int a,string b;cin>>a>>b;
      |                  ^
a.cc:18:28: error: 'b' was not declared in this scope
   18 |     int a,string b;cin>>a>>b;
      |                            ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
#define int ll
#define double long double
#define nn '\n'
#define YES cout<<"YES"<<'\n'
#define NO cout<<"NO"<<'\n'
#define Yes cout<<"Yes"<<'\n'
#define No cout<<"No"<<'\n'
#define yes cout<<"yes"<<'\n'
#define no cout<<"no"<<'\n'
void YN(bool flg){cout<<(flg?"YES":"NO")<<'\n';}
void Yn(bool flg){cout<<(flg?"Yes":"No")<<'\n';}
void yn(bool flg){cout<<(flg?"yes":"no")<<'\n';}
#define SORT(a) sort(a.begin(),a.end())
#define REVERSE(a) reverse(a.begin(),a.end())
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define out(n) cout << n << '\n';
typedef vector<int> VI;
typedef vector<VI> VVI;
const int MOD = 1000000007;
const long long INF = 10e10;
const double PI = acos(-1.0);
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<class T>auto MAX(const T& a) { return *max_element(a.begin(),a.end()); }
template<class T>auto MIN(const T& a) { return *min_element(a.begin(),a.end()); }
template<class T, class U>U SUM(const T& a, const U& v) { return accumulate(a.begin(),a.end(), v); }
template<class T, class U>int LOWER(const T& a, const U& v) { return lower_bound(a.begin(),a.end(), v) - a.begin(); }
template<class T, class U>int UPPER(const T& a, const U& v) { return upper_bound(a.begin(),a.end(), v) - a.begin(); }
int GCD(int a, int b) { return b ? GCD(b, a%b) : a; }
int LCM(int a, int b) { int g = GCD(a, b); return a / g * b; }
int POW(int a, int n) { int r = 1; while (n > 0) { if (n & 1)r *= a; a *= a; n /= 2; }return r; }
int isPrime(int n){if(n<2){return 0;}for(int i=2; i*i<=n; i++){if(n%i==0){return 0;}}return 1;}
/*素因数分解*/map< int, int >prime_factor(int n){map< int, int > ret;for(int i = 2; i * i <= n; i++) {while(n % i == 0) {ret[i]++;n /= i;}}if(n != 1) ret[n] = 1;return ret;}
/*約数列挙*/vector<int> divisor(int n){vector<int> v; for(int i=1; i*i<=n; i++){if(n%i==0){v.push_back(i);if(i!=n/i){v.push_back(n/i);}}}sort(v.begin(),v.end()); return v;}
//----------------ライブラリとか----------------

signed main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    cout<<fixed<<setprecision(15);

    int a; cin >> a;
    string s; cin >> s;
    if(a>=3200)out(s); else out("red");

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:24: error: 'else' without a previous 'if'
   50 |     if(a>=3200)out(s); else out("red");
      |                        ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected expression before '%' token
    6 |   scanf("%d",%a);
      |              ^
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  char s[10];
  int a;
  scanf("%s",%a);
  scanf("%s",s);
  if(3200 > a) strcpy(s,"red");
  printf("%s",s);
}


Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected expression before '%' token
    6 |   scanf("%s",%a);
      |              ^
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  char s[10];
  int a;
  scanf("%s",s);
  scanf("%d",&a);
  if(3200 > a) *strcpy(s,"red",5);
  printf("%s",s);
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: too many arguments to function 'strcpy'
    8 |   if(3200 > a) *strcpy(s,"red",5);
      |                 ^~~~~~
In file included from main.c:2:
/usr/include/string.h:141:14: note: declared here
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |              ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:15: error: too many arguments to function 'strcpy'
    8 |   if(3200 > a)strcpy(s,"red",3);
      |               ^~~~~~
In file included from main.c:2:
/usr/include/string.h:141:14: note: declared here
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |              ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:12: error: expected expression before '>' token
    8 |   if(3200 => a)strcpy(s,"red");
      |            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected ')' before 's'
    6 |   scanf("%s"s);
      |        ~    ^
      |             )
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  char s[10];
  int a;
  if(3200 <= a) char *strcpy(s,"red");
  printf("%s",s);
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected expression before 'char'
    6 |   if(3200 <= a) char *strcpy(s,"red");
      |                 ^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  char s[10];
  char red[] = "red";
  int a;
  if(3200 <= a) char *strcpy(char *s, const char *red);
  printf("%s",s);
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected expression before 'char'
    7 |   if(3200 <= a) char *strcpy(char *s, const char *red);
      |                 ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected ';' before 'printf'
    8 |   else(x < 3200)printf("red");
      |                 ^~~~~~
      |                 ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:18: error: assignment to expression with array type
    5 |   if(3200 < a) s = "red";
      |                  ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:20: error: 'red' undeclared (first use in this function); did you mean 'fread'?
    5 |   if(3200 < a) s = red;
      |                    ^~~
      |                    fread
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: assignment to expression with array type
    5 |   if(3200 < a)s = "red";
      |                 ^
Language: C

#include <stdio.h>
int main()
{
int A;
char S[10];
scanf("%d %s", &A,S);
if(A<=3200)
	puts("red");
else
	prtinf("%s",S);
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'prtinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |         prtinf("%s",S);
      |         ^~~~~~
      |         printf
Language: C

#include <stdio.h>
int main()
{
int A;
char S[10];
scanf("%d %s", &A,&S);
if(A<=3200)
	puts("red");
else
	prtinf("%s",S);
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'prtinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |         prtinf("%s",S);
      |         ^~~~~~
      |         printf
Language: C

#include <stdio.h>
int main()
{
int A;
char S[10];
scanf("%d%s", &A,S);
if(A<=3200)
	puts("red");
else
	prtinf("%s",S);
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'prtinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |         prtinf("%s",S);
      |         ^~~~~~
      |         printf
Language: C

#include <stdio.h>
int main()
{
int A;
char S[10];
scanf("%d%s", &A,&S);
if(A<=3200)
	puts("red");
else
	prtinf("%s",S);
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'prtinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |         prtinf("%s",S);
      |         ^~~~~~
      |         printf
Language: C

#include <stdio.h>
int main()
{
int A;
char S[];
scanf("%d%s", &A,&S);
if(A<=3200)
	puts("red");
else
	prtinf("%s",S);
}

Compiler output:
main.c: In function 'main':
main.c:5:6: error: array size missing in 'S'
    5 | char S[];
      |      ^
main.c:10:9: error: implicit declaration of function 'prtinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |         prtinf("%s",S);
      |         ^~~~~~
      |         printf
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |   cout << ans << endl;
      |           ^~~
      |           abs
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:7: error: ';' expected
        String s = sc next();
                     ^
1 error
Language: C++

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

typedef long long ll;

template<typename T>
void out(T x) { cout << x << endl; exit(0); }
#define watch(x) cout << (#x) << " is " << (x) << endl

const int maxn = 1e6 + 5;

int main() {
  ios_base::sync_with_stdio(false); cin.tie(0);  cout.tie(0);
  cout << fixed << setprecision(12);
  int n; string s;
  cin>>n>>s;
  
  if (a<3200) out("red");
  out(s);

  return 0;
}


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

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

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

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

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

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

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

#include <bits/stdc++.h>
#define REP(i,n) for (int i = 0; i < (n); i++)
#define RREP(i, s, n) for (int i = s; i < (n); i++)
#define ALL(a) a.begin(), a.end()
#define RALL(a) a.rbegin(), a.rend()
#define maxs(x,y) x = max(x, y)
#define mins(x,y) x = min(x, y)
using namespace std;
using ll = long long;
typedef pair<int, int> pint;
typedef pair<ll, ll> pll;
const ll MOD = 1000000007;
const ll INF = MOD * MOD;
const int inf = (1<<29);

int main() {

    int a;
    cin >> a;
    string S;
    cin >> S;
    
    cout << (a >= 3200 ? s : "red") << endl;



    //cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:26: error: 's' was not declared in this scope
   23 |     cout << (a >= 3200 ? s : "red") << endl;
      |                          ^
Language: C++

//inlclude前用define 
#define _USE_MATH_DEFINES

//include
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<type_traits>
#include<numeric>
//#include<deque>
#include<iomanip>
#include<set>
#include<tuple>
#include<map>

using namespace std;

//typedef
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<char> VC;
typedef long long int ll;

//define
#define INF 1e9 
#define NUM 1000000007
#define all(x) begin(x), end(x)
#define rep(i,n) for(int i=0;i<(int)(n);i++)

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

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



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

#include <bits/stdc++.h>

using namespace std;
typedef long long int LL;
typedef long long int LLint;

//Faster Coding
#define ED return 0
#define GET(a) int a;cin >> a
#define SGET(a) string a;cin >> a
#define CGET(a) char a;cin >> a
#define PRINT(a) cout << a << endl
#define ANS(a,b) int a;cin >> a;cout << b << endl
#define SORT(vec) sort(vec.begin(),vec.end())
#define REV(vec) reverse(vec.begin(),vec.end())

//Difficult Syntax
#define DOUBLECHANGE(count) cout << setprecision(count)

//As Function
#define UP(a,b) ((a+(b-1))/b)
#define ipow(x,y) LL(pow(x,y))

//Debug
#define TEST cout << "OK" << endl

const long long INF = 999999999;
const long long mod = 1000000007;

int main(){
      cin.tie(0);
      ios::sync_with_stdio(false);
      GET(A);
      SGET(S);
      PRINT((A>=3200)?S:"red");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 | #define PRINT(a) cout << a << endl
      |                            ^
a.cc:35:7: note: in expansion of macro 'PRINT'
   35 |       PRINT((A>=3200)?S:"red");
      |       ^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'cour' was not declared in this scope
    9 |     if(a>=3200) cour << s << endl;
      |                 ^~~~
Language: Java

import java.util.Scanner;
import java.util.Arrays;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int[] b = new int[a];
    for(int i = 0;i < b.length;i++){
      b[i] = sc.nextInt();
    }
    Arrays.sort(b);
    double c = (double)(b[0] + b[1]) / 2;
    for(int j = 2; j < b.length; j++){
      c = (double)(tmp + b[j]) / 2;
    }
    System.out.println(c);
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
      c = (double)(tmp + b[j]) / 2;
                   ^
  symbol:   variable tmp
  location: class Main
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 << 'pink' << endl;
}

Compiler output:
a.cc:13:15: warning: multi-character character constant [-Wmultichar]
   13 |       cout << 'pink' << endl;
      |               ^~~~~~
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before '>' token
    9 |         if (a =>3200) {
      |                ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 's' was not declared in this scope
    8 | if(n>=3200)cout << s << endl;
      |                    ^
Language: C++

#include<bits/c++.h>

using namespace std;

typedef long long ll;

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


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

#include<bits/c++.h>

using namespace std;

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


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

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

Compiler output:
Main.java:8: error: ')' expected
    if(judge(a);){
               ^
Main.java:8: error: illegal start of expression
    if(judge(a);){
                ^
Main.java:10: error: 'else' without 'if'
    }else{
     ^
3 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     int a;cin>>a;string s;cin>>s;
      |           ^~~
      |           std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:18: error: 'string' was not declared in this scope
    4 |     int a;cin>>a;string s;cin>>s;
      |                  ^~~~~~
a.cc:4:18: 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:
/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:4:32: error: 's' was not declared in this scope
    4 |     int a;cin>>a;string s;cin>>s;
      |                                ^
a.cc:5:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     if(a<3200) 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:5:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     if(a<3200) cout<<"red"<<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:6:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     else 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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     else cout<<s<<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.*; 
 
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:13: error: reached end of file while parsing
}
 ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'ciin' was not declared in this scope
    6 |   ciin>>a;
      |   ^~~~
Language: Java

import java.util.*;

public class Main{

	public static void main (String[] args){

	//variable

		int a;
		String s;
		Scanner sc= new Scanner(System.in);

	//number

		System.out.println("Enter a");
		a= sc.nextInt();
		sc.nextLine();
		System.out.println("Enter color");
		s= sc.nextLine();

	//if statement

		if(a<3200)
			System.out.println(s);
		else
			System.out.println("red");

Compiler output:
Main.java:26: error: reached end of file while parsing
			System.out.println("red");
			                          ^
1 error
Language: Java

import java.util.*;
public class Competition1A
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);

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

		if(a<3200)
		{
			System.out.println(s);
		}
		else
			System.out.println("red");
	}
}

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

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

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

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

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

#include<bits/stc++.h>
using namespace std;
int main()
{int a;
 string h;
 
 cin>>a;
  getline(cin,h);
 if(a<3200)
   cout<<"red";
 else 
   cout<<h;
 
 
 
 
 
 
 
return 0;
}

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

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

 cin>>a;
  getline(cin,h);
 if(a>3200)
   cout<<"red";
 else 
   cout<<h;
 
 
 
 
 
 
 
return 0;
}

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

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






return 0;
}

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		String S;
		if(a >= 3200){
			System.out.println(S);	
		}else if(a <= 3200){
			System.out.println("red");
		}
		}
	}

Compiler output:
Main.java:8: error: variable S might not have been initialized
			System.out.println(S);	
			                   ^
1 error
Language: Java

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

Compiler output:
Main.java:8: error: variable s might not have been initialized
			System.out.println(s);	
			                   ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		String s = scanner.nextLine();
		if(a >= 3200){
			System.out.println(s);	
		}else if(a < 3200){
			System.out.println('red');
		}
		}
	}

Compiler output:
Main.java:10: error: unclosed character literal
			System.out.println('red');
			                   ^
Main.java:10: error: unclosed character literal
			System.out.println('red');
			                       ^
Main.java:10: error: not a statement
			System.out.println('red');
			                     ^
3 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		if(a.equals(3200 <= a)){
			System.out.println("s");	
		}else{
			System.out.println("red");
		}
		
		}
	}


Compiler output:
Main.java:6: error: int cannot be dereferenced
		if(a.equals(3200 <= a)){
		    ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		String a = scanner.nextLine();
		if(a.equals(3200 <= a)){
			System.out.println("s");	
		}else{
			System.out.println("red");
		}
		
		}
	}


Compiler output:
Main.java:6: error: bad operand types for binary operator '<='
		if(a.equals(3200 <= a)){
		                 ^
  first type:  int
  second type: String
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		String a = scanner.nextInt();
		if(a.equals(3200 <= a)){
			System.out.println("s");	
		}else{
			System.out.println("red");
		}
		
		}
	}


Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
		String a = scanner.nextInt();
		                          ^
Main.java:6: error: bad operand types for binary operator '<='
		if(a.equals(3200 <= a)){
		                 ^
  first type:  int
  second type: String
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		string a = scanner.nextInt();
		if(a.equals(3200 <= a)){
			System.out.println("s");	
		}else{
			System.out.println("red");
		}
		
		}
	}

Compiler output:
Main.java:5: error: cannot find symbol
		string a = scanner.nextInt();
		^
  symbol:   class string
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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("red");
			}
			else {	
				System.out.println(s);
			}	
	 }


Compiler output:
Main.java:10: error: illegal start of type
			if (a <= 3200) {
			^
Main.java:10: error: <identifier> expected
			if (a <= 3200) {
			     ^
Main.java:13: error: illegal start of type
			else {	
			^
3 errors
Language: C++

#include<iostream>
#include<string>
int a;
string s;
int main(){
  scanf("%d",&a);
  cin>> s;
  if(a<3200)cout<<"red"<<endl;
  else cout<<s<<endl; 
  return 0;
}


Compiler output:
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string s;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>> s;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 's' was not declared in this scope
    7 |   cin>> s;
      |         ^
a.cc:8:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(a<3200)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:8:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   if(a<3200)cout<<"red"<<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)
      |     ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else 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:9:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   else cout<<s<<endl;
      |                 ^~~~
      |                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~