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

#include<bits/stdc++.h>
int main(){
  int a;
  std::cin >> a;
  if(a<1200)std::cout <<　"ABC";
  else if(a<2800)std::cout <<　"ARC";
  else std::cout <<　"AGC";


}


Compiler output:
a.cc:5:25: error: extended character 　 is not valid in an identifier
    5 |   if(a<1200)std::cout <<　"ABC";
      |                         ^
a.cc:6:30: error: extended character 　 is not valid in an identifier
    6 |   else if(a<2800)std::cout <<　"ARC";
      |                              ^
a.cc:7:20: error: extended character 　 is not valid in an identifier
    7 |   else std::cout <<　"AGC";
      |                    ^
a.cc: In function 'int main()':
a.cc:5:25: error: '\U00003000' was not declared in this scope
    5 |   if(a<1200)std::cout <<　"ABC";
      |                         ^~
a.cc:6:30: error: '\U00003000' was not declared in this scope
    6 |   else if(a<2800)std::cout <<　"ARC";
      |                              ^~
a.cc:7:20: error: '\U00003000' was not declared in this scope
    7 |   else std::cout <<　"AGC";
      |                    ^~
Language: C++

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

int main() {
  int nr;
  cin >> r;
  if(r<1200){
    cout << "ABC" << endl;
  }
  else if(r<2800){
    cout << "ARC" << endl;
  }else{
    cout << "AGC" << endl;
  }
}


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

#include <stdio.h>
 
int main()
{
  int a;
  scanf("%d",&a);
  if (a < 1200)
    printf("ABC");
  else if (b < 2800)
    printf("ARC");
  else
    printf("AGC");
}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: 'b' undeclared (first use in this function)
    9 |   else if (b < 2800)
      |            ^
main.c:9:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main()
{
    int N;
    cin >> N;
    if(N >= 2800)
    {
        cout << "AGC";
    }
    else if(N >= 1200)
    {
        cout << "ARC"
    }else
    {
        cout <<"ABC";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: expected ';' before '}' token
   15 |         cout << "ARC"
      |                      ^
      |                      ;
   16 |     }else
      |     ~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>

using namespace std;
typedef long long llint;
#define inf 1e18

llint r;
void solve(){
	cin >> r;
	stinrg ans;
	if(r<1200)ans="ABC";
	else if(r<2800)ans="ARC";
	else ans="AGC";
	cout << ans << endl;
}

int main(int argc, char *argv[]) {
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:13:9: error: 'stinrg' was not declared in this scope
   13 |         stinrg ans;
      |         ^~~~~~
a.cc:14:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |         if(r<1200)ans="ABC";
      |                   ^~~
      |                   abs
a.cc:15:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |         else if(r<2800)ans="ARC";
      |                        ^~~
      |                        abs
a.cc:16:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |         else ans="AGC";
      |              ^~~
      |              abs
a.cc:17:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |         cout << ans << endl;
      |                 ^~~
      |                 abs
Language: C

#include <stdio.h>

int main()
{
  int r;
  scanf("%d",&r);
  if(r<1200)
     printf("ABC");
  
  else if(r>1200 r<2800)
      printf("ARC");
  
  else
    printf("AGC");
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: expected ')' before 'r'
   10 |   else if(r>1200 r<2800)
      |          ~      ^~
      |                 )
Language: C++

macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
    ($($r:tt)*) => {
        let mut s = {
            use std::io::Read;
            let mut s = String::new();
            std::io::stdin().read_to_string(&mut s).unwrap();
            s
        };
        let mut iter = s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
}

macro_rules! input_inner {
    ($iter:expr) => {};
    ($iter:expr, ) => {};

    ($iter:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($iter, $t);
        input_inner!{$iter $($r)*}
    };
}

macro_rules! read_value {
    ($iter:expr, ( $($t:tt),* )) => {
        ( $(read_value!($iter, $t)),* )
    };

    ($iter:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
    };

    ($iter:expr, chars) => {
        read_value!($iter, String).chars().collect::<Vec<char>>()
    };

    ($iter:expr, usize1) => {
        read_value!($iter, usize) - 1
    };

    ($iter:expr, $t:ty) => {
        $iter.next().unwrap().parse::<$t>().expect("Parse error")
    };
}

fn main() {
    input! {
        R: i32,
    }

    println!(
        "{}",
        if R < 1200 {
            "ABC"
        } else if R < 2400 {
            "ARC"
        } else {
            "AGC"
        }
    );
}


Compiler output:
a.cc:34:10: error: too many decimal points in number
   34 |         (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
      |          ^~~~~~~
a.cc:1:1: error: 'macro_rules' does not name a type
    1 | macro_rules! input {
      | ^~~~~~~~~~~
a.cc:18:1: error: 'macro_rules' does not name a type
   18 | macro_rules! input_inner {
      | ^~~~~~~~~~~
a.cc:28:1: error: 'macro_rules' does not name a type
   28 | macro_rules! read_value {
      | ^~~~~~~~~~~
a.cc:50:1: error: 'fn' does not name a type
   50 | fn main() {
      | ^~
Language: C++

R = gets.to_i

puts R < 1200 ? 'ABC' : R < 1800 ? 'ARC' : 'AGC'

Compiler output:
a.cc:3:17: warning: multi-character character constant [-Wmultichar]
    3 | puts R < 1200 ? 'ABC' : R < 1800 ? 'ARC' : 'AGC'
      |                 ^~~~~
a.cc:3:36: warning: multi-character character constant [-Wmultichar]
    3 | puts R < 1200 ? 'ABC' : R < 1800 ? 'ARC' : 'AGC'
      |                                    ^~~~~
a.cc:3:44: warning: multi-character character constant [-Wmultichar]
    3 | puts R < 1200 ? 'ABC' : R < 1800 ? 'ARC' : 'AGC'
      |                                            ^~~~~
a.cc:1:1: error: 'R' does not name a type
    1 | R = gets.to_i
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int r;
  cin>>r;
  if(r<1200) {cout<<"ABC";return 0;}
  else if(r<2800&&1200<r) {cout<<"ARC";return 0;}
  else {cout<<"AGC";return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected '}' at end of input
    8 |   else {cout<<"AGC";return 0;}
      |                               ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, N) for(int i=0; i<N; i++)
typedef long long ll;
#define dump(x) cerr<<#x<<"="<<x<<endl
using P = pair<int, int>;

int main() {
   int x; cin >> x;
   if(x<1200){
           cout << "ABC" << endl;
   }
   else if(x<2800){
          cout << "ARC" << endl;
   }
   else{
           cout << "AGC" << endl;
   }
}
~
~
~

Compiler output:
a.cc:21:1: error: expected class-name before '~' token
   21 | ~
      | ^
Language: C++

int main() {
    int r;
    cin >> r;
    if(r<1200){
        cout << "ABC" << endl;
    }
    else if(r>=1200 && r<2800){
        cout << "ARC" << endl;
    }
    else{
        cout << "AGC" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> r;
      |     ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << "ABC" << endl;
      |         ^~~~
a.cc:5:26: error: 'endl' was not declared in this scope
    5 |         cout << "ABC" << endl;
      |                          ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "ARC" << endl;
      |         ^~~~
a.cc:8:26: error: 'endl' was not declared in this scope
    8 |         cout << "ARC" << endl;
      |                          ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "AGC" << endl;
      |         ^~~~
a.cc:11:26: error: 'endl' was not declared in this scope
   11 |         cout << "AGC" << endl;
      |                          ^~~~
Language: C

#include <bits/stdc++.h>
#define rep(i,n) for(int64_t i=0;i < (int64_t)(n);i++)
using namespace std;
//////全探索したいときに開けよ////////
vector<vector<int>> fspattern;
vector<int> fspattern_draft;
int fspcnt = 0;

void setfspattern_core(int floor,int number,int degree){
  if(floor==degree){
    fspattern.at(fspcnt) = fspattern_draft;
    fspcnt++;
  }else{
    rep(i,number){
      fspattern_draft.at(floor) = i;
      setfspattern_core(floor+1,number,degree);
    }
  }
}

void setfspattern(int number,int degree){
  int64_t array_num = 1;
  rep(i,degree){
    array_num *= number;
  }
  fspattern = vector<vector<int>>(array_num,vector<int>(degree));
  fspattern_draft = vector<int>(degree);
  setfspattern_core(0,number,degree);
}

//////nCrのmodを求めたいときに開けよ/////////
//int64_t univMod = 1000000007;
//int64_t factnum = 100000
//vector<int64_t> modfact(factnum);
//vector<int64_t> modinvfact(factnum);

/*void setmodfact(){
  for(int i=0;i<factnum;i++){
    if(i == 0){
      modfact.at(i) = 1;
    }else{
      modfact.at(i) = (modfact.at(i-1)*i)%univMod;
    }
  }
}

int64_t calcmodpower(int64_t a,int64_t n){
  int64_t res = 1;
  while(n != 0){
    if(n & 1){
      res = (res * a) % univMod;
    }
    a = (a*a) % univMod;
    n = n >> 1;
  }
  return res;
}

int64_t calcinverse(int64_t n){
	return calcmodpower(n,univMod-2);
}

void setmodinvfact(){
  for(int i=0;i<factnum;i++){
    if(i==0){
      modinvfact.at(i) = 1;
    }else{
      modinvfact.at(i) = calcmodpower(modfact.at(i),univMod-2);
    }
  }
}*/


/*
int64_t calcGCD(int64_t a,int64_t b){
	int64_t p = a;
	int64_t q = b;
	int64_t c = a%b;
	while(c != 0){
		p = q;
		q = c;
		c = p%q;
	}
	return q;
}
*/

int main(){
  int r;
  cin >> r;
  if(r < 1200){
    cout << "ABC" << endl;
  }else if(r < 2800){
    cout << "ARC" << endl;
  }else{
    cout << "AGC" << endl;
    
  }
      
}

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

include<iostream>
using namespace std;
 
int main(){
 	int N;
  	cin >> N;
  	if(N < 1200) cout << "ABC" << endl; else if(N < 2800) cout << "ARC" << endl; else cout << "AGC" << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> N;
      |         ^~~
a.cc:7:22: error: 'cout' was not declared in this scope
    7 |         if(N < 1200) cout << "ABC" << endl; else if(N < 2800) cout << "ARC" << endl; else cout << "AGC" << endl;
      |                      ^~~~
a.cc:7:39: error: 'endl' was not declared in this scope
    7 |         if(N < 1200) cout << "ABC" << endl; else if(N < 2800) cout << "ARC" << endl; else cout << "AGC" << endl;
      |                                       ^~~~
a.cc:7:63: error: 'cout' was not declared in this scope
    7 |         if(N < 1200) cout << "ABC" << endl; else if(N < 2800) cout << "ARC" << endl; else cout << "AGC" << endl;
      |                                                               ^~~~
a.cc:7:80: error: 'endl' was not declared in this scope
    7 |         if(N < 1200) cout << "ABC" << endl; else if(N < 2800) cout << "ARC" << endl; else cout << "AGC" << endl;
      |                                                                                ^~~~
a.cc:7:91: error: 'cout' was not declared in this scope
    7 |         if(N < 1200) cout << "ABC" << endl; else if(N < 2800) cout << "ARC" << endl; else cout << "AGC" << endl;
      |                                                                                           ^~~~
a.cc:7:108: error: 'endl' was not declared in this scope
    7 |         if(N < 1200) cout << "ABC" << endl; else if(N < 2800) cout << "ARC" << endl; else cout << "AGC" << endl;
      |                                                                                                            ^~~~
Language: C++

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

int main() {
  int r;
  cin >> r;

  if(r < 1200){
      cout << "ABC";
  }
  else if(r < 2800 && r >= 1200){
      cout << "ARC"
  }
  else if(r >= 2800){
      cout << "AGC";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before '}' token
   12 |       cout << "ARC"
      |                    ^
      |                    ;
   13 |   }
      |   ~
Language: C++

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

int main() {
  int r;
  cin >> r;

  if(r < 1200){
      cout << "ABC";
  else if(r < 2800 && r >= 1200){
      cout << "ARC"
  }
  else if(r >= 2800){
      cout << "AGC";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected '}' before 'else'
   10 |   else if(r < 2800 && r >= 1200){
      |   ^~~~
a.cc:8:15: note: to match this '{'
    8 |   if(r < 1200){
      |               ^
a.cc:11:20: error: expected ';' before '}' token
   11 |       cout << "ARC"
      |                    ^
      |                    ;
   12 |   }
      |   ~
Language: C++

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

int main() {
	int r;
	cin >> r;
	cout << (r<1200?"ABC":r<2800?:"ARC":"AGC") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:37: error: operands to '?:' have different types 'bool' and 'const char*'
    7 |         cout << (r<1200?"ABC":r<2800?:"ARC":"AGC") << endl;
      |                               ~~~~~~^~~~~~~
a.cc:7:44: error: expected ')' before ':' token
    7 |         cout << (r<1200?"ABC":r<2800?:"ARC":"AGC") << endl;
      |                 ~                          ^
      |                                            )
Language: C++

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

int main() {
	int r;
	cin >> r;
	cout << (r<1200?"ABC":r<2800:"ARC":"AGC") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: operands to '?:' have different types 'const char*' and 'bool'
    7 |         cout << (r<1200?"ABC":r<2800:"ARC":"AGC") << endl;
      |                  ~~~~~~^~~~~~~~~~~~~
a.cc:7:37: error: expected ')' before ':' token
    7 |         cout << (r<1200?"ABC":r<2800:"ARC":"AGC") << endl;
      |                 ~                   ^
      |                                     )
Language: C++

#include<iostream>
#include<vector>
#include <cmath>
#include <map>
#include <algorithm>
using namespace std;
int main(void){
    int N ;
    cin >> N ;

    if(a < 1200 ){
        cout << "ABC" <<endl;
    } else if(a < 2800) {
        cout << "ARC" <<endl;
    } else {
        cout << "AGC" <<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'a' was not declared in this scope
   11 |     if(a < 1200 ){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long 
#define endl "\n"
#define pb push_back
#define f(i,n) for(i=0;i<n;i++)
#define F(i,a,b) for(i=a;a<=b;i++)
#define arr(a,n) for( i=0;i<n;i++)cin>>a[i];
#define fi first
#define se second
#define mp make_pair
#define mod 1000000007
#define YES cout<<"YES"<<endl;
#define Yes cout<<"Yes"<<endl;
#define NO cout<<"NO"<<endl;
#define No cout<<"No"<<endl;
#define yes cout<<"yes"<<endl;
#define no cout<<"no"<<endl;
#define vi vector<ll>
#define ed end()
#define bg begin()
#define sz size()
#define ln length()
#define s() sort(a,a+n);
#define sr() sort(a,a+n,greater<ll>());
#define v()  sort(v.begin(),v.end());
#define vr() sort(v.begin(),v.end(),greater<ll>());
#define mod 1000000007
#define fast() ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
ll gcd(ll a, ll b){if(!b)return a;return gcd(b, a % b);}
ll power(ll x,ll y,ll p){ll res=1;x%=p;while(y>0){if(y&1)res=(res*x)%p;y=y>>1;x=(x*x)%p;}return res;}
int main() {
/*    #ifndef ONLINE_JUDGE
      // for getting input from input.txt
      freopen("input.txt", "r", stdin);
      // for writing output to output.txt
      freopen("output.txt", "w", stdout);
  #endif*/
fast();
//ll  t;cin>>t;while(t--)
{
  ll r;
  cin>>r;
  cin>>r;
  if(r<1200)
    cout << "ABC" << endl;
  else if(r<2800)
    cout "ARC" << endl;
  else
    cout << "AGC" << endl;

  
  

}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:9: error: expected ';' before string constant
   48 |     cout "ARC" << endl;
      |         ^~~~~~
      |         ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long 
#define endl "\n"
#define pb push_back
#define f(i,n) for(i=0;i<n;i++)
#define F(i,a,b) for(i=a;a<=b;i++)
#define arr(a,n) for( i=0;i<n;i++)cin>>a[i];
#define fi first
#define se second
#define mp make_pair
#define mod 1000000007
#define YES cout<<"YES"<<endl;
#define Yes cout<<"Yes"<<endl;
#define NO cout<<"NO"<<endl;
#define No cout<<"No"<<endl;
#define yes cout<<"yes"<<endl;
#define no cout<<"no"<<endl;
#define vi vector<ll>
#define ed end()
#define bg begin()
#define sz size()
#define ln length()
#define s() sort(a,a+n);
#define sr() sort(a,a+n,greater<ll>());
#define v()  sort(v.begin(),v.end());
#define vr() sort(v.begin(),v.end(),greater<ll>());
#define mod 1000000007
#define fast() ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
ll gcd(ll a, ll b){if(!b)return a;return gcd(b, a % b);}
ll power(ll x,ll y,ll p){ll res=1;x%=p;while(y>0){if(y&1)res=(res*x)%p;y=y>>1;x=(x*x)%p;}return res;}
int main() {
/*    #ifndef ONLINE_JUDGE
      // for getting input from input.txt
      freopen("input.txt", "r", stdin);
      // for writing output to output.txt
      freopen("output.txt", "w", stdout);
  #endif*/
fast();
//ll  t;cin>>t;while(t--)
{
  ll r;
  cin>>r;
  cin>>r;
  if(r<1200)
    cout << "ABC" << endl;
  else if(r<2800)
    zco "ARC" << endl;
  else
    cout << "AGC" << endl;

  
  

}
return 0;
}

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

#include(iostream)
#include(stdio.h)
#include(math.h)
using namespace std;
int main(){
  int R;
  cin>>R;
  if(R<1200)
    cout<<"ABC"<<endl;
  if(1200<=R&&R<2800)
    cout<<"ARC"<<endl;
  if(2800<=R)
    cout<<"AGC"<<endl;
  return 0;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc:2:9: error: #include expects "FILENAME" or <FILENAME>
    2 | #include(stdio.h)
      |         ^
a.cc:3:9: error: #include expects "FILENAME" or <FILENAME>
    3 | #include(math.h)
      |         ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>R;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"ABC"<<endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |     cout<<"ABC"<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include(iostream)
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"ARC"<<endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout<<"ARC"<<endl;
      |                  ^~~~
a.cc:11:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<"AGC"<<endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:18: error: 'endl' was not declared in this scope
   13 |     cout<<"AGC"<<endl;
      |                  ^~~~
a.cc:13:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include(iostream)
#include(stdio.h)
#include(math.h)
using nameplace std;
int main(){
  int R;
  cin>>R;
  if(R<1200)
    cout<<"ABC"<<endl;
  if(1200<=R&&R<2800)
    cout<<"ARC"<<endl;
  if(2800<=R)
    cout<<"AGC"<<endl;
  return 0;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc:2:9: error: #include expects "FILENAME" or <FILENAME>
    2 | #include(stdio.h)
      |         ^
a.cc:3:9: error: #include expects "FILENAME" or <FILENAME>
    3 | #include(math.h)
      |         ^
a.cc:4:7: error: expected nested-name-specifier before 'nameplace'
    4 | using nameplace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>R;
      |   ^~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"ABC"<<endl;
      |     ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |     cout<<"ABC"<<endl;
      |                  ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"ARC"<<endl;
      |     ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout<<"ARC"<<endl;
      |                  ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<"AGC"<<endl;
      |     ^~~~
a.cc:13:18: error: 'endl' was not declared in this scope
   13 |     cout<<"AGC"<<endl;
      |                  ^~~~
Language: C++

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

int main()
{
    int R;
    cin >> R;

    if (R < 1200) {
        cout << "ABC";
    } else if (R < 2800) {
        cout << "ARC";
    } else {
        cout << "AGC"
    }

    return 0;
}


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



#include<bits/stdc++.h>
using namespace std;
#define inf INT_MAX
#define INF LLONG_MAX
#define ll long long
#define ull unsigned long long
#define M (int)(1e9+7)
#define P pair<int,int>
#define FOR(i,m,n) for(int i=(int)m;i<(int)n;i++)
#define RFOR(i,m,n) for(int i=(int)m;i>=(int)n;i--)
#define rep(i,n) FOR(i,0,n)
#define rrep(i,n) RFOR(i,n,0)
#define all(a) a.begin(),a.end()
const int vx[4] = {0,1,0,-1};
const int vy[4] = {1,0,-1,0};
#define F first
#define S second
#define PB push_back
#define EB emplace_back
#define int ll
#define vi vector<int>
#define IP pair<int,P>
#define PI pair<P,int>
#define PP pair<P,P>
#define Yes(f){cout<<(f?"Yes":"No")<<endl;}
#define YES(f){cout<<(f?"YES":"NO")<<endl;}
int Madd(int x,int y) {return (x+y)%M;}
int Msub(int x,int y) {return (x-y+M)%M;}
int Mmul(int x,int y) {return (x*y)%M;}


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

  int r;
  cin>>r;

  if(r<1200){
    cout<<"ABC"<<endl;
  }else if(r<2800){
    cout<<"ARC"<<endl;
  }else{
    cout<"AGC"<<endl;
  }

  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:47:15: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   47 |     cout<"AGC"<<endl;
      |          ~~~~~^~~~~~
Language: C++


#include <iostream>


using namespace std;
int main()
{

    int r;
    cin>>r;
    if(r>=1 && r<=4208){
    if(r<1200){
        cout<<"ABC"
    }
      else if(r<2800){
        cout<<"ARC"
    }
else{
        cout<<"AGC"
    }
    }
    else(cout<<"wrong";)
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' before '}' token
   13 |         cout<<"ABC"
      |                    ^
      |                    ;
   14 |     }
      |     ~               
a.cc:16:20: error: expected ';' before '}' token
   16 |         cout<<"ARC"
      |                    ^
      |                    ;
   17 |     }
      |     ~               
a.cc:19:20: error: expected ';' before '}' token
   19 |         cout<<"AGC"
      |                    ^
      |                    ;
   20 |     }
      |     ~               
a.cc:22:23: error: expected ')' before ';' token
   22 |     else(cout<<"wrong";)
      |         ~             ^
      |                       )
a.cc:22:24: error: expected primary-expression before ')' token
   22 |     else(cout<<"wrong";)
      |                        ^
Language: C++

#include <iostream>int main(){int R;std::cin>>R;std::cout<<((R<1200)?"ABC":((R<2800)?"ARC":"AGC"))<<std::endl;}


Compiler output:
a.cc:1:24: warning: extra tokens at end of #include directive
    1 | #include <iostream>int main(){int R;std::cin>>R;std::cout<<((R<1200)?"ABC":((R<2800)?"ARC":"AGC"))<<std::endl;}
      |                        ^~~~
a.cc:1:10: fatal error: iostream>in: No such file or directory
    1 | #include <iostream>int main(){int R;std::cin>>R;std::cout<<((R<1200)?"ABC":((R<2800)?"ARC":"AGC"))<<std::endl;}
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long                                    // long long省略
#define pb push_back                                    // push_back省略
#define mp make_pair                                    // make_pair省略
#define fi first                                        // first省略
#define se second                                       // second省略
#define itn int                                         // int誤字保険
#define count cout                                      // cout誤字保険
#define vecotr vector                                   // vector誤字保険
#define ednl endl                                       // endl誤字保険
#define opt() cin.tie(0); ios::sync_with_stdio(false)   // 入出力速度改善

#define rep(i,l,r) for(ll i=(l);i<(r);i++)               // 範囲[l, r)で刻み1のfor文(順方向)
#define repp(i,l,r,k) for(ll i=(l);i<(r);i+=(k))         // 範囲[l, r)で刻みkのfor文(順方向)
#define rrep(i,l,r) for(ll i=(r-1);i>=(l);i--)           // 範囲[l, r)で刻み1のfor文(逆方向)
#define rrepp(i,l,r,k) for(ll i=(r-1);i>=(l);i-=(k))     // 範囲[l, r)で刻みkのfor文(逆方向)
#define all(x) (x).begin(), (x).end()                   // vectorのポインタ位置指定用
#define max(p,q)((p)>(q)?(p):(q))                       // max拡張
#define min(p,q)((p)<(q)?(p):(q))                       // min拡張
#define bit(n,m)(((n)>>(m))&1)                          // 変数nのm番目のbitを取り出す

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 dy[]={0, 1, 0, -1};                                 // 4方向近傍
int dx[]={1, 0, -1, 0};                                 // 4方向近傍

int main(){
    ll a,b,c; cin>>a>>b>>c;
    if(a<1200) cout << "ABC" << ednl;
    else if(a<2800) cou << "ARC" << ednl;
    else cout << "AGC" << ednl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:21: error: 'cou' was not declared in this scope; did you mean 'cos'?
   32 |     else if(a<2800) cou << "ARC" << ednl;
      |                     ^~~
      |                     cos
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
//    String s=sc.next();
//    int x=sc.nextInt();
    int a=sc.nextInt();
//    int b=sc.nextInt();
//    int[] a={sc.nextInt(),sc.nextInt(),sc.nextInt()};
//    Arrays.sort(a);
    System.out.println(a<1200?"ABC":a<2800?"ARC":"AGC";
  }
}

Compiler output:
Main.java:12: error: ')' or ',' expected
    System.out.println(a<1200?"ABC":a<2800?"ARC":"AGC";
                                                      ^
1 error
Language: C++

R=int(input())
if 0<=R<1200:
    print('ABC')
elif 1200<=R<2800:
    print('ARC')
else: print('AGC')

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('ABC')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('ARC')
      |           ^~~~~
a.cc:6:13: warning: multi-character character constant [-Wmultichar]
    6 | else: print('AGC')
      |             ^~~~~
a.cc:1:1: error: 'R' does not name a type
    1 | R=int(input())
      | ^
Language: C++

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

int R;
int main () {
	cin >> R;
	if (R < 1200) {
	cout << "ABC" << endl;
	}else if (R < 2800) {
	cout << "ARC" << endl;
	}else {
	cout << "AGC" << endl;
}	
return 0;
}

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:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> R;
      |         ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "ABC" << endl;
      |         ^~~~
a.cc:8:26: error: 'endl' was not declared in this scope
    8 |         cout << "ABC" << endl;
      |                          ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "ARC" << endl;
      |         ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |         cout << "ARC" << endl;
      |                          ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "AGC" << endl;
      |         ^~~~
a.cc:12:26: error: 'endl' was not declared in this scope
   12 |         cout << "AGC" << endl;
      |                          ^~~~
Language: C++

#include <iostream>
using namespace std;
int x;
int main() {
    cin >> x;
    if (R < 1200) {
        cout << "ABC" << endl;
    } else if (R < 2800) {
        cout << "ARC" << endl;
    } else{
        cout << "AGC" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'R' was not declared in this scope
    6 |     if (R < 1200) {
      |         ^
Language: C++

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

int main() {
    int R;
    cin >> R;
    if (R < 1200) {
        cout << "ABC" << endl;
    }
    else if {
        (R < 2800) cout << "ARC" << endl;
    }
    else {
        cout << "AGC" << endl;
    }
}

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

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

int main() {
    int R;
    cin >> R;
    if (R < 1200) {
        cout << "ABC" << endl;
    }
    else if {
        (R < 2800) cut << "ARC" << endl;
    }
    else {
        cout << "AGC" << endl;
    }
}

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

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

int main() {
    int R;
    cin >> R;
    if (R < 1200) cout << "ABC" << endl;
    else if (R < 2800) cut << "ARC" << endl;
    else cout << "AGC" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'cut' was not declared in this scope
    8 |     else if (R < 2800) cut << "ARC" << endl;
      |                        ^~~
Language: C

    #include<stdio.h>
    #include<string.h>
    int main(void){
       int R;
       scanf("%d",&R);
       if(1200>R){
          printf("ABC");
       }else if(2800>R){
          printf("ARC");
       }else if{
          printf("AGC");
       }

       return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:10:16: error: expected '(' before '{' token
   10 |        }else if{
      |                ^
      |                (
Language: C

    #include<stdio.h>
    #include<string.h>
    int main(void){
       int A;
       scanf("%d",&R);
       if(1200>R){
          printf("ABC");
       }else if(2800>R){
          printf("ARC");
       }else if{
          printf("AGC");
       }

       return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:5:20: error: 'R' undeclared (first use in this function)
    5 |        scanf("%d",&R);
      |                    ^
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:16: error: expected '(' before '{' token
   10 |        }else if{
      |                ^
      |                (
Language: C++

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

int main(){
  int n;
  cin >> n;
  if(c<1200){
    cout << "ABC" << endl;
  }else if(c<2800){
    cout << "ARC" << endl;
  }else{
    cout << "AGR" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'c' was not declared in this scope
    7 |   if(c<1200){
      |      ^
Language: C++

#include <bits/stdc++.h>
#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 FORR(i, m, n) for (int i = (m); i >= (n); --i)
#define ifaxb(a, x, b) if (a < x && x < b)
#define toInt(x) (x - '0')
#define vi vector<int>
#define vvi vector<vi>
#define vs vector<string>
#define vvs vector<vs>
#define all(x) x.begin(), x.end()
#define INF 2147483647
#define _INF -2147483647
#define pi 3.1415926536
#define MAXN 100004
using namespace std;
typedef long long ll;

int main() {
  int R;
  cin >> R;
  if(R<1200){
    cout<<"ABC"<<endl;
  }else if(R<2800){
    cout<<"ARC"<<endl;
  }else{
    ctou <<"AGC"<<endl;
  }
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  itn a,b;
  cin>>a;
  cout<<"A";
  if(a<1200)cout<<"B";
  if(a>=1200&&a<2800) cout<<"R";
  if(a>=2800) cout<<"G";
  cout<<"C\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'itn' was not declared in this scope; did you mean 'int'?
    4 |   itn a,b;
      |   ^~~
      |   int
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a;
      |        ^
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define rep(X,N) for(ll X = 0; X < (N); X++)
#define bitrep(X,N) for(ll X = 0; X < (1 << (N)); X++)
#define PI (acos(-1.0))
#define sorta(V) sort(V.begin(), V.end())
#define pback push_back
#define mpair make_pair
#define MODN 1000000007
#define ALL(V) (V).begin(),(V).end() 


using namespace std;

int main(){

    int r;
    cin >> r;

    string s;

    if(r < 1200){
        s = "ABC";
    }else if(r < 2800){
        s = "ARC";
    }else{
        s = "AGC"
    }

    cout << s << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:18: error: expected ';' before '}' token
   27 |         s = "AGC"
      |                  ^
      |                  ;
   28 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    cin>>n;
    if(n<1200)cout<<"ABC"<<endl;
        else if(n<2800)cout<<"ARC"<<endl;
        else cout<<"AGC"<<endl;
    return 0;
}


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

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

int main()
{
    int r;
    cin >> r;
    if(r < 1200){
        cout << "ABC"
    }
    else if(r < 2800){
        cout << "ARC"
    }
    else{
        cout << "AGC";
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before '}' token
    9 |         cout << "ABC"
      |                      ^
      |                      ;
   10 |     }
      |     ~                 
a.cc:12:22: error: expected ';' before '}' token
   12 |         cout << "ARC"
      |                      ^
      |                      ;
   13 |     }
      |     ~
Language: C++

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

    if (R < 1200){
        cout << "ABC" << endl;
    }
    else if (1200 =< R && R < 2800){
        cout << "ARC" << endl;
    }
    else {
        cout << "AGC" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected primary-expression before '<' token
   11 |     else if (1200 =< R && R < 2800){
      |                    ^
Language: C++

#include<iostream>
using namespace std;


int main() {
 
  int score ; cin >> score;
  
  if ( score < 1200 ) cout << "ABC";
  else if ( score < 2800 ) << "ARC";
  else cout << "AGC";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: expected primary-expression before '<<' token
   10 |   else if ( score < 2800 ) << "ARC";
      |                            ^~
Language: C++

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

int main() {
 int a;cin>>a;
 if(a<1200)cout<<"ABC"<<endl;
   else of(a<2800)cout<<"ARC"<<endl;
  else cout<<"AGC"<<endl;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'of' was not declared in this scope
    7 |    else of(a<2800)cout<<"ARC"<<endl;
      |         ^~
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else cout<<"AGC"<<endl;
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (long long i = 0, max_i = (n); i < max_i; i++)
#define repi(i, a, b) for (long long i = (a), max_i = (b); i < max_i; i++)
using namespace std;
typedef long long ll;

int main() {
  int R; cin >> R;
  if(R < 1200) cout << "ABC";
  else if(R < 2800) << "ARC";
  else cout << "AGC";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected primary-expression before '<<' token
   10 |   else if(R < 2800) << "ARC";
      |                     ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A;
  cin >> A;
  if (A <=1199){
  cout << "ABC"
  }else if (A <=2799){
  cout << "ARC"
  }else {
  cout << "AGC"
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before '}' token
    8 |   cout << "ABC"
      |                ^
      |                ;
    9 |   }else if (A <=2799){
      |   ~             
a.cc:10:16: error: expected ';' before '}' token
   10 |   cout << "ARC"
      |                ^
      |                ;
   11 |   }else {
      |   ~             
a.cc:12:16: error: expected ';' before '}' token
   12 |   cout << "AGC"
      |                ^
      |                ;
   13 |   }
      |   ~
Language: C++

#include<iostream>
#include<math.h>
#include <algorithm>
#include<float.h>
#include <limits>
#include <vector> 
#include <numeric>
#include <string.h>

#define rep(i,a,n) for(ll int (i) = (a);(i) < (n);(i)++)
#define urep(i,a,n) for(ll int (i) = (a);(i) > (n);(i)--)
#define MOD 1000000007
#define ll long long

using namespace::std;

int jo(ll int jxo, ll int jyo){
	ll int jhogeo = 1;
	rep(jinto,0,jyo) jhogeo=jhogeo*jxo;
	return jhogeo;
}
char tobig(char toxbig){
  return (toxbig-0x20);
}
char tolow(char toxlow){
  return (toxlow+0x20);
}
  


int main(){
int a;
  cin>>a;
  if(a<1200) cout<,"ABC";
  else if(a<1800) cout<<"ARC";
  else cout<<"AGC";
}
// int *p = new int[N];

//  vector<int> 変数名(要素数);
//  sort(変数名.begin(),変数名.end());//昇順ソート

// vector<vector<int>> 変数名(左の個数, vector<int>(右の個数));

//


Compiler output:
a.cc: In function 'int main()':
a.cc:34:19: error: expected primary-expression before ',' token
   34 |   if(a<1200) cout<,"ABC";
      |                   ^
Language: Java

public class Main {
    public static void main(String[] args) {
//        System.out.println("Hello World");
        Scanner sc = new Scanner(System.in);
        int R    = sc.nextInt();
        System.out.println(R);
        if (R < 1200){
            System.out.println("ABC");
        }
        else if (1200 <= R && R < 2800){
            System.out.println("ARC");
        }else{
            System.out.println("AGC");
        }
    }

}


Compiler output:
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: 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() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int r << cin;
  if (r < 1200) {
    cout << "ABC" << endl;
  } else if (r < 2800) {
    cout << "ARC" << endl;
  } else {
    cout << "AGC" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before '<<' token
    7 |   int r << cin;
      |         ^~
a.cc:8:7: error: 'r' was not declared in this scope
    8 |   if (r < 1200) {
      |       ^
Language: C++

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

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

#include <bits/stdc++.h>
#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 INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vll> vvll;


int main()
{
    ll number;
    cin >> number;

    if (number < 1200) {
        cout << "ABC" << endl;
        return 0;
    } else if (number < 2800) {
        cout << "ARC" << endl;
        return 0
    } else {
        cout << "AGC" << endl;
        return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:17: error: expected ';' before '}' token
   23 |         return 0
      |                 ^
      |                 ;
   24 |     } else {
      |     ~
Language: C++

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

int main(){
    int r; cin >> r;
    string ans;
    if(r < 1200) ans = "ABC";
    else(r < 2800) ans = "ARC";
    else ans = "AGC";
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before 'ans'
    9 |     else(r < 2800) ans = "ARC";
      |                   ^~~~
      |                   ;
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else ans = "AGC";
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int R;
  cin >> R;
  cout << (R < 1200 ? "ABC : (R < 2800 ? "ARC" : "AGC")) << endl;

Compiler output:
a.cc:8:54: warning: missing terminating " character
    8 |   cout << (R < 1200 ? "ABC : (R < 2800 ? "ARC" : "AGC")) << endl;
      |                                                      ^
a.cc:8:54: error: missing terminating " character
    8 |   cout << (R < 1200 ? "ABC : (R < 2800 ? "ARC" : "AGC")) << endl;
      |                                                      ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:46: error: inconsistent user-defined literal suffixes 'ARC' and 'AGC' in string literal
    8 |   cout << (R < 1200 ? "ABC : (R < 2800 ? "ARC" : "AGC")) << endl;
      |                                              ^~~~~~~~
a.cc:8:46: error: unable to find string literal operator 'operator""ARC' with 'const char [22]', 'long unsigned int' arguments
a.cc:8:54: error: expected ':' at end of input
    8 |   cout << (R < 1200 ? "ABC : (R < 2800 ? "ARC" : "AGC")) << endl;
      |                                                      ^
      |                                                      :
a.cc:8:54: error: expected primary-expression at end of input
a.cc:8:54: error: expected ')' at end of input
    8 |   cout << (R < 1200 ? "ABC : (R < 2800 ? "ARC" : "AGC")) << endl;
      |           ~                                          ^
      |                                                      )
a.cc:8:54: error: expected '}' at end of input
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main(){
 int a;
  cin >> a;
  if(a<1200) cout << "ABC" << endl;
  if else(a<2800) cout << "ARC" << endl;
  else cout << "AGC" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before 'else'
    7 |   if else(a<2800) cout << "ARC" << endl;
      |      ^~~~
      |      (
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else cout << "AGC" << endl;
      |   ^~~~
Language: C++

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

int main(){
  string c="ABC";
  int r;
  cin >> r;
  if(1200<=r&&r<2800) C="ARC";
  else c = "AGC";
  cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'C' was not declared in this scope
    8 |   if(1200<=r&&r<2800) C="ARC";
      |                       ^
Language: C++

#include <iostream>

int main() {
  int rate = 0;
  cin >> rate;
  if (rate < 1200) cout << "ABC" << endl;
  else if (rate < 2800) cout << "ARC" << endl;
  else cout << "AGC" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> rate;
      |   ^~~
      |   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:20: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if (rate < 1200) cout << "ABC" << 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:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if (rate < 1200) cout << "ABC" << 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:7:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else if (rate < 2800) cout << "ARC" << endl;
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else if (rate < 2800) cout << "ARC" << endl;
      |                                          ^~~~
      |                                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else cout << "AGC" << 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:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else cout << "AGC" << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~