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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:18: error: 'string' was not declared in this scope
    2 | int main(){int a;string s;std::cin>>a>>s;if(a>=3200){std::cout<<s;}else{std::cout<<"red";}}
      |                  ^~~~~~
a.cc:2: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,
                 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:2:40: error: 's' was not declared in this scope
    2 | int main(){int a;string s;std::cin>>a>>s;if(a>=3200){std::cout<<s;}else{std::cout<<"red";}}
      |                                        ^
Language: C++

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

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h> int main(){int a;string s;std::cin>>a>>s;if(a>=3200){std::cout<<s<<std::endl;}else{std::cout<<"red"<<std::endl;}}
      |                          ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;
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:5:11: error: found ':' in nested-name-specifier, expected '::'
    5 |   cin >> a:
      |           ^
      |           ::
a.cc:5:10: error: 'a' is not a class, namespace, or enumeration
    5 |   cin >> a:
      |          ^
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
Language: C++

#include<iostream>
using namespace std;
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:8:6: error: 'a' was not declared in this scope
    8 |   if(a<3200)
      |      ^
Language: C++

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

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

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

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
	Scanner scn = new Scanner(System.in);
	int a = scn.nextInt();
      String s = scn.next();
      if(a<2800 || a>=5000){
        String s = "red";
      }
      System.out.println(s);
	}
}

Compiler output:
Main.java:9: error: variable s is already defined in method main(String[])
        String s = "red";
               ^
1 error
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:9: error: cannot find symbol
        System.out.println(s);
                           ^
  symbol:   variable s
  location: class Main
1 error
Language: C++

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

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

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

int main() {
  double A;
  cin >> A;
  int X;
  int sum = 0;
 for(int i = 0;i < A;i++){
   cin >> X;
   sum += X;
   cin >> sum
}
 double H = sum / A;
  double C = A * A;
  cout << H / C << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected ';' before '}' token
   12 |    cin >> sum
      |              ^
      |              ;
   13 | }
      | ~
Language: C++

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

int main() {
  double A;
  cin >> A;
  int X;
  sum = 0;
 for(int i = 0;i < A;i++){
   cin >> X;
   sum += X;
   cin >> sum
}
 double H = sum / A;
  cout << H / A << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'sum' was not declared in this scope
    8 |   sum = 0;
      |   ^~~
Language: Java

import java.util.*;

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


Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to int
        int s = sc.next();
                       ^
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 {
		cour << "red" << endl;
	}

}






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

#includ<iostream>
using namespace std;
int main(){
double a,c=0;
  	cin >> a;
  	for (int i=0; i<a; i++) {
      double b;
      cin >> b;
      c+=1/b;
    }
  	cout << 1/c;
      
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> a;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includ<iostream>
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << 1/c;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

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:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++


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

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


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

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

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

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


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

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected '}' before 'else'
   12 |     else {
      |     ^~~~
a.cc:10:23: note: to match this '{'
   10 |         if (n < 3200) {
      |                       ^
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <queue>
#include <stack>
#include <vector>
#include <string>
#include <set>
#include <map>
#include <random>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define repp(i,n,m) for (int i = m; i < (n); ++i)
#define repl(i,n) for (long long i = 0; i < (n); ++i)
#define reppl(i,n,m) for (long long i = m; i < (n); ++i)
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<int, int>;
using PL = pair<long long, long long>;
using Pxy = pair<double, double>;
using T = tuple<int, int, bool>;
const int INF = 1001001007;
const int mod = 1000000007;
//const int MOD = 998244353;
const ll inf = 1e18;
template <typename AT>
void printvec(vector<AT> &ar){
    rep(i,ar.size()-1) cout << ar[i] << " ";
    cout << ar[ar.size()-1] << endl;
}
template <typename Q>
void printvvec(vector<vector<Q>> &ar){
    rep(i,ar.size()){
        rep(j,ar[0].size()-1) cout << ar[i][j] << " ";
        cout << ar[i][ar[0].size()-1] << endl;
    }
}
template <typename S>
bool range(S a, S b, S x){
    return (a <= x && x < b);
}

struct mint {
  ll x; // typedef long long ll;
  mint(ll x=0):x((x%mod+mod)%mod){}
  mint operator-() const { return mint(-x);}
  mint& operator+=(const mint a) {
    if ((x += a.x) >= mod) x -= mod;
    return *this;
  }
  mint& operator-=(const mint a) {
    if ((x += mod-a.x) >= mod) x -= mod;
    return *this;
  }
  mint& operator*=(const mint a) {
    (x *= a.x) %= mod;
    return *this;
  }
  mint operator+(const mint a) const {
    mint res(*this);
    return res+=a;
  }
  mint operator-(const mint a) const {
    mint res(*this);
    return res-=a;
  }
  mint operator*(const mint a) const {
    mint res(*this);
    return res*=a;
  }
  mint pow(ll t) const {
    if (!t) return 1;
    mint a = pow(t>>1);
    a *= a;
    if (t&1) a *= *this;
    return a;
  }

  // for prime mod
  mint inv() const {
    return pow(mod-2);
  }
  mint& operator/=(const mint a) {
    return (*this) *= a.inv();
  }
  mint operator/(const mint a) const {
    mint res(*this);
    return res/=a;
  }
};

mint f(int n) {
  if (n == 0) return 1;
  mint x = f(n/2);
  x *= x;
  if (n%2 == 1) x *= 2;
  return x;
}

mint choose(int n, int a) {
  mint x = 1, y = 1;
  rep(i,a) {
    x *= n-i;
    y *= i+1;
  }
  return x / y;
}


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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before 'if'
    6 |   cout<<if(A>=3200){"red"} else {B}<<endl;
      |         ^~
a.cc:6:28: error: 'else' without a previous 'if'
    6 |   cout<<if(A>=3200){"red"} else {B}<<endl;
      |                            ^~~~
a.cc:6:35: error: expected ';' before '}' token
    6 |   cout<<if(A>=3200){"red"} else {B}<<endl;
      |                                   ^
      |                                   ;
a.cc:6:36: error: expected primary-expression before '<<' token
    6 |   cout<<if(A>=3200){"red"} else {B}<<endl;
      |                                    ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define cvector vector<char>
#define svector vector<string>
#define lque queue<ll>
#define lpque priority_queue<ll>
#define dlpque priority_queue<ll,lvector,greater<ll>>
#define P pair<ll,ll>
#define ALL(a) a.begin(),a.end()
#define RALL(a) a.rbegin(),a.rend()
#define rep(i,n) for(ll i=0; i<n; ++i)
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll a;ctring s;cin>>a>>s;
  print((a>=3200)?s:"red");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: 'ctring' was not declared in this scope
   19 |   ll a;ctring s;cin>>a>>s;
      |        ^~~~~~
a.cc:19:25: error: 's' was not declared in this scope
   19 |   ll a;ctring s;cin>>a>>s;
      |                         ^
Language: C++

#include<iostream>
#include<string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'sed' has not been declared
    9 |         std::cout << s << sed::endl;
      |                           ^~~
Language: C++

#include<iostream>
#include<string>

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

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

#include<iostream>
#include<string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc: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:7:20: error: 's' was not declared in this scope
    7 |   std::cin >> a >> s;
      |                    ^
a.cc:9:27: error: 'sed' has not been declared
    9 |         std::cout << s << sed::endl;
      |                           ^~~
Language: C++

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

  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'esle' was not declared in this scope
   10 |   esle cout<<"red";
      |   ^~~~
a.cc:11:11: error: expected ';' before '}' token
   11 |   return 0
      |           ^
      |           ;
   12 | }
      | ~
Language: C++

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


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

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

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

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

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

/*                        ______
 _______   /\     |``\   |        |  /
    |     /  \    |__/   |____    |/
    |    / _ _\   |  \   |        |\
    |   /      \  |   \  |______  |  \

            Dept. of CSE
        Comilla  University

*/
#include<bits/stdc++.h>
#define pi 2*acos(0.0)
#define ll long long
#define FIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define Node struct node
#define spc " "
#define  E  2.71828182845904523536
#define pb push_back
#define pp pop_back
#define valid(nx,ny) nx>=0 && nx<n && ny>=0 && ny<m
#define ee endl
#define pii pair<int,int>
#define infinity 10000000000000000
#define mod 1000000007
int fx[]={0,0,+1,-1};
int fy[]={+1,-1,0,0};

using namespace std;
///check n=1;
///check corner case;
const int maX=1e5+1;
vector<ll>Graph[maX],cost[maX];
ll visit[maX];
ll x[10];
ll y[10];
double dist(ll i, ll j)
{
    double dx=x[i]-x[j];
    double dy=y[i]-y[j];
    return pow(dx*dx+dy*dy,0.5);
}

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


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

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();
        System.out.println(a>=3200?S:"red");
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main{
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameaspce'
    2 | using nameaspce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:2: error: 'string' was not declared in this scope
    6 |  string s;
      |  ^~~~~~
a.cc:6:2: 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:7:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |  cin>>a>>s;
      |  ^~~
      |  std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |  cin>>a>>s;
      |          ^
a.cc:10:9: 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:18: 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/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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         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:14:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         cout<<"red"<<endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
usint 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:2:1: error: 'usint' does not name a type; did you mean 'uint'?
    2 | usint namespace std;
      | ^~~~~
      | uint
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/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:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:10: error: 's' was not declared in this scope
    8 |   cin >> s;
      |          ^
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:11:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << s << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     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:13:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout <<"red" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:10:11: warning: missing terminating " character
   10 |     cout<<"red';}
      |           ^
a.cc:10:11: error: missing terminating " character
   10 |     cout<<"red';}
      |           ^~~~~~~
a.cc: In function 'int main()':
a.cc:11:7: error: expected primary-expression before 'return'
   11 |       return 0;
      |       ^~~~~~
a.cc:12:4: error: expected '}' at end of input
   12 |   }
      |    ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include<stdio.h>
int main()
  {
     int a;
     char str[11];
     scanf("%d",&a);
     gets(str);
     if(a<3200)
       printf("red");
     elss
       printf('%s',str);
  return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:7:6: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |      gets(str);
      |      ^~~~
      |      fgets
main.c:10:6: error: unknown type name 'elss'
   10 |      elss
      |      ^~~~
main.c:11:15: warning: multi-character character constant [-Wmultichar]
   11 |        printf('%s',str);
      |               ^~~~
main.c:11:15: error: expected declaration specifiers or '...' before '\x2573'
main.c:11:20: error: expected declaration specifiers or '...' before 'str'
   11 |        printf('%s',str);
      |                    ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'str'
    5 |   str b;
      |   ^~~
Language: C++

a = int(input())
s = input()
if a >= 3200:
    print(s)
else:
    print('red')


Compiler output:
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('red')
      |           ^~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = int(input())
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected '(' before '{' token
   10 |   else if{
      |          ^
      |          (
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'A' was not declared in this scope
    7 |   if(A<3200){
      |      ^
a.cc:10:10: error: expected '(' before '{' token
   10 |   else if{
      |          ^
      |          (
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before 'cout'
   11 |   else(a <3200)
      |                ^
      |                ;
   12 |     cout << red << 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
    cout << red << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'red' was not declared in this scope; did you mean 'read'?
   12 |     cout << red << endl;
      |             ^~~
      |             read
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: package system does not exist
        if(a>=3200){system.out.println(s);}
                          ^
1 error
Language: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: redeclaration of 'int a'
   10 |         int a;
      |             ^
a.cc:6:13: note: 'int a' previously declared here
    6 |         int a;
      |             ^
Language: Java

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before '>' token
    7 |   if(a=>3200) cout << S;
      |        ^
Language: C++

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

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

    return 0;
}  

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

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

Compiler output:
main.c: In function 'main':
main.c:6:22: error: expected ';' before 'if'
    6 |   scanf("%d %s",&a,b)
      |                      ^
      |                      ;
    7 |   if(a<3200) printf("%s",b);
      |   ~~                  
main.c:8:3: error: 'else' without a previous 'if'
    8 |   else printf("%d",a);
      |   ^~~~
Language: Java

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


Compiler output:
Main.java:7: error: cannot find symbol
    if(a<3200){
       ^
  symbol:   variable a
  location: class Main
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:12: error: 'a' undeclared (first use in this function)
    8 |         if(a>=3200)
      |            ^
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
	int i,j,k;
	char A[1000];
	scanf("%d",&a);
	scanf("%s",&A);
	if(a>3200)
	{
		printf("%s",A);
	}
	else
	{
		printf("red");
	}
}

Compiler output:
main.c: In function 'main':
main.c:6:21: error: 'a' undeclared (first use in this function)
    6 |         scanf("%d",&a);
      |                     ^
main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

jikcv nwden cxvm23rm 4g'fwer q
'xsdvf
'xcvbn

Compiler output:
a.cc:2:1: warning: missing terminating ' character
    2 | 'xsdvf
      | ^
a.cc:2:1: error: missing terminating ' character
    2 | 'xsdvf
      | ^~~~~~
a.cc:3:1: warning: missing terminating ' character
    3 | 'xcvbn
      | ^
a.cc:3:1: error: missing terminating ' character
    3 | 'xcvbn
      | ^~~~~~
a.cc:1:1: error: 'jikcv' does not name a type
    1 | jikcv nwden cxvm23rm 4g'fwer q
      | ^~~~~
Language: C++

#include<bits/stdc++.h>
#include<iostream>
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:15:18: error: expected '}' at end of input
   15 |         return 0;
      |                  ^
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" << ednl;
}

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

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int a;
  cin>>a;
  string s;
  cin>>s;
  if(a>=320) cout<<"red"<<endl;
  else cot<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'cot' was not declared in this scope; did you mean 'cos'?
   12 |   else cot<<s<<endl;
      |        ^~~
      |        cos
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'strin' was not declared in this scope; did you mean 'stdin'?
    5 |   int a;strin s;
      |         ^~~~~
      |         stdin
a.cc:6:15: error: 's' was not declared in this scope
    6 |   cin >> a >> s;
      |               ^
Language: C++

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> a >> s;
      |   ^~~
a.cc:10:13: error: 's' was not declared in this scope
   10 |     cout << s;
      |             ^
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(s);
        } else {
            System.out.println("red");
        }
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        string s = sc.next();
        ^
  symbol:   class string
  location: class Main
1 error
Language: C++

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope; did you mean 'stdin'?
    5 |   string s;
      |   ^~~~~~
      |   stdin
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> s;
      |   ^~~
a.cc:6:15: error: 's' was not declared in this scope
    6 |   cin >> a >> s;
      |               ^
a.cc:7:15: error: 'cout' was not declared in this scope
    7 |   if(a>=3200) cout << s << endl;
      |               ^~~~
a.cc:7:28: error: 'endl' was not declared in this scope
    7 |   if(a>=3200) cout << s << endl;
      |                            ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << "red" << endl;
      |        ^~~~
a.cc:8:25: error: 'endl' was not declared in this scope
    8 |   else cout << "red" << endl;
      |                         ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)

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


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

#if defined(DAIJOBU)
#include "/home/ichigo/includes.hpp"
#include "PP.hpp"
#define deb(x...) cerr << "[" << #x << "] = " << x << "\n";
#else
#include <bits/stdc++.h>
#define deb(x...)
#endif
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define forn(i, n) for (int i = 0; i < (int)(n); ++i)
#define for1(i, n) for (int i = 1; i <= (int)(n); ++i)
#define ford(i, n) for (int i = (int)(n) - 1; i >= 0; --i)
#define fore(i, a, b) for (int i = (int)(a); i <= (int)(b); ++i)

using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());

typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pii> vpi;
typedef vector<vi> vvi;
typedef long long lint;
typedef vector<lint> vlint;
typedef vector<vlint> vvlint;
typedef pair<lint, lint> plint;
typedef double ld;

template<class T> bool chmin(T &a, T b) { return a > b ? (a = b, true) : false; }
template<class T> bool chmax(T &a, T b) { return a < b ? (a = b, true) : false; }

int main() {
    ios::sync_with_stdio(false);
	cin.tie(0);
  	
	int n;string s;
	cin >> n >> s;
	if(a < 3200)puts("Red");
	else cout << s << '\n';
    return 0;
}



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

#include<bits/stdc++.h>
int main(){
  int n;
  string s;
  std::cin>>n>>s;
  std::cout<<(3200<=n?s:"red")<<endl;
}

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:16: error: 's' was not declared in this scope
    5 |   std::cin>>n>>s;
      |                ^
a.cc:6:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   std::cout<<(3200<=n?s:"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)
      |     ^~~~
Language: C++

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

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

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

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a; cin>>a;
  string s; cin>>s;
  (a>=3200)?cout<<s<<endl;:cout<<"red"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ':' before ';' token
   10 |   (a>=3200)?cout<<s<<endl;:cout<<"red"<<endl;
      |                          ^
      |                          :
a.cc:10:26: error: expected primary-expression before ';' token
a.cc:10:27: error: expected primary-expression before ':' token
   10 |   (a>=3200)?cout<<s<<endl;:cout<<"red"<<endl;
      |                           ^
Language: C++

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

#define for0(i, n) for (ll i = 0; i < (ll)(n); ++i) // 0 based indexing
#define for1(i, n) for (ll i = 1; i <= (ll)(n); ++i) // 1 based indexing
#define forc(i, l, r) for (ll i = (ll)(l); i <= (ll)(r); ++i) // closed interver from l to r r inclusive
#define forr0(i, n) for (ll i = (ll)(n) - 1; i >= 0; --i) // reverse 0 based.
#define forr1(i, n) for (ll i = (ll)(n); i >= 1; --i) // reverse 1 based

#define ff first
#define ss second
#define pb push_back

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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: expected primary-expression before '=' token
   23 |   if(a > = 3200 ) cout << 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 cout<< "red" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected initializer before 's'
    5 |     int a, string s;
      |                   ^
a.cc:6:13: error: 's' was not declared in this scope
    6 |     cin>>a>>s;
      |             ^
Language: C

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

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

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


Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/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: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 /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:11: error: 's' was not declared in this scope
    6 |   cin>>a>>s;
      |           ^
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         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:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         cout<<s<<endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | 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:10:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 | cout<<"red"<<endl;
      |              ^~~~
      |              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'cin'
    8 |   cin >> a
      |           ^
      |           ;
    9 |   cin >> s;
      |   ~~~
Language: C++

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

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

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

  return 0;
}


Compiler output:
a.cc:12:16: warning: multi-character character constant [-Wmultichar]
   12 |   else cout << 'red' <<endl;
      |                ^~~~~
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'cin'
    8 |   cin >> a
      |           ^
      |           ;
    9 |   cin >> s;
      |   ~~~