criyle/codenet-compile-errors huggingface dataset:
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 | }
      | ^
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:7:20: error: expected ';' before '}' token
    7 |     printf("ABC\n")
      |                    ^
      |                    ;
    8 |   }
      |   ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:13: error: 'a' undeclared (first use in this function)
   10 |     else if(a<2800){
      |             ^
main.c:10:13: 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("%f",&r);
  if(r<1200){
    printf("ABC\n");
  }
    else if(a<2800){
      printf("ARC\n");
    }
  else {
    printf("AGC\n");
  }
  return 0;
}

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

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

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

提出情報

Compiler output:
main.c: In function 'main':
main.c:7:8: error: stray '\343' in program
    7 |        <U+3000><U+3000>scanf("%d",&a);
      |        ^~~~~~~~
main.c:7:10: error: stray '\343' in program
    7 |        <U+3000><U+3000>scanf("%d",&a);
      |                ^~~~~~~~
main.c: At top level:
main.c:27:9: error: redefinition of 'main'
   27 |     int main(void){
      |         ^~~~
main.c:3:13: note: previous definition of 'main' with type 'int(void)'
    3 |         int main(void){
      |             ^~~~
main.c:49:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   49 | 提出情報
      | ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected expression before '<' token
    6 |   if(a =< 1200){
      |         ^
main.c:10:22: error: expected expression before '<' token
   10 |   else if(1200 << a =< 2800){
      |                      ^
main.c:14:17: error: expected expression before '<' token
   14 |   else if(2800 =< a){
      |                 ^
Language: C

#include<stdio.h>

int main(void){
  
 int R; 
  
  scanf("%d". &R);
  
  if(R < 1200)
  {
  
    printf("ABC");
    
  }
  if(R > 1199 && R < 2800)
  {
  
    printf("ARC");
    
  }
   if(R > 2799)
  {
  
    printf("AGC");
    
  }
  
  
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected identifier before '&' token
    7 |   scanf("%d". &R);
      |               ^
Language: C

#include<stdio.h>

int main(void){
  
 int R; 
  
  scanf("%d". &R);
  
  if(R < 1200)
  {
  
    printf("ABC");
    
  }
  if(R > 1199 &&R < 2800)
  {
  
    printf("ARC");
    
  }
   if(R > 2799)
  {
  
    printf("AGC");
    
  }
  
  
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected identifier before '&' token
    7 |   scanf("%d". &R);
      |               ^
Language: C

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

scanf("%d",&r)
  if(r<1200)
    printf("ABC\n");
    if(r<2800)
      printf("ARC\n");
if(r<4208)
  printf("AGC\n");

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected ';' before 'if'
    6 | scanf("%d",&r)
      |               ^
      |               ;
    7 |   if(r<1200)
      |   ~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:17: error: expected ';' before 'if'
    4 |   scanf("%d",&a)
      |                 ^
      |                 ;
    5 |         if (a>=2800) {
      |         ~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:17: error: expected ';' before 'if'
    4 |   scanf("%d",&a)
      |                 ^
      |                 ;
    5 |         if (a<1200) {
      |         ~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected ';' before '}' token
    7 |     {printf("ABC")};
      |                   ^
      |                   ;
main.c:8:9: error: 'else' without a previous 'if'
    8 |         else if (1200 < r < 2800)
      |         ^~~~
main.c:9:19: error: expected ';' before '}' token
    9 |     {printf("ARC")};
      |                   ^
      |                   ;
main.c:10:9: error: 'else' without a previous 'if'
   10 |         else
      |         ^~~~
main.c:11:19: error: expected ';' before '}' token
   11 |     {printf("AGC")};
      |                   ^
      |                   ;
Language: C

#include<stdio.h>
int main(void){
  int R;
  if (R<1200){
    printf("ABC\n");}
  else if (R>1200 R<2800){
    printf("ARC\n");}
  else{
    printf("AGB\n"); }
   return 0;
}
  
  
  
  

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ')' before 'R'
    6 |   else if (R>1200 R<2800){
      |           ~      ^~
      |                  )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:5: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |     pritnf("ABC");
      |     ^~~~~~
      |     printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:11: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |           pritnf("ABC");
      |           ^~~~~~
      |           printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:22: error: expected ';' before '}' token
   10 |         printf("AGC")
      |                      ^
      |                      ;
   11 |   }
      |   ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:9: error: expected identifier or '(' before ';' token
    3 |   int a,;
      |         ^
main.c:10:22: error: expected ';' before '}' token
   10 |         printf("AGC")
      |                      ^
      |                      ;
   11 |   }
      |   ~
Language: C++

#include<iosteram>
using namespace std;

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


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

#include<iosteram>
using namespace std;

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


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

#include<std/c++.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;
  }
  return 0;
}

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

import java.util.Scanner;
public class TaskA{
    public static void main(String[] args) {
        Scanner sc = new Scanner (System.in);
        int test=Integer.valueOf(sc.nextLine());
        if(test<1200)
            System.out.println("ABC");
        else if(test>=1200 && test<2800)
            System.out.println("ARC");
        else if(test>=2800)
            System.out.println("AGC");
    }
}

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int R;
  cin >> R;
  string 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:9:11: error: 'ABC' was not declared in this scope
    9 |     ans = ABC
      |           ^~~
a.cc:11:11: error: 'ARC' was not declared in this scope
   11 |     ans = ARC
      |           ^~~
a.cc:13:11: error: 'AGC' was not declared in this scope
   13 |     ans = AGC
      |           ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

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

#include<iostream>
#include<algorithm>
#include<cstdlib>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:36: error: expected ';' before 'return'
   11 |         if (R >= 2800)cout << "AGC"
      |                                    ^
      |                                    ;
   12 |         return 0;
      |         ~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected primary-expression before ';' token
    6 |   cin>>;
      |        ^
Language: C++

# coding: utf-8

n = int(input())

if n < 1200:
    print("ABC\n")
elif n < 2800:
    print("ARC\n")
else:
    print("AGC\n")

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:3:1: error: 'n' does not name a type
    3 | n = int(input())
      | ^
Language: C++

#inclde<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;
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde<bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "ABC" << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     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 | #inclde<bits/stdc++.h>
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:22: error: 'endl' was not declared in this scope
   11 |     cout << "ARC" << endl;
      |                      ^~~~
a.cc:11:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "AGC" << endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |     cout << "AGC" << endl;
      |                      ^~~~
a.cc:14:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <cctype>
#include <string>

using std::islower;
using std::string;
using std::cin;
using std::cout;
using std::endl;
using std::size_t;

int main(){
    int l,A(0),C(0);
    string uho;

    cin >> uho;

    for(int i(0);i < uho.size();i++){
        
        if(uho[0] == 'A')
            if(islower(uho[i])) l++;
                if(uho[2] >= 'C' && uho[uho.size() - 2] <= 'C') 
                    if(uho[i] == 'A') A++;
                        if(uho[i] == 'C') C++;
                            if(A == 1 && C === 1) cout << "AC" << endl;

        else cout << "WA" << endl;

        return 0;

    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:46: error: expected primary-expression before '=' token
   25 |                             if(A == 1 && C === 1) cout << "AC" << endl;
      |                                              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer before 'cin'
    8 |   cin>>N;
      |   ^~~
a.cc:10:8: error: 'N' was not declared in this scope
   10 |   if(0<N && N<1200)
      |        ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'elseif' was not declared in this scope
   11 |   elseif(R<2800){
      |   ^~~~~~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else{
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'ABC' was not declared in this scope
    9 |   cout<<ABC<<endl;
      |         ^~~
a.cc:11:3: error: 'elseif' was not declared in this scope
   11 |   elseif(R<2800 && R>1199){
      |   ^~~~~~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else{
      |   ^~~~
a.cc:15:9: error: 'AGC' was not declared in this scope
   15 |   cout<<AGC<<endl;
      |         ^~~
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:10:12: error: stray '#' in program
   10 |   if(1200<=#R&&R<2800) {
      |            ^
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:3: error: 'cin' was not declared in this scope
    6 |   cin>>R;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"ABC"<<endl;
      |     ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     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:14:5: error: 'cout' was not declared in this scope
   14 |     cout<<"AGC"<<endl;
      |     ^~~~
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |     cout<<"AGC"<<endl;
      |                  ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<string>
using namespace std;
int main()
{
  int r;
  cin>>r;

  string 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:15:17: error: expected ';' before 'cout'
   15 |   else ans="AGC"
      |                 ^
      |                 ;
   16 | 
   17 |   cout<<ans<<endl;
      |   ~~~~
Language: C++

#include<iostram>
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:1:9: fatal error: iostram: No such file or directory
    1 | #include<iostram>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'put' was not declared in this scope; did you mean 'putw'?
    8 |     put("ABC");
      |     ^~~
      |     putw
a.cc:10:5: error: 'put' was not declared in this scope; did you mean 'putw'?
   10 |     put("ARC");
      |     ^~~
      |     putw
a.cc:12:5: error: 'put' was not declared in this scope; did you mean 'putw'?
   12 |     put("AGC");
      |     ^~~
      |     putw
Language: Java

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

Compiler output:
Main.java:7: error: cannot find symbol
  else if(n < 2800)System.out.prnintln("ARC");
                             ^
  symbol:   method prnintln(String)
  location: variable out of type PrintStream
1 error
Language: C++

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

	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: expected ';' before 'return'
   16 |                 cout<<"AGC"
      |                            ^
      |                            ;
......
   19 |         return 0;
      |         ~~~~~~
Language: C++

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

int main(void) {
	string S;
	cin >> S;
	string answer = "AC";
	if (S[0] != 'A') answer = "WA";

	int CCount = 0;
	int l = S.length();
	for (int i = 1; i < l; i++) {
		if (isupper(S[i])) {
			if (i == 1 || i == l - 1 || S[i] != 'C') answer = "WA";
			CCount++;
		}
	}
	if (CCount != 1) answer = "WA";

	printf(answer);
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   21 |         printf(answer);
      |                ^~~~~~
      |                |
      |                std::string {aka std::__cxx11::basic_string<char>}
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:5: error: expected primary-expression before 'int'
    5 |     int N;
      |     ^~~
a.cc:5:5: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin >> N;
      |     ^~~
a.cc:7:5: error: expected unqualified-id before 'if'
    7 |     if (N < 1200) cout << "ABC";
      |     ^~
a.cc:8:5: error: expected unqualified-id before 'else'
    8 |     else if (N< 2800) cout << "ARC";
      |     ^~~~
a.cc:9:5: error: expected unqualified-id before 'else'
    9 |     else cout << "AGC";
      |     ^~~~
a.cc:10:5: error: 'cout' does not name a type
   10 |     cout << endl;
      |     ^~~~
a.cc:11:5: error: expected unqualified-id before 'return'
   11 |     return 0;
      |     ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:5: error: expected primary-expression before 'int'
    5 |     int N;
      |     ^~~
a.cc:5:5: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin >> N;
      |     ^~~
a.cc:7:5: error: expected unqualified-id before 'if'
    7 |     if (N <= 1200) cout << "ABC";
      |     ^~
a.cc:8:5: error: expected unqualified-id before 'else'
    8 |     else if (N<= 2800) cout << "ARC";
      |     ^~~~
a.cc:9:5: error: expected unqualified-id before 'else'
    9 |     else cout << "AGC";
      |     ^~~~
a.cc:10:5: error: 'cout' does not name a type
   10 |     cout << endl;
      |     ^~~~
a.cc:11:5: error: expected unqualified-id before 'return'
   11 |     return 0;
      |     ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  int i, ss, answer;
  char array[10];
  answer = 0;
  cin >> array;
  if(array[0]=='A'){
    for(i = 2;i <= strlen(array) - 2;i++){
      if(array[i]=='C'){
        for(ss = 0;ss <= strlen(array);ss++){
          if((array[ss]>='A')&&(array[ss]<='Z')){
            answer++;
          }
        }
        if(answer==2){
          cout << "AC" << endl;
        }
        else if(answer<2||answer>2){
          cout << "aA" << endl;
        }
        break;
      }
      else{
        cout << "WA" << endl;
        break;
      }
    }
  }
else{
  cout << "Wa" << endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'strlen' was not declared in this scope
   11 |     for(i = 2;i <= strlen(array) - 2;i++){
      |                    ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 |
Language: C++

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


Compiler output:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>

#define rep(i,n) for(long long int (i)=0;(i)<(int)(n);(i)++)
#define rrep(i,a,b) for(long long int i=(a);i<(b);i++)
#define rrrep(i,a,b) for(long long int i=(a);i>=(b);i--)
#define all(v) (v).begin(), (v).end()
#define pb(q) push_back(q)
#define Size(n) (n).size()
#define Cout(x) cout<<(x)<<endl

typedef long long ll;

using namespace std;

const int INF = 1e9,MOD = 1e9 + 7,ohara = 1e6;
const ll LINF = 1e18;
long long int n,cnt=0,ans=0,a,b,c,d,cmp,cmpp,m,h,w,x,y,sum=0,pos;
int dy[]={1,0,-1,0};
int dx[]={0,1,0,-1};
string alph("abcdefghijklmnopqrstuvwxyz"),s;
bool fl;
struct edge{int to,cost;};

//-------------------------↓↓↓↓↓↓------------------------

int main(void){
       cin.tie(0);
    ios::sync_with_stdio(false);
      
      cin>>n;
      if(n<1200)Cout("ABC");
      else if(n<2800)Cout("ARC");
      else Cout("AGC";)
    
       
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:22: error: expected ')' before ';' token
   33 |       else Cout("AGC";)
      |                      ^
a.cc:9:24: note: in definition of macro 'Cout'
    9 | #define Cout(x) cout<<(x)<<endl
      |                        ^
a.cc:9:23: note: to match this '('
    9 | #define Cout(x) cout<<(x)<<endl
      |                       ^
a.cc:33:12: note: in expansion of macro 'Cout'
   33 |       else Cout("AGC";)
      |            ^~~~
a.cc:9:25: error: expected primary-expression before ')' token
    9 | #define Cout(x) cout<<(x)<<endl
      |                         ^
a.cc:33:12: note: in expansion of macro 'Cout'
   33 |       else Cout("AGC";)
      |            ^~~~
Language: Java

import java.util.*

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

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

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
using namespace std;
typedef long long ll;
int INF = (1LL << 30) - 1;
int MOD = 1e9+7;
main(){
    string[] str = {"ABC","ARC","AGC"};
    int a;
    cin >> a;
    if(a >= 2800)cout << str[2] << endl;
    else if(a >= 1200)cout << str[1] << endl;
    else   cout << str[0] << endl;
}

Compiler output:
a.cc:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    7 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:11: error: structured binding declaration cannot have type 'std::string' {aka 'std::__cxx11::basic_string<char>'}
    8 |     string[] str = {"ABC","ARC","AGC"};
      |           ^~
a.cc:8:11: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:11: error: empty structured binding declaration
a.cc:8:14: error: expected initializer before 'str'
    8 |     string[] str = {"ABC","ARC","AGC"};
      |              ^~~
a.cc:11:26: error: 'str' was not declared in this scope; did you mean 'std'?
   11 |     if(a >= 2800)cout << str[2] << endl;
      |                          ^~~
      |                          std
a.cc:12:31: error: 'str' was not declared in this scope; did you mean 'std'?
   12 |     else if(a >= 1200)cout << str[1] << endl;
      |                               ^~~
      |                               std
a.cc:13:20: error: 'str' was not declared in this scope; did you mean 'std'?
   13 |     else   cout << str[0] << endl;
      |                    ^~~
      |                    std
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected '(' before 'else'
    9 |   if else(1200<=r<2800){
      |      ^~~~
      |      (
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else{
      | ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected '(' before 'else'
    9 |   if else(1200<=r<2800){
      |      ^~~~
      |      (
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else{
      | ^~~~
a.cc:13:7: error: 'AGC' was not declared in this scope
   13 | cout<<AGC<<endl;
      |       ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'elif' was not declared in this scope
   10 |   elif (R < 2800) {
      |   ^~~~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else {
      |   ^~~~
Language: C++

#include <iostream>

using namespace std;

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:17:6: error: expected '}' at end of input
   17 |     }
      |      ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: Java

import java.util.*;


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

Compiler output:
Main.java:13: error: unclosed string literal
      	return "AGC;
      	       ^
1 error
Language: Java

public class Main {

	public static void main(String S) {
		// TODO Auto-generated method stub
		return (aCheck(S)&&cCheck(S)&&sCheck(S))?"AC":"WA";				
	}
	private static boolean aCheck(String str){
		return str.matches("^A.*");
	}
	
	private static boolean cCheck(String str){
		return str.matches("^.{3}.*C.*.{2}$");
	}
	
	private static boolean sCheck(String str){
		return str.matches("^.[a-z]*C[a-z]*$");
	}

}

Compiler output:
Main.java:5: error: incompatible types: unexpected return value
		return (aCheck(S)&&cCheck(S)&&sCheck(S))?"AC":"WA";				
		                                        ^
1 error
Language: C++

#include <iostream>
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:5:1: error: extended character 　 is not valid in an identifier
    5 | 　if (A < 1200){
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000if' was not declared in this scope
    5 | 　if (A < 1200){
      | ^~~~
a.cc:7:3: error: 'else' without a previous 'if'
    7 |  }else{
      |   ^~~~
Language: C++

import java.util.*;

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int num = sc.next();
    if(num<1200){
      printf("ABC");
    }else if(num<2800){
      printf("ARC");
    }else{
      printf("AGC");
    }
  }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'R' was not declared in this scope
    9 |     else if(R<2800) cout<<"ARC";
      |             ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int R;
  cin >> R;
  if (R < 1200) cout << “ABC” << endl;
  else if (R < 2400) cout << “ARC” << endl;
  else cout << “AGC” << endl;

  return 0;
}

Compiler output:
a.cc:9:25: error: extended character “ is not valid in an identifier
    9 |   if (R < 1200) cout << “ABC” << endl;
      |                         ^
a.cc:9:25: error: extended character ” is not valid in an identifier
a.cc:10:30: error: extended character “ is not valid in an identifier
   10 |   else if (R < 2400) cout << “ARC” << endl;
      |                              ^
a.cc:10:30: error: extended character ” is not valid in an identifier
a.cc:11:16: error: extended character “ is not valid in an identifier
   11 |   else cout << “AGC” << endl;
      |                ^
a.cc:11:16: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:25: error: '\U0000201cABC\U0000201d' was not declared in this scope
    9 |   if (R < 1200) cout << “ABC” << endl;
      |                         ^~~~~
a.cc:10:30: error: '\U0000201cARC\U0000201d' was not declared in this scope
   10 |   else if (R < 2400) cout << “ARC” << endl;
      |                              ^~~~~
a.cc:11:16: error: '\U0000201cAGC\U0000201d' was not declared in this scope
   11 |   else cout << “AGC” << endl;
      |                ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9+7;
char s[100005];
int dp[100005][3];
int add(int a, int b){
	return ((a+b)%mod+mod)%mod;
}
int main(){
	scanf("%s", s+1);
	int n = strlen(s+1);

	int res = 1;
	for(int i=1;i<=n;i++){
		if(s[i] == 'A' || s[i] == '?'){
			dp[i][0] = add(dp[i][0], res);

			dp[i][0] = add(dp[i][0], dp[i-1][0]);
			dp[i][1] = add(dp[i][1], dp[i-1][1]);
			dp[i][2] = add(dp[i][2], dp[i-1][2]);
		}
		if(s[i] == 'B' || s[i] == '?'){
			dp[i][1] = add(dp[i][1], dp[i-1][0]);

			dp[i][0] = add(dp[i][0], dp[i-1][0]);
			dp[i][1] = add(dp[i][1], dp[i-1][1]);
			dp[i][2] = add(dp[i][2], dp[i-1][2]);
		}
		if(s[i] == 'C' || s[i] == '?'){
			dp[i][2] = add(dp[i][2], dp[i-1][1]);

			dp[i][0] = add(dp[i][0], dp[i-1][0]);
			dp[i][1] = add(dp[i][1], dp[i-1][1]);
			dp[i][2] = add(dp[i][2], dp[i-1][2]);
		}

		if(s[i] == '?') res = ((LL)res*3)%mod;
	}
	printf("%d\n", dp[n][2]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:41: error: 'LL' was not declared in this scope
   37 |                 if(s[i] == '?') res = ((LL)res*3)%mod;
      |                                         ^~
a.cc:37:44: error: expected ')' before 'res'
   37 |                 if(s[i] == '?') res = ((LL)res*3)%mod;
      |                                       ~    ^~~
      |                                            )
Language: C++

p=print
n=(int)(input())
if n in range (1200):
    p('ABC')
elif n in range (2800):
    p('ARC')
else:
    p('AGC')

Compiler output:
a.cc:4:7: warning: multi-character character constant [-Wmultichar]
    4 |     p('ABC')
      |       ^~~~~
a.cc:6:7: warning: multi-character character constant [-Wmultichar]
    6 |     p('ARC')
      |       ^~~~~
a.cc:8:7: warning: multi-character character constant [-Wmultichar]
    8 |     p('AGC')
      |       ^~~~~
a.cc:1:1: error: 'p' does not name a type
    1 | p=print
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
string s;
cin>>s;
if(s[0]!="A"||s[2]!="C")
{
cout<<"WA"<<endl;
system("pause");
return 0;
}
for(int i=0;i<s.size();i++)
{
if(s[i]=="c")
{
a++;
}
}
if(a!=0)
{
cout<<"WA"<<endl;
system("pause");
return 0;
}
cout<<"AC"<<endl;
system("pause");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 | if(s[0]!="A"||s[2]!="C")
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 | if(s[0]!="A"||s[2]!="C")
a.cc:16:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 | if(s[i]=="c")
a.cc:18:1: error: 'a' was not declared in this scope
   18 | a++;
      | ^
a.cc:21:4: error: 'a' was not declared in this scope
   21 | if(a!=0)
      |    ^
Language: C++

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



Compiler output:
a.cc:2:2: error: invalid preprocessing directive #using
    2 | #using namespace std;
      |  ^~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>a;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | 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:9:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | 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:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | 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:13:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | 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:17:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 | 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:17:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 | cout<<"AGC"<<endl;
      |              ^~~~
      |              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:40: error: expected ';' before 'elseif'
    7 |       if (n<1200) cout << "ABC" << endl
      |                                        ^
      |                                        ;
    8 |       elseif (n<2800) cout << "ARC" << endl
      |       ~~~~~~
Language: C++

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

namespace kyo
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = int.Parse(Console.ReadLine());
            if (x <= 1199) { Console.WriteLine("ABC");}
            else if (x <= 2799) { Console.WriteLine("ARC"); }
            else { Console.WriteLine("AGC")}
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:18:6: error: expected ';' after class definition
   18 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void kyo::Program::Main(int*)':
a.cc:13:21: error: expected primary-expression before 'int'
   13 |             int x = int.Parse(Console.ReadLine());
      |                     ^~~
a.cc:14:30: error: 'Console' was not declared in this scope
   14 |             if (x <= 1199) { Console.WriteLine("ABC");}
      |                              ^~~~~~~
a.cc:15:35: error: 'Console' was not declared in this scope
   15 |             else if (x <= 2799) { Console.WriteLine("ARC"); }
      |                                   ^~~~~~~
a.cc:16:20: error: 'Console' was not declared in this scope
   16 |             else { Console.WriteLine("AGC")}
      |                    ^~~~~~~
Language: C++

#include <iostream>
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:8:20: error: 'ABC' was not declared in this scope
    8 |   if(R<1200) cout<<ABC;
      |                    ^~~
a.cc:9:25: error: 'ARC' was not declared in this scope
    9 |   else if(R<2800) cout<<ARC;
      |                         ^~~
a.cc:10:14: error: 'AGC' was not declared in this scope
   10 |   else cout<<AGC;
      |              ^~~
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main(){
    int N, K, ans;
    cin >> N >> K;
    n_N = abs(N);
    n_K = abs(K);
    ans = n_N%n_K;
    cout << ans << '\n';
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'n_N' was not declared in this scope
    7 |     n_N = abs(N);
      |     ^~~
a.cc:8:5: error: 'n_K' was not declared in this scope
    8 |     n_K = abs(K);
      |     ^~~
Language: C++

use std::io::*;
use std::str::FromStr;

fn main(){
    let r = read::<u32>();
    println!("{}", if r < 1200 {"ABC"} else if r < 2800 {"ARC"} else {"AGC"});
}

fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let stdin = stdin.lock();
    let token: String = stdin
        .bytes()
        .map(|c| c.expect("failed to read char") as char) 
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().expect("failed to parse token")
}

Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io::*;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:4:1: error: 'fn' does not name a type
    4 | fn main(){
      | ^~
a.cc:9:1: error: 'fn' does not name a type
    9 | fn read<T: FromStr>() -> T {
      | ^~
Language: Java

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

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

#include<iostream>
int main(){
int r;
std::cin >> r;

if( r < 1200 ) std::cout << "ABC" << std::endl;

else if( r <  2800 ) std::cout << "ARC" <<std::endl;


else i std::cout << "AGC" << std::endl;


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'i' was not declared in this scope
   11 | else i std::cout << "AGC" << std::endl;
      |      ^
Language: C

#include<stdio.h>

int main(void)
{
  int R;
  scanf_s("%d",&R);
  
  if(R<1200) printf("ABC");
  else{if(R<2800) printf("ARC");
  else printf("AGC");}
 
  return 0;
} 

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

#include<stdio.h>

int main(void)
{
  int R;
  scanf_s("%d",&R);
  
  if(R<1200) printf("ABC");
  else{if(R<2800) printf("ARC");
  else printf("AGC");}
 
  return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |   scanf_s("%d",&R);
      |   ^~~~~~~
      |   scanf