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

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


Compiler output:
a.cc:5:18: warning: missing terminating " character
    5 |     string ans = "AGC;
      |                  ^
a.cc:5:18: error: missing terminating " character
    5 |     string ans = "AGC;
      |                  ^~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: expected primary-expression before 'if'
    6 |     if(R<1200) ans = "ABC";
      |     ^~
a.cc:7:5: error: 'else' without a previous 'if'
    7 |     else if(R<2800) ans = "ARC";
      |     ^~~~
Language: C++

#include <bits/stdc++>
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;
  }
}

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

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

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

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

#include <bits/stdc++.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;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before '<' token
    7 |   if(1200 =< R && R < 2800)cout << "ARC" << endl;
      |            ^
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:10:16: error: expected primary-expression before '<' token
   10 |   else if(1200=<R && R<2800){
      |                ^
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <cmath>
#include <string>
#include <functional>
#include <queue>
#include <map>
#define REP(i,n) for(int i=0;i<n;i++)
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{
        cout << "AGC" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: expected primary-expression before ',' token
   20 |         cout << "ARC" <, endl;
      |                        ^
Language: C++

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int R = sc.nextInt();

		if (R < 1200) {
			System.out.println("ABC");
		} else if (R < 2800) {
			System.out.println("ARC");
		} else {
			System.out.println("AGC");
		}
	}
}

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++

judge :: Int -> String
judge r
    | r < 1200 = "ABC"
    | r < 2800 = "ARC"
    | otherwise = "AGC"

main = do
    r <- readLn
    let ans = judge r
    putStrLn ans


Compiler output:
a.cc:1:1: error: 'judge' does not name a type
    1 | judge :: Int -> String
      | ^~~~~
Language: Java

import java.util.Scanner;
class Main{
    public static void main(String arg[]){
        Scanner scn=new Scanner(System.in);
        int rate = scn.nextInt();
        if(r<1200){
            System.out.println("ABC");
        }else if(2800<=r){
            System.out.println("AGC");
        }else{
            System.out.println("ARC");
        }
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        if(r<1200){
           ^
  symbol:   variable r
  location: class Main
Main.java:8: error: cannot find symbol
        }else if(2800<=r){
                       ^
  symbol:   variable r
  location: class Main
2 errors
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<2800){
    cout<<"ARC"<<endl;
  }
  
  else if(2800<=R){
    cout<<"AGC"<<endl;
  }
}
}

Compiler output:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
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<2800){
    cout<<"ARC"<<endl;
  }
  
  else if(2800=<R){
    cout<<"AGC"<<endl;
  }
}

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

#include <iostream>
#include<math.h>
#include <vector>
#include <numeric>

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:21:6: error: expected '}' at end of input
   21 |     }
      |      ^
a.cc:8:12: note: to match this '{'
    8 | int main() {
      |            ^
Language: C++

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: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>
using namespace std;

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


Compiler output:
a.cc:7:25: warning: multi-character character constant [-Wmultichar]
    7 |   if (R < 1200) cout << 'ABC' << endl;
      |                         ^~~~~
a.cc:8:30: warning: multi-character character constant [-Wmultichar]
    8 |   else if (R < 2800) cout << 'ARC' << endl;
      |                              ^~~~~
a.cc:9:19: warning: multi-character character constant [-Wmultichar]
    9 |   else if cout << 'AGC' << endl;
      |                   ^~~~~
a.cc: In function 'int main()':
a.cc:9:11: error: expected '(' before 'cout'
    9 |   else if cout << 'AGC' << endl;
      |           ^~~~
      |           (
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 if cout << 'AGC' << endl;
}
  

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include bits/stdc++.h>
      |          ^~~~
a.cc:7:25: warning: multi-character character constant [-Wmultichar]
    7 |   if (R < 1200) cout << 'ABC' << endl;
      |                         ^~~~~
a.cc:8:30: warning: multi-character character constant [-Wmultichar]
    8 |   else if (R < 2800) cout << 'ARC' << endl;
      |                              ^~~~~
a.cc:9:19: warning: multi-character character constant [-Wmultichar]
    9 |   else if cout << 'AGC' << endl;
      |                   ^~~~~
a.cc: In function 'int main()':
a.cc:5:10: error: 'cin' was not declared in this scope
    5 |   int R; 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 bits/stdc++.h>
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |   if (R < 1200) cout << 'ABC' << endl;
      |                 ^~~~
a.cc:7:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:34: error: 'endl' was not declared in this scope
    7 |   if (R < 1200) 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 bits/stdc++.h>
a.cc:8:22: error: 'cout' was not declared in this scope
    8 |   else if (R < 2800) cout << 'ARC' << endl;
      |                      ^~~~
a.cc:8:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:39: error: 'endl' was not declared in this scope
    8 |   else if (R < 2800) cout << 'ARC' << endl;
      |                                       ^~~~
a.cc:8:39: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:9:11: error: expected '(' before 'cout'
    9 |   else if cout << 'AGC' << endl;
      |           ^~~~
      |           (
Language: C++

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


Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　if(a<1200)cout<<"ABC"<<endl;
      | ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000if' was not declared in this scope
    6 | 　if(a<1200)cout<<"ABC"<<endl;
      | ^~~~
a.cc:7:3: error: 'else' without a previous 'if'
    7 |   else if(a<2800)cout<<"ARC"<<endl;
      |   ^~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(void){
  int a;
　if(a<1200)cout<<"ABC"<<endl;
  else if(A<2800)cout<<"ARC"<<endl;
  else cout<<"AGC"<<endl;
  return 0;
}


Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　if(a<1200)cout<<"ABC"<<endl;
      | ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000if' was not declared in this scope
    6 | 　if(a<1200)cout<<"ABC"<<endl;
      | ^~~~
a.cc:7:3: error: 'else' without a previous 'if'
    7 |   else if(A<2800)cout<<"ARC"<<endl;
      |   ^~~~
a.cc:7:11: error: 'A' was not declared in this scope
    7 |   else if(A<2800)cout<<"ARC"<<endl;
      |           ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
  int n;
  cin >> n;
  
  if(n < 1200)
    cout << "ABC" << endl;
  else if(n < 2800)
    cout << "ARC" << endl;
  else
    cot << "AGC" << endl;
  
  return 0;
}

  

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string N;
  cin>>N;
  int count=0;
  int ans=0;
  if(N.at(0)!='A')
    ans=1;    
  for(int i=2;i<N.size()-1;i++){
    if(isupper(N.at(i)){
      if(N.at(i)=='C')
         count++;
      else
        ans=1;
    }
    if(ans==1)
       break;
  }
  if(count!=1)
    ans=1;
  if(ans=0)
    cout<<"AC"<<endl;
  else
    cout<<"WA"<<endl;
}
 
  


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ';' before '{' token
   12 |     if(isupper(N.at(i)){
      |                        ^
      |                        ;
a.cc:18:5: error: expected primary-expression before 'if'
   18 |     if(ans==1)
      |     ^~
a.cc:17:6: error: expected ')' before 'if'
   17 |     }
      |      ^
      |      )
   18 |     if(ans==1)
      |     ~~
a.cc:12:7: note: to match this '('
   12 |     if(isupper(N.at(i)){
      |       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'elsee' was not declared in this scope
   12 |         elsee cout << "AGC" << endl;
      |         ^~~~~
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 << AGC << endl;
    }
    else {
        cout << ARC << endl;
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'ABC' was not declared in this scope
    8 |         cout << ABC << endl;
      |                 ^~~
a.cc:11:17: error: 'AGC' was not declared in this scope
   11 |         cout << AGC << endl;
      |                 ^~~
a.cc:14:17: error: 'ARC' was not declared in this scope
   14 |         cout << ARC << endl;
      |                 ^~~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before ';' token
    5 |  int a,;
      |        ^
Language: C++

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

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

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #lnclude; did you mean #include?
    3 | #lnclude<string>
      |  ^~~~~~~
      |  include
Language: C++

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






Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'sting' was not declared in this scope
    5 |   sting ans;
      |   ^~~~~
a.cc:7:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     ans ="ABC";
      |     ^~~
      |     abs
a.cc:10:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     ans="ARC";
      |     ^~~
      |     abs
a.cc:13:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     ans="AGC";
      |     ^~~
      |     abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

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

	cout << A/B+C -A/B << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: 'B' was not declared in this scope
   20 |         cout << A/B+C -A/B << endl;
      |                   ^
a.cc:20:21: error: 'C' was not declared in this scope
   20 |         cout << A/B+C -A/B << endl;
      |                     ^
Language: C++

#include <iostream>
#include <string>
#include <math.h>
#include <vector>
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 << A/B+C -A/B << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: 'B' was not declared in this scope
   20 |         cout << A/B+C -A/B << endl;
      |                   ^
a.cc:20:21: error: 'C' was not declared in this scope
   20 |         cout << A/B+C -A/B << endl;
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  	int N;
  	string S;
  	if (N<1200)[
      S="ABC";
    }
    else if(N<2800){
      S="ARC";
    }
    if (N>=2800){
      S="AGC";
    }
    cout << S;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ',' before ';' token
    8 |       S="ABC";
      |              ^
      |              ,
a.cc:8:14: error: expected identifier before ';' token
a.cc:8:14: error: expected ']' before ';' token
    8 |       S="ABC";
      |              ^
      |              ]
a.cc: In lambda function:
a.cc:8:14: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:10:5: error: expected unqualified-id before 'else'
   10 |     else if(N<2800){
      |     ^~~~
a.cc:13:5: error: expected unqualified-id before 'if'
   13 |     if (N>=2800){
      |     ^~
a.cc:16:5: error: 'cout' does not name a type
   16 |     cout << S;
      |     ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  	int N;
  	string S;
  	if (N<1200)[
      S="ABC";
    }
    else if(N<2800){
      S="ARC";
    }
    else{
      S="AGC";
    }
    cout << S;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ',' before ';' token
    8 |       S="ABC";
      |              ^
      |              ,
a.cc:8:14: error: expected identifier before ';' token
a.cc:8:14: error: expected ']' before ';' token
    8 |       S="ABC";
      |              ^
      |              ]
a.cc: In lambda function:
a.cc:8:14: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:10:5: error: expected unqualified-id before 'else'
   10 |     else if(N<2800){
      |     ^~~~
a.cc:13:5: error: expected unqualified-id before 'else'
   13 |     else{
      |     ^~~~
a.cc:16:5: error: 'cout' does not name a type
   16 |     cout << S;
      |     ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
bool check = false;
int main(){
  int count = 0;
  string S;
  cin >> S;
  if(S[0] == 'A'){
    S[0] = 'a';
    for(int i = 2; i < S.size() - 1; i++){
      if(S[i] == 'C'){
        count++;
        S[i] = 'c';
      }
    }
    for(int j = 0; j < S.size(); j++){
      if(isupper(S[j]) && count == 1) check = true;
  }
  if(check) cout << "AC" << endl;
  else cout << "WA" << endl;

}

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

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
int main() {
	int D;
	cin>>D;
	if(D<1200){
		cout<<"ABC"<<endl;
	}
	else if(D>=2800){
		cout<<"AGC"<<endl;
	}
	else{
		cout<<"ARC"<<endl
	}
}

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

#include<stdio.h>

int main(){
    bool a=0, c=0, small=1;
    int len=0, cNum = 0;
    char s[10];
    scanf("%s", s);

    for(len=0; s[len]!='\0'; len++);

    if(s[0] == 'A') a=1;
    for(int i=2; i<len-2; i++){
        if(s[i] == 'C'){
            if(cNum != 0){
                c = 0;
                break;
            } 
            c = 1;
            cNum = i;
        }
    }
    for(int i=1; i<len; i++){
        if(i != cNum){
            if(s[i]<'a' || 'z'<s[i]){
                small=0;
                break;
            }
        }
    }
    if(a && c && small) printf("AC");
    else printf("WA");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name 'bool'
    4 |     bool a=0, c=0, small=1;
      |     ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 |
Language: C

#include<stdio.h>

int main(){
    bool a=false, c=false, small=true;
    int len=0, cNum = 0;
    char s[10];
    scanf("%s", s);

    for(len=0; s[len]!='\0'; len++);

    if(s[0] == 'A') a=true;
    for(int i=2; i<len-2; i++){
        if(s[i] == 'C'){
            if(cNum != 0){
                c = false;
                break;
            } 
            c = true;
            cNum = i;
        }
    }
    for(int i=1; i<len; i++){
        if(i != cNum){
            if(s[i]<'a' || 'z'<s[i]){
                small=false;
                break;
            }
        }
    }
    if(a && c && small) printf("AC");
    else printf("WA");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name 'bool'
    4 |     bool a=false, c=false, small=true;
      |     ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:4:12: error: 'false' undeclared (first use in this function)
    4 |     bool a=false, c=false, small=true;
      |            ^~~~~
main.c:4:12: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:4:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:34: error: 'true' undeclared (first use in this function)
    4 |     bool a=false, c=false, small=true;
      |                                  ^~~~
main.c:4:34: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include<stdio.h>

int main(){
    int a=0, c=0, small=1;
    int len=0, cNum = 0;
    char s[10];
    scanf("%s", s);

    for(len=0; s[i]!='\0'; len++);

    if(s[0] == 'A') a=1;
    for(int i=2; i<len; i++){
        if(s[i] == 'C'){
            if(cNum != 0){
                c = 0;
                break;
            } 
            c = 1;
            cNum = i;
        }
    }
    for(int i=1; i<len-2; i++){
        if(i != cNum){
            if(s[i]<'a' || 'z'<s[i]){
                small=0;
                break;
            }
        }
    }
    if(a && c && small) printf("AC");
    else printf("WA");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:18: error: 'i' undeclared (first use in this function)
    9 |     for(len=0; s[i]!='\0'; len++);
      |                  ^
main.c:9:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<stdio.h>

int main(){
    bool a=false, c=false, small=true;
    int len=0, cNum = 0;
    char s[10];
    scanf("%s", s);

    for(len=0; s[i]!='\0'; len++);

    if(s[0] == 'A') a=true;
    for(int i=2; i<len; i++){
        if(s[i] == 'C'){
            if(cNum != 0){
                c = false;
                break;
            } 
            c = true;
            cNum = i;
        }
    }
    for(int i=1; i<len-2; i++){
        if(i != cNum){
            if(s[i]<'a' || 'z'<s[i]){
                small=false;
                break;
            }
        }
    }
    if(a && c && small) printf("AC");
    else printf("WA");
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'i' was not declared in this scope
    9 |     for(len=0; s[i]!='\0'; len++);
      |                  ^
Language: C

#include<stdio.h>

int main(){
    bool a=false, c=false, small=true;
    int len=0, cNum = 0;
    char s[10];
    scanf("%s", s);

    for(len=0; s[i]!='\0'; len++);

    if(s[0] == 'A') a=true;
    for(int i=2; i<len; i++){
        if(s[i] == 'C'){
            if(cNum != 0){
                c = false;
                break;
            } 
            c = true;
            cNum = i;
        }
    }
    for(int i=1; i<len-2; i++){
        if(i != cNum){
            if(s[i]<'a' || 'z'<s[i]){
                small=false;
                break;
            }
        }
    }
    if(a && c && small) printf("AC");
    else printf("WA");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:5: error: unknown type name 'bool'
    4 |     bool a=false, c=false, small=true;
      |     ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:4:12: error: 'false' undeclared (first use in this function)
    4 |     bool a=false, c=false, small=true;
      |            ^~~~~
main.c:4:12: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:4:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:34: error: 'true' undeclared (first use in this function)
    4 |     bool a=false, c=false, small=true;
      |                                  ^~~~
main.c:4:34: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:9:18: error: 'i' undeclared (first use in this function)
    9 |     for(len=0; s[i]!='\0'; len++);
      |                  ^
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:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before string constant
   10 |         cout "ABC";
      |             ^~~~~~
      |             ;
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main1 {
    public static void main(String []args)
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        if(n<1200)
            System.out.println("ABC");
        else if(n>=1200 && n<2800)
            System.out.println("ARC");
        else if(n>2800)
            System.out.println("AGC");

    }
}


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

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'else' without a previous 'if'
    7 |     else if(r<2800); printf("ARC");
      |     ^~~~
main.c:8:5: error: 'else' without a previous 'if'
    8 |     else printf("AGC");
      |     ^~~~
Language: C++

#include <iostream>

using namespcace std;

int main() {
	int R;

	cin >> R;

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

	cout << endl;

	return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespcace'
    3 | using namespcace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin >> R;
      |         ^~~
      |         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:10:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         if (R < 1200) cout << "ABC";
      |                       ^~~~
      |                       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:28: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         else if (R < 2800) cout << "ARC";
      |                            ^~~~
      |                            std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         else cout << "AGC";
      |              ^~~~
      |              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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout << 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:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         cout << endl;
      |                 ^~~~
      |                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>

int main(void){
    int r;
    scanf("%d\n",&r);
    switch(r){
        case r<1200:
            printf("ABC\n");
            break;
        case r<2800:
            printf("ARC\n");
            break;
        defaulf:
            printf("AGC\n");
            break
    }
}


Compiler output:
main.c: In function 'main':
main.c:7:9: error: case label does not reduce to an integer constant
    7 |         case r<1200:
      |         ^~~~
main.c:10:9: error: case label does not reduce to an integer constant
   10 |         case r<2800:
      |         ^~~~
main.c:15:18: error: expected ';' before '}' token
   15 |             break
      |                  ^
      |                  ;
   16 |     }
      |     ~
Language: C++

// https://atcoder.jp/contests/abc104/tasks/abc104_a

#include <iostream>
using namespace std;

int main()
{
  /* Magic word */
  cin.tie(0);
  ios::sync_with_stdio(false);
  /* ---------- */

  int a;
  string r;

  cin >> a;

  r = a < 1200 ? "ABC" : a < 2800 : "ARC" : "AGC";

  cout << r << '\n';

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: operands to '?:' have different types 'const char*' and 'bool'
   18 |   r = a < 1200 ? "ABC" : a < 2800 : "ARC" : "AGC";
      |       ~~~~~~~~~^~~~~~~~~~~~~~~~~~
Language: C

#include <stdio.h>

int main(void)
{
        int r;

        scanf("%d",&r);

        if(r<1200)      printf("ABC\n");
        else if(r<2800) printf("ARC\n");
        else            printf("AGC\n");

        return 0;


Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected declaration or statement at end of input
   13 |         return 0;
      |         ^~~~~~
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"<<endll}                            

Compiler output:
a.cc: In function 'int main()':
a.cc:3:82: error: 'endll' was not declared in this scope
    3 |   if(a<1200)cout<<"ABC"<<endl;else if(a<2800)cout<<"ARC"<<endl;else cout<<"AGC"<<endll}
      |                                                                                  ^~~~~
Language: Java


import java.util.*;

public class Main {

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

}


Compiler output:
Main.java:8: error: cannot find symbol
        int r = sc.nextInt;
                  ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
1 error
Language: Java

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

Compiler output:
Main.java:1: error: ';' expected
import java.util*;
                ^
1 error
Language: C++

#include <iostream> 
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"<<enddl;
  return 0;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'enddl' was not declared in this scope
    8 |   else cout<<"AGC"<<enddl;
      |                     ^~~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacestd'
    2 | using namespacestd;
      |       ^~~~~~~~~~~~
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>>r;
      |   ^~~
      |   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:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if (r<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:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if (r<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:20: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else if (r<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:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else if (r<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"<<enddl;
      |        ^~~~
      |        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:21: error: 'enddl' was not declared in this scope
    8 |   else cout<<"AGC"<<enddl;
      |                     ^~~~~
Language: C++

#include<iostream>
#include<cmath>

using namespace std;
int main(void){
    int a,b,c,d,e,f,g;
    cin>>a>>b>>c;
    d=abs(a-b);
    e=abs(a-c);
    f=abs(b-c);
    g=(min)({d+e,e+f,f+d});
    cout<<g<<endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   11 |     g=(min)({d+e,e+f,f+d});
      |       ~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'ABC' was not declared in this scope
    7 |     cout << ABC << endl;
      |             ^~~
a.cc:10:13: error: 'ARC' was not declared in this scope
   10 |     cout << ARC << endl;
      |             ^~~
a.cc:13:13: error: 'AGC' was not declared in this scope
   13 |     cout << AGC << endl;
      |             ^~~
Language: C++

#include <iostream>
#include <string>
#include <utility>
#include <algorithm>
#include <map>
#include <vector>
#include <cmath>
#include <cstdlib>
#include <queue>
#include <stack>

using namespace std;

#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 = n;i >= m;i--)
#define REPO(i, n) for(int i = 1;i <= n;i++)
#define ll long long
#define INF 1999999999
#define MINF -1999999999
#define ALL(n) n.begin(),n.end()

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:36: error: expected '}' at end of input
   29 |         else cout << "AGC" << endl;
      |                                    ^
a.cc:24:12: note: to match this '{'
   24 | int main() {
      |            ^
Language: C++

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

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


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

#include <iostream>
using namespace std;

int main()
{
  int 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:9:13: error: 'ABC' was not declared in this scope
    9 |     cout << ABC << endl;
      |             ^~~
a.cc:12:13: error: 'ARC' was not declared in this scope
   12 |     cout << ARC << endl;
      |             ^~~
a.cc:15:13: error: 'AGC' was not declared in this scope
   15 |     cout << AGC << endl;
      |             ^~~
Language: C++

#include <iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;
#define REP(i,n) for(int i=0;i<n;i++)
#define FOR(i,a,b) for(int i=(a);i<(b);++i)

int main(){
cin.tie(0);
ios::sync_with_stdio(false);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: expected ')' before 'N'
   16 |         else if(N>=1200 N<2800)cout<<"ARC"<<endl;
      |                ~       ^~
      |                        )
Language: C++

#include <iostream>
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;}

 return 0;

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

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

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

#include<stdio.h>
int main(void){
	
  int r;
	
scanf("%d",&r);
 if(r<1200){
	 printf("ABC\n");
    }      
	else if(r<2800){
	 printf("ARC\n");
    }
	else(r>2799){
	 puts("AGC\n");
    }
	
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:21: error: expected ';' before '{' token
   13 |         else(r>2799){
      |                     ^
      |                     ;
Language: C

#include<stdio.h>
int main(void){
	
  int r;
	
scanf("%d",&r);
	
    if(R<1200){
	 printf("ABC\n");
    }      
	else if(R<2800){
	 printf("ARC"\n);
    }
	else(R>2799){
	 puts("AGC\n");
    }
	
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: error: 'R' undeclared (first use in this function)
    8 |     if(R<1200){
      |        ^
main.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:22: error: stray '\' in program
   12 |          printf("ARC"\n);
      |                      ^
main.c:12:22: error: expected ')' before 'n'
   12 |          printf("ARC"\n);
      |                ~     ^~
      |                      )
main.c:14:21: error: expected ';' before '{' token
   14 |         else(R>2799){
      |                     ^
      |                     ;
Language: C

#include <stdio.h>
int main(void){
	
  int r;
	
scanf("%d",&r);
	
    if(R<1200){
	 printf("ABC\n");
    }      
	else if(R<2800){
	 printf("ARC"\n);
    }
	else(R>2799){
	 puts("AGC\n");
    }
	
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:8: error: 'R' undeclared (first use in this function)
    8 |     if(R<1200){
      |        ^
main.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:22: error: stray '\' in program
   12 |          printf("ARC"\n);
      |                      ^
main.c:12:22: error: expected ')' before 'n'
   12 |          printf("ARC"\n);
      |                ~     ^~
      |                      )
main.c:14:21: error: expected ';' before '{' token
   14 |         else(R>2799){
      |                     ^
      |                     ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:12: error: 'R' undeclared (first use in this function)
    7 |         if(R<1200){
      |            ^
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void){
	int r;
	
	scanf("%d",&r);
	
	if(R<1800)
	 puts("ABC");
	else if(R<2800)
	 puts("ARC");
	else(R>2799)
	 puts("AGC");
	
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:12: error: 'R' undeclared (first use in this function)
    7 |         if(R<1800)
      |            ^
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:21: error: expected ';' before 'puts'
   11 |         else(R>2799)
      |                     ^
      |                     ;
   12 |          puts("AGC");
      |          ~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:21: error: expected ';' before 'puts'
   10 |         else(R>2799)
      |                     ^
      |                     ;
   11 |          puts("AGC");
      |          ~~~~        
main.c:13:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   13 | return;
      | ^~~~~~
main.c:2:5: note: declared here
    2 | int main(void){
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:21: error: 'R' undeclared (first use in this function)
    4 |         scanf("%d",&R);
      |                     ^
main.c:4:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:21: error: expected ';' before 'puts'
   10 |         else(R>2799)
      |                     ^
      |                     ;
   11 |          puts("AGC");
      |          ~~~~        
main.c:13:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   13 | return;
      | ^~~~~~
main.c:2:5: note: declared here
    2 | int main(void){
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:21: error: expected ';' before 'puts'
   11 |         else(R>2799)
      |                     ^
      |                     ;
   12 |          puts("AGC");
      |          ~~~~        
main.c:14:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   14 | return;
      | ^~~~~~
main.c:2:5: note: declared here
    2 | int main(void){
      |     ^~~~
Language: C

#include <stdio.h>
int main(void){
	int R;
	
	printf("レートを入力\n");
	
	scanf("%d",&R);
	
	if(R<1800)
	 puts("ABC");
	else if(R<2800)
	 puts("ARC");
	else(R>2799)
	 puts("AGC");
	
return;
}

Compiler output:
main.c: In function 'main':
main.c:13:21: error: expected ';' before 'puts'
   13 |         else(R>2799)
      |                     ^
      |                     ;
   14 |          puts("AGC");
      |          ~~~~        
main.c:16:1: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   16 | return;
      | ^~~~~~
main.c:2:5: note: declared here
    2 | int main(void){
      |     ^~~~
Language: C

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

int r;
  scanf("%d",&r);
  if(r<1200){
    printf("ABC\n");
  }
  else if(r<2800){
    printf("ARC\n");
  }
  else
    printf("AGC\n");
}
return 0;
}

Compiler output:
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;
      | ^~~~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^