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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<ll,ll>;
//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define inf 2147483647 //int値の最大値
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素
#define CST(x) cout<<fixed<<setprecision(x)//小数点以下の桁数指定
template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
int gcd(int a, int b) {
    if (b==0) return a;
    else return gcd(b, a%b);
}
int lcm(int a, int b) {
    return a * b / gcd(a, b);
}
int two(int n){
	ll ans=1;
	rep(i,n){
		ans*=2;
	}
	return ans;
}
int main() {
	cin.tie(0);
	cout.tie(0);
	ios::sync_with_stdio(false);

    int a,b;
    cin >>a>>b>>c;
    int N=100*a +b*10 +c;

    if(N%4==0)cout<<"YES\n";
    else cout<<"NO\n";
    
  
}

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

#include <cstdio>

int main()
{
    int a,b,c;
    scanf("%d %d %d", &a, &b, &c);
    if (a * 100 + b * 10 + c) % 4 == 0)
    {
        printf("YES");
    }
    
    else 
    {
        printf("NO");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected primary-expression before '%' token
    7 |     if (a * 100 + b * 10 + c) % 4 == 0)
      |                               ^
Language: C++

#include <cstdio>

int main()
{
    int a,b,c;
    scanf("%d %d %d", &a, &b, &c)
    if (a * 100 + b * 10 + c) % 4 == 0)
    {
        printf("YES")
    }
    
    else 
    {
        printf("NO")
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:34: error: expected ';' before 'if'
    6 |     scanf("%d %d %d", &a, &b, &c)
      |                                  ^
      |                                  ;
    7 |     if (a * 100 + b * 10 + c) % 4 == 0)
      |     ~~                            
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else
      |     ^~~~
a.cc:14:21: error: expected ';' before '}' token
   14 |         printf("NO")
      |                     ^
      |                     ;
   15 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    
    int r, g, b;
    cin >> r >> g >> b;
    
    int num = (r * 100) + (g * 10) + b;
    
    if(num % 4 == 0){
        cout << "YES" << endl;
    }
    eles{
        cout << "NO" << endl;
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'eles' was not declared in this scope
   13 |     eles{
      |     ^~~~
Language: C++

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

#define int long long

#define ii pair<int,int>
#define fi first
#define sc second

#define all(x) (x).begin(),(x).end()

int color(int n) {
  if (n < 400) return 1;
  else if (n < 800) return 2;
  else if (n < 1200) return 3;
  else if (n < 1600) return 4;
  else if (n < 2000) return 5;
  else if (n < 2400) return 6;
  else if (n < 2800) return 7;
  else if (n < 3200) return 8;
  else return 0;
}

signed main() {
#ifdef _DEBUG
  // freopen("in" , "r", stdin );
  // freopen("out", "w", stdout);
#endif
  ios::sync_with_stdio(0); cin.tie(0);
  int n;
  cin >> n;
  set<int> s;
  int c = 0;
  for (int i = 1; i <= n; i++) {
    int t;
    cin >> t;
    t = color(t);
    if (t) s.insert(t);
    else c++;
  }
  cout << max(s.size(), 1ULL) << ' ' << s.size() + c << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:14: error: no matching function for call to 'max(std::set<long long int>::size_type, long long unsigned int)'
   41 |   cout << max(s.size(), 1ULL) << ' ' << s.size() + c << '\n';
      |           ~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:41:14: note:   deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'long long unsigned int')
   41 |   cout << max(s.size(), 1ULL) << ' ' << s.size() + c << '\n';
      |           ~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:41:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
   41 |   cout << max(s.size(), 1ULL) << ' ' << s.size() + c << '\n';
      |           ~~~^~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int r, g, b;
    cin >> r >> g >>b;
    int c = r*100+g*10+b
    if (c % 4 == 0) cout << "YES" << endl;
    else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'if'
    8 |     if (c % 4 == 0) cout << "YES" << endl;
      |     ^~
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else cout << "NO" << endl;
      |     ^~~~
Language: C

#include <stdio.h>

int main(void)
{
        int r,g,b,s;
        scanf("%d%d%d",&r,&g,&b);
        s=r*100+d*10+b;
        if(s%4==0)printf("YES");
        else printf("NO");
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:17: error: 'd' undeclared (first use in this function)
    7 |         s=r*100+d*10+b;
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
        int r,g,b.s;
        scanf("%d%d%d",&r,&g,&b);
        s=r*100+d*10+b;
        if(s%4==0)printf("YES");
        else printf("NO");
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    5 |         int r,g,b.s;
      |                  ^
main.c:6:31: error: 'b' undeclared (first use in this function)
    6 |         scanf("%d%d%d",&r,&g,&b);
      |                               ^
main.c:6:31: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: 's' undeclared (first use in this function)
    7 |         s=r*100+d*10+b;
      |         ^
main.c:7:17: error: 'd' undeclared (first use in this function)
    7 |         s=r*100+d*10+b;
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
　int r,g,b;
　cin>>r>>g>>b;
　int S;
　S = (r*100)+(g*10)+b;
　if(S%4==0){
　    cout<<"YES"<<endl;
　}else{
　    cout<<"NO"<<endl;
　}
        
}


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　int r,g,b;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　cin>>r>>g>>b;
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　int S;
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　S = (r*100)+(g*10)+b;
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　if(S%4==0){
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　    cout<<"YES"<<endl;
      | ^
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　}else{
      | ^
a.cc:12:1: error: extended character 　 is not valid in an identifier
   12 | 　    cout<<"NO"<<endl;
      | ^
a.cc:13:1: error: extended character 　 is not valid in an identifier
   13 | 　}
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000int' was not declared in this scope
    5 | 　int r,g,b;
      | ^~~~~
a.cc:6:1: error: '\U00003000cin' was not declared in this scope
    6 | 　cin>>r>>g>>b;
      | ^~~~~
a.cc:6:8: error: 'r' was not declared in this scope
    6 | 　cin>>r>>g>>b;
      |        ^
a.cc:6:11: error: 'g' was not declared in this scope
    6 | 　cin>>r>>g>>b;
      |           ^
a.cc:6:14: error: 'b' was not declared in this scope
    6 | 　cin>>r>>g>>b;
      |              ^
a.cc:7:6: error: expected ';' before 'S'
    7 | 　int S;
      |      ^~
      |      ;
a.cc:8:1: error: '\U00003000S' was not declared in this scope
    8 | 　S = (r*100)+(g*10)+b;
      | ^~~
a.cc:9:6: error: 'S' was not declared in this scope
    9 | 　if(S%4==0){
      |      ^
a.cc:9:1: error: '\U00003000if' was not declared in this scope
    9 | 　if(S%4==0){
      | ^~~~
a.cc:11:4: error: 'else' without a previous 'if'
   11 | 　}else{
      |    ^~~~
a.cc:12:1: error: '\U00003000' was not declared in this scope
   12 | 　    cout<<"NO"<<endl;
      | ^~
a.cc:13:3: error: expected ';' before '}' token
   13 | 　}
      |   ^
      |   ;
Language: C

#include <stdio.h>

int main(void) {
  int r, g, b;
  scanf ("%d %d %d", &r, &g, &b);
  int q = (10g + b)/4;
  int a = (10g + b) - 4r;
  if (a = 0){
    printf("YES");
  }else {
    printf("NO");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: invalid suffix "g" on integer constant
    6 |   int q = (10g + b)/4;
      |            ^~~
main.c:7:12: error: invalid suffix "g" on integer constant
    7 |   int a = (10g + b) - 4r;
      |            ^~~
main.c:7:3: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
    7 |   int a = (10g + b) - 4r;
      |   ^~~
main.c:7:23: error: fixed-point types not supported for this target
    7 |   int a = (10g + b) - 4r;
      |                       ^~
Language: Java

import java.util.*;
 
public class Main {
    public static void main(String[] args)  
        Scanner scan = new Scanner(System.in);
        
        int r = scan.nextInt();
        int g = scan.nextInt();
        int b = scan.nextInt();
        
        int rgb = r * 100 + g *10 + b;
        
        if((rgb % 4) == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}

Compiler output:
Main.java:4: error: ';' expected
    public static void main(String[] args)  
                                          ^
Main.java:13: error: illegal start of type
        if((rgb % 4) == 0){
        ^
Main.java:13: error: <identifier> expected
        if((rgb % 4) == 0){
               ^
Main.java:15: error: illegal start of type
        }else{
         ^
Main.java:19: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
       
        Scanner scan = new Scanner(System.in);
        
        int r = scan.nextint();
        int g = scan.nextint();
        int b = scan.nextint();
        
        int rgb = r * 100 + g *10 + b;
        
        if((rgb % 4) == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        int r = scan.nextint();
                    ^
  symbol:   method nextint()
  location: variable scan of type Scanner
Main.java:10: error: cannot find symbol
        int g = scan.nextint();
                    ^
  symbol:   method nextint()
  location: variable scan of type Scanner
Main.java:11: error: cannot find symbol
        int b = scan.nextint();
                    ^
  symbol:   method nextint()
  location: variable scan of type Scanner
3 errors
Language: Java

import java.util.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
       
        Scanner scan = new Scanner(System.in);
        
        int r = scan.nextint();
        int g = scan.nextint();
        int b = scan.nextint();
        
        int rgb = r * 100 + g *10 + b
        
        if((rgb % 4) == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
       
        Scanner scan = new Scanner(System.in);
        
        int r = scan.nextint();
        int g = scan.nextint();
        int b = scan.nextint();
        
        int rgb = r * 100 + g *10 + b;
        
        if((rgb % 4) == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}
提出情報
提出日時	

Compiler output:
Main.java:13: error: ';' expected
        int rgb = r * 100 + g *10 + b
                                     ^
Main.java:22: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:43: error: class, interface, enum, or record expected
????
^
3 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
       
        Scanner scan = new Scanner(System.in);
        
        int r = scan.nextint();
        int g = scan.nextint();
        int b = scan.nextint();
        
        int rgb = r * 100 + g *10 + b
        
        if((rgb % 4) == 0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}


Compiler output:
Main.java:13: error: ';' expected
        int rgb = r * 100 + g *10 + b
                                     ^
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        String card = r + g + b;
        
        int num = Integer.parseInt(card);
        
        if(num % 4 == 0){
            System.out.println("yes");
        }else{
            System.out.println("no");
        }
    }
}


Compiler output:
Main.java:6: error: cannot find symbol
        String card = r + g + b;
                      ^
  symbol:   variable r
  location: class Main
Main.java:6: error: cannot find symbol
        String card = r + g + b;
                          ^
  symbol:   variable g
  location: class Main
Main.java:6: error: cannot find symbol
        String card = r + g + b;
                              ^
  symbol:   variable b
  location: class Main
3 errors
Language: C++

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

int main(){
  int a,b,c,k;
  cin >> a >> b >> c;
  k = b * 10 + c;
  if(k % 4 == 0) cout << "YES" << endl;
  else cout << "NO" << endl;
}

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

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

int main(){
  
  char a,b,c;
  cin >> a >> b >> c;
  
  d = 100*a + 10*b + c;
  
  if( d%4 == 0 ){
    
    cout << "YES" << endl;
    
  }
  
  else{
    
    cout << "NO" << endl;
    
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'd' was not declared in this scope
    9 |   d = 100*a + 10*b + c;
      |   ^
Language: C++

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

int main(){
  int A,B,C;
  cin >> A >> B >> C;
  if((B * 10 + C) % 4 = 0){
    cout << "YES" << endl;
  }
else{
  cout << "NO" << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: lvalue required as left operand of assignment
    7 |   if((B * 10 + C) % 4 = 0){
      |      ~~~~~~~~~~~~~^~~
Language: C++

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

int main(){
  int A,B,C;
  cin >> A >> B >> C;
  if((B * 10 + C) % 4 = 0;){
    cout << "YES" << endl;
  }
else{
  cout << "NO" << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: lvalue required as left operand of assignment
    7 |   if((B * 10 + C) % 4 = 0;){
      |      ~~~~~~~~~~~~~^~~
a.cc:7:27: error: expected primary-expression before ')' token
    7 |   if((B * 10 + C) % 4 = 0;){
      |                           ^
Language: C++

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

int main(){
  int A,B,C;
  cin >> A >> B >> C;
  if((B * 10 + C) % 4 = 0;){
    cout << "YES" << endl;
  }
else{
  cout << "NO" << endl
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: lvalue required as left operand of assignment
    7 |   if((B * 10 + C) % 4 = 0;){
      |      ~~~~~~~~~~~~~^~~
a.cc:7:27: error: expected primary-expression before ')' token
    7 |   if((B * 10 + C) % 4 = 0;){
      |                           ^
a.cc:11:23: error: expected ';' before '}' token
   11 |   cout << "NO" << endl
      |                       ^
      |                       ;
   12 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int main(void){
	int r, g, b;
    cin >> r >> g >> b;
    int s = r * 100 + g * 10 + b;
    
    if (s % 4 == 0) cout << "YES << endl;
    else cout << "NO" << endl;
    return 0;
}

Compiler output:
a.cc:8:29: warning: missing terminating " character
    8 |     if (s % 4 == 0) cout << "YES << endl;
      |                             ^
a.cc:8:29: error: missing terminating " character
    8 |     if (s % 4 == 0) cout << "YES << endl;
      |                             ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: expected primary-expression before 'else'
    9 |     else cout << "NO" << endl;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
#define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)
#define rrep(i,j,n) for(ll i = (ll)(j); i < (ll)(n); i++)
#define mrep(i,n) for (ll i = (ll)(n-1); i > 0; i--)
#define be(v) (v).begin(), (v).end()
#define scout cout << fixed << setprecision(20) 
ll INF = 1LL << 60;
ll mod = 1e9 + 7;

int main() {
	int a,b,c; cin >> a >> b >> c;
	itn s=a*100+b*10+c;
	if(s%4==0) cout << "YES" << endl;
	else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'itn' was not declared in this scope; did you mean 'int'?
   16 |         itn s=a*100+b*10+c;
      |         ^~~
      |         int
a.cc:17:12: error: 's' was not declared in this scope
   17 |         if(s%4==0) cout << "YES" << endl;
      |            ^
Language: C++

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



       int a=stoi(s);

if(a%4==0)
cout<<"YES";
else
cout<<"NO";
   return 0; 
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'String' was not declared in this scope
    7 | String s;
      | ^~~~~~
a.cc:8:6: error: 's' was not declared in this scope
    8 | cin>>s;
      |      ^
a.cc:13:12: error: redeclaration of 'int a'
   13 |        int a=stoi(s);
      |            ^
a.cc:9:5: note: 'int a' previously declared here
    9 | int a;
      |     ^
Language: C++

#include <iostream>
#include <climits>
#include <algorithm>


int main(){

  //initialization
  int r, g ,b;
  int ans;

  //input data
  cin  >> r >> g >> b;

  //solver
  ans = ((r * 100) + (g * 10) +  b) % 4 
  if(ans == 0){
    cout << "YES" << "\n";
  } else {
    cout << "NO" << "\n";
  }

  //output

}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |   cin  >> r >> g >> b;
      |   ^~~
      |   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:16:40: error: expected ';' before 'if'
   16 |   ans = ((r * 100) + (g * 10) +  b) % 4
      |                                        ^
      |                                        ;
   17 |   if(ans == 0){
      |   ~~                                    
a.cc:19:5: error: 'else' without a previous 'if'
   19 |   } else {
      |     ^~~~
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |     cout << "NO" << "\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

typedef long long ll;

int main() {

    ll n;
    cin >> n;
    int gy = 0, br = 0, gr = 0, cy = 0, bl = 0, yl = 0, org = 0, r = 0, h = 0;
    for (int i = 0; i < n; i++) {
            int x;
            cin >> x;
    if(x >= 0 && x <= 399) {
        gy = 1;
    }
    else if(x >= 400 && x <= 799) {
        br = 1;
    }
    else if(x >= 800 && x <= 1199) {
        gr = 1;
    }
    else if(x >= 1200 && x <= 1599) {
        cy = 1;
    }
    else if(x >= 1600 && x <= 1999) {
        bl = 1;
    }
    else if(x >= 2000 && x <= 2399) {
        yl = 1;
    }
    else if(x >= 2400 && x <= 2799) {
        org = 1;
    }
   else if(x >= 2800 && x <= 3199) {
        r = 1;
    }
    else {
        h++;
    }

    }
   // int y = min(8, h);

    cout << gy + br + gr + cy + bl + yl + org + r << " " << gy + br + gr + cy + bl + yl + org + r + y << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:101: error: 'y' was not declared in this scope
   46 |     cout << gy + br + gr + cy + bl + yl + org + r << " " << gy + br + gr + cy + bl + yl + org + r + y << endl;
      |                                                                                                     ^
Language: C++

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

int main() {
  string a,b,c;
  cin>>a>>b>>c;
  string rgb=a+b+c;
  int abc=stoi(rgb);
  if(abc % 4==0){
    cont<<"YES"<<endl;
  }
  else{
    cout<<"NO"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cont' was not declared in this scope; did you mean 'const'?
   10 |     cont<<"YES"<<endl;
      |     ^~~~
      |     const
Language: C++

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

int main() {
  int r, g, b;
  cin >> r >> g >> b;
  if((10*g+b)%4==0){
    cout << "YES" << endl;
  }else{
    cout << "NO" << emdl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'emdl' was not declared in this scope
   10 |     cout << "NO" << emdl;
      |                     ^~~~
Language: Java

import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        int r = sc.nextInt();
        int g = sc.nextInt();
        int b = sc.nextInt();

        int amari = (10 * g + b) % 4;
        if (amari == 0) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }

Compiler output:
Main.java:17: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.*;


import java.io.*;
public class solutions {
public static void main (String[]args){
    String val = "";
    Scanner in = new Scanner(System.in);
    String input = in.nextLine();    // get the entire line after the prompt 
    String[] numbers = input.split(" "); // split by spaces
    val = numbers[0] + numbers[1] + numbers[2];
   if(Integer.parseInt(val)%4==0) {
       System.out.println("YES");
   }
   else{
       System.out.println("NO");
   }
}
}

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

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

int main(void){
  int a, b, c;
  cin >> a >> b>> c;
  
  int number = a * 100 +  b * 10 + c;
  if (nunber / 4 == 0){
  	cout << "YES" << endl;
  }else{
  	cout << "NO" << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'nunber' was not declared in this scope; did you mean 'number'?
    9 |   if (nunber / 4 == 0){
      |       ^~~~~~
      |       number
Language: C++

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

int main(void){
  int a, b, c;
  cin >> a >> b>> c;
  
  int number = a * 100 +  b * 10 + c;
  if (nunber / 4 == 0){
  	cout << "YES" << endl;
  }else{
  	cout << "NO" << endl;
  }
  
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
 
int main() {
    int r,g,b;
    cin >> r >> g >> b;
    int a=10*g+b;
    if(a%4==0)cpit << "YES" << endl;
    else cout << "NO" << endl;    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'cpit' was not declared in this scope
   12 |     if(a%4==0)cpit << "YES" << endl;
      |               ^~~~
Language: C++

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

int main() {
   int r, b, b;
   cin >> r >> g >> b;

   if ((r + 100 + g * 10 + b) % 4 == 0) {
       cout << "YES" << endl;
   } else {
       cout << "NO" << endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: redeclaration of 'int b'
    8 |    int r, b, b;
      |              ^
a.cc:8:11: note: 'int b' previously declared here
    8 |    int r, b, b;
      |           ^
a.cc:9:16: error: 'g' was not declared in this scope
    9 |    cin >> r >> g >> b;
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  if((a*10+b)%4==0||(b*10+c)%4==0||(c*10+a)%4==0
    (b*10+a)%4==0||(c*10+b)%4==0||(a*10+c)%4==0){
    cout<<"YES"<<endl;
  }
  else{
    cout<<"NO"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expression cannot be used as a function
    6 |   if((a*10+b)%4==0||(b*10+c)%4==0||(c*10+a)%4==0
      |                                                ~
    7 |     (b*10+a)%4==0||(c*10+b)%4==0||(a*10+c)%4==0){
      |     ^~~~~~~~
Language: C++

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

int main(){
  int A,B,C;
   cin A >> B >> C;
  
  if(B * 10 + C % 4 == 0){
    cout << "No" << endl;
  }
  
  if(B * 10 + C % 4 != 0){
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected ';' before 'A'
    6 |    cin A >> B >> C;
      |       ^~
      |       ;
Language: C++

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

int main() {
  int A,B,C;
   cin A >> B >> C;
  
  if(B * 10 + C % 4 = 0){
    cout << "No" << endl;
  }
  
  if(B * 10 + C % 4 != 0){
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected ';' before 'A'
    6 |    cin A >> B >> C;
      |       ^~
      |       ;
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |   if(B * 10 + C % 4 = 0){
      |      ~~~~~~~^~~~~~~
Language: C

#include<stdio.h>
int main(void){
  scanf("%d%d%d",&int a,&int b,&int c);
  if((a*100+b*10+c)%4==0)
    printf("Yes");
  else
    printf("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:19: error: expected expression before 'int'
    3 |   scanf("%d%d%d",&int a,&int b,&int c);
      |                   ^~~
main.c:4:7: error: 'a' undeclared (first use in this function)
    4 |   if((a*100+b*10+c)%4==0)
      |       ^
main.c:4:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:13: error: 'b' undeclared (first use in this function)
    4 |   if((a*100+b*10+c)%4==0)
      |             ^
main.c:4:18: error: 'c' undeclared (first use in this function)
    4 |   if((a*100+b*10+c)%4==0)
      |                  ^
Language: C++

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

int main() {
  string r,g,b;
  cin >> r >> g >> b;
  if(atoi(g + b) % 4 == 0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
    7 |   if(atoi(g + b) % 4 == 0) {
      |           ~~^~~
      |             |
      |             std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

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


int main() {
  int r, g, b, num;
  cin >> r >> g >>b;
  
  num = r*100 + g*10 + b;
    
  if (num%4 == 0){
    cout << "YES" << endl;
  }
  else {
    cout << "NO << endl;
  }
}
 


Compiler output:
a.cc:15:13: warning: missing terminating " character
   15 |     cout << "NO << endl;
      |             ^
a.cc:15:13: error: missing terminating " character
   15 |     cout << "NO << endl;
      |             ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:3: error: expected primary-expression before '}' token
   16 |   }
      |   ^
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int N =sc.nextInt();
    int a=sc.nextInt();
    for(int i=1;i<N;i++){
      int Min;
      int Max;
      if(Min>a)Min=a;
      if(Max<a)Max=a;
    System.out.println(Max-Min);}
} 
}


Compiler output:
Main.java:10: error: variable Min might not have been initialized
      if(Min>a)Min=a;
         ^
Main.java:11: error: variable Max might not have been initialized
      if(Max<a)Max=a;
         ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int N=sc.nextInt();
    int a=sc.nextInt();
    for(int i=1;i<N;i++){
      int Min=a;
      int Max=a;
      System.out.println(Max-Min);}
}   
}


Compiler output:
Main.java:4: error: cannot find symbol
    int N=sc.nextInt();
          ^
  symbol:   variable sc
  location: class Main
Main.java:5: error: cannot find symbol
    int a=sc.nextInt();
          ^
  symbol:   variable sc
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	int a, b, c;
  cin >> a >> b >> c;
  int red = a*100;
  int green = g*10;
  int blue = c;
  int num = red + green + blue;
  if(num % 4 == 0){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'g' was not declared in this scope
    8 |   int green = g*10;
      |               ^
Language: C++

#include <iostream.h>
using namespace std;

int main(){
  int r,g,b,sum;
  cin>>r>>g>>b;
  sum=r*100+g*10+b;
  if(sum%4==0){
    cout<<YES<<endl;
  }else{
    cout<<NO<<endl;
  }
}
  

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

#inclde<stdio.h>
int main(void){
  int a, b, c;
  int sum;
  scanf("%d %d %d",&a &b &c);
  sum = 100*a + 10*b + c;
  if(sum % 4 == 0){
    puts("YES\n");
  }else{
    puts("NO\n");
  }
  reutn 0;
}


  

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d %d %d",&a &b &c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclde<stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d %d %d",&a &b &c);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:23: error: invalid operands to binary & (have 'int *' and 'int')
    5 |   scanf("%d %d %d",&a &b &c);
      |                    ~~ ^
      |                    |
      |                    int *
main.c:8:5: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    8 |     puts("YES\n");
      |     ^~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:12:3: error: 'reutn' undeclared (first use in this function)
   12 |   reutn 0;
      |   ^~~~~
main.c:12:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:8: error: expected ';' before numeric constant
   12 |   reutn 0;
      |        ^~
      |        ;
Language: C++

#include <bists/stdc++.h>
using namespace std;
int main(){
    int r,g,b;
    cin>>r>>g>>b;
    int x=100*r+10*g+b;
    cout<<(x%4==0?"YES":"NO")<<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
main(){
  // ここにプログラムを追記
  int A,B,C;
  cin>> A >>B>>C;
  int X=100*A+10*B+C;
  if (X % 4 =0) {cout <<"YES"<<endl;
               }

else{ cout<<"NO"<<endl;
}
}


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   if (X % 4 =0) {cout <<"YES"<<endl;
      |       ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
main(){
  // ここにプログラムを追記
  int A,B,C;
  cin>> A >>B>>C;
  int X=100*A+10*B+C;
  if (X %4 =0) {cout <<"YES"<<endl;
               }

else{ cout<<"NO"<<endl;
}
}


Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   if (X %4 =0) {cout <<"YES"<<endl;
      |       ~~^~
Language: C++

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

  // ここにプログラムを追記
  int A,B,C;
  cin>> A >>B>>C;
  int X=100*A+10*B+C;
  if (X %4 =0) {cout <<"YES"<<endl;
               }

else{ cout<<"NO"<<endl;
}
}


Compiler output:
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>> A >>B>>C;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if (X %4 =0) {cout <<"YES"<<endl;
      |   ^~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else{ cout<<"NO"<<endl;
      | ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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

  // ここにプログラムを追記
  int A,B,C;
  cin>> A >>B>>C;
  int X=100*A+10*B+C;
  if (X %4 =0)cout <<"YES"<<endl;
else cout<<"NO"<<endl;
}

Compiler output:
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>> A >>B>>C;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if (X %4 =0)cout <<"YES"<<endl;
      |   ^~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else cout<<"NO"<<endl;
      | ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int r,g,b;
    Scanner sc=new Scanner(System.in);
    int r = sc.nextInt();
    int g = sc.nextInt();
    int b = sc.nextInt();
    if((100*r+10*g+b)%4==0){
      System.out.println("YES");}
    else{System.out.println("NO");}
  }
}


Compiler output:
Main.java:6: error: variable r is already defined in method main(String[])
    int r = sc.nextInt();
        ^
Main.java:7: error: variable g is already defined in method main(String[])
    int g = sc.nextInt();
        ^
Main.java:8: error: variable b is already defined in method main(String[])
    int b = sc.nextInt();
        ^
3 errors
Language: Java

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int r = sc.nextInt();
    int g = sc.nextInt();
    int b = sc.nextInt();
    if ((100 * r + 10 * g + b) % 4 == 0) {
      System.out.println("YES");
    } else {
      System.out.println("NO");
    }
  }
}

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

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main__ {
  public static void main(String[] args) {
    Deque<Integer> list = new ArrayDeque<>(List.of(2,1,0));
    try (Scanner sc = new Scanner(System.in)) {   
      int sum = Stream.of(sc.nextLine().split(" "))
                      .map(Integer::valueOf)
                      .reduce(0, (x, y) -> x + y * (int) Math.pow(10,list.removeFirst()));
      System.out.println((sum % 4 == 0) ? "Yes" : "No");
    }
  }
}

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

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

int main(){


    int a,b,c;
    cin >> a >> b >> c;
    int c = (100*a)+(10*b)+c;
    if(c%4 == 0){
        cout << "YES" << endl;
    }
    else{
        cout << "NO" << endl;

    }

}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: redeclaration of 'int c'
    9 |     int c = (100*a)+(10*b)+c;
      |         ^
a.cc:7:13: note: 'int c' previously declared here
    7 |     int a,b,c;
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a,b,c;
  cin >> a >> b >> c;
  a *= 100;
  b *= 10;
  t = a+b+c;
  if (t%4 == 0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
}

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

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int r,g,b;
    Scanner sc=new Scanner(System.in);
    int r = sc.nextInt();
    int g = sc.nextInt();
    int b = sc.nextInt();
    if((100*r+10*g+b)%4==0){
      System.out.println("Yes");}
    else{System.out.println("No");}
  }
}


Compiler output:
Main.java:6: error: variable r is already defined in method main(String[])
    int r = sc.nextInt();
        ^
Main.java:7: error: variable g is already defined in method main(String[])
    int g = sc.nextInt();
        ^
Main.java:8: error: variable b is already defined in method main(String[])
    int b = sc.nextInt();
        ^
3 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    int r,g,b;
    Scanner sc=new Scanner(System.in);
    int r = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    if((100*r+10*g+b)%4==0){
      System.out.println("Yes");}
    else{System.out.println("No");}
  }
}


Compiler output:
Main.java:6: error: variable r is already defined in method main(String[])
    int r = sc.nextInt();
        ^
Main.java:7: error: variable b is already defined in method main(String[])
    int b = sc.nextInt();
        ^
2 errors
Language: Java

public class Main{
  public static void main(String[] args){
    int r;
    int g;
    int b;
    if((100*r+10*g+b)%4==0){
      System.out.println("Yes");}
    else{System.out.println("No");}
  }
}


Compiler output:
Main.java:6: error: variable r might not have been initialized
    if((100*r+10*g+b)%4==0){
            ^
Main.java:6: error: variable g might not have been initialized
    if((100*r+10*g+b)%4==0){
                 ^
Main.java:6: error: variable b might not have been initialized
    if((100*r+10*g+b)%4==0){
                   ^
3 errors
Language: Java

public class Main{
  public static void main(String[] args){
    int r,g,b;
    if((100*r+10*g+b)%4==0){
      System.out.println("Yes");}
    else{System.out.println("No");}
  }
}


Compiler output:
Main.java:4: error: variable r might not have been initialized
    if((100*r+10*g+b)%4==0){
            ^
Main.java:4: error: variable g might not have been initialized
    if((100*r+10*g+b)%4==0){
                 ^
Main.java:4: error: variable b might not have been initialized
    if((100*r+10*g+b)%4==0){
                   ^
3 errors
Language: Java

public class Main{
  public static void main(String[] args){
    int r,g,b;
    if((100r+10g+b)%4==0){
      System.out.println("Yes");
    else{System.out.println("No");
  }
}


Compiler output:
Main.java:4: error: ')' expected
    if((100r+10g+b)%4==0){
           ^
Main.java:4: error: not a statement
    if((100r+10g+b)%4==0){
            ^
Main.java:4: error: ';' expected
    if((100r+10g+b)%4==0){
               ^
Main.java:4: error: not a statement
    if((100r+10g+b)%4==0){
                ^
Main.java:4: error: ';' expected
    if((100r+10g+b)%4==0){
                  ^
Main.java:6: error: 'else' without 'if'
    else{System.out.println("No");
    ^
Main.java:8: error: reached end of file while parsing
}
 ^
7 errors
Language: Java

public class Main{
  public static void main(String[] args){
    int r,g,b;
    if((100r+10g+b)%4==0){
      System.out.println("Yes");}
    else{System.out.println("No");}
  }
}


Compiler output:
Main.java:4: error: ')' expected
    if((100r+10g+b)%4==0){
           ^
Main.java:4: error: not a statement
    if((100r+10g+b)%4==0){
            ^
Main.java:4: error: ';' expected
    if((100r+10g+b)%4==0){
               ^
Main.java:4: error: not a statement
    if((100r+10g+b)%4==0){
                ^
Main.java:4: error: ';' expected
    if((100r+10g+b)%4==0){
                  ^
Main.java:6: error: 'else' without 'if'
    else{System.out.println("No");}
    ^
6 errors
Language: Java

public class Main{
  public static void main(String[] args){
    int r,g,b;
    if((100r+10g+b)%4 == 0){
      System.out.println("Yes");}
    else{System.out.println("No");}
  }
}


Compiler output:
Main.java:4: error: ')' expected
    if((100r+10g+b)%4 == 0){
           ^
Main.java:4: error: not a statement
    if((100r+10g+b)%4 == 0){
            ^
Main.java:4: error: ';' expected
    if((100r+10g+b)%4 == 0){
               ^
Main.java:4: error: not a statement
    if((100r+10g+b)%4 == 0){
                ^
Main.java:4: error: ';' expected
    if((100r+10g+b)%4 == 0){
                  ^
Main.java:6: error: 'else' without 'if'
    else{System.out.println("No");}
    ^
6 errors
Language: C++

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

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  
  x = a * 100 + b * 10 + c;
  if (x % 4 == 0) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x = a * 100 + b * 10 + c;
      |   ^
Language: C++

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

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  
  x = a * 100 + b * 10 + c;
  if (x % 4 = 0) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x = a * 100 + b * 10 + c;
      |   ^
Language: C

#include<stdio.h>

int main(void){
  int *n[3];
  scanf("%d",&n[]);
  
  if((*n[0]*100 + *n[1]*10 + *n[2])%4 == 0){
    printf("YES");
  }
  else{printf("NO");}
  return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected expression before ']' token
    5 |   scanf("%d",&n[]);
      |                 ^
Language: C

#include<stdio.h>

int main(void){
  int *n[3];
  scanf("%d",&n);
  
  if((n[0]*100 + n[1]*10 + n[2])%4 == 0){
    printf("YES");
  }
  else{printf("NO");}
  return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid operands to binary * (have 'int *' and 'int')
    7 |   if((n[0]*100 + n[1]*10 + n[2])%4 == 0){
      |       ~~~~^
      |        |
      |        int *
main.c:7:22: error: invalid operands to binary * (have 'int *' and 'int')
    7 |   if((n[0]*100 + n[1]*10 + n[2])%4 == 0){
      |                  ~~~~^
      |                   |
      |                   int *
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <utility>
using namespace std;
using ll = long long;
 
int main() {
int a,b,c;
  cin >> a >>b >>c;
  int a = a*100 + b*10+c;
  if (a %4 == 0) cout <<"YES" << endl;
  else cout << "NO" << endl;
}
#include <iostream>
#include <algorithm>
#include <math.h>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <utility>
using namespace std;
using ll = long long;
 
int main() {
int a,b,c;
  cin >> a >>b >>c;
  int d = a*100 + b*10+c;
  if (d %4 == 0) cout <<"YES" << endl;
  else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: redeclaration of 'int a'
   15 |   int a = a*100 + b*10+c;
      |       ^
a.cc:13:5: note: 'int a' previously declared here
   13 | int a,b,c;
      |     ^
a.cc: At global scope:
a.cc:30:5: error: redefinition of 'int main()'
   30 | int main() {
      |     ^~~~
a.cc:12:5: note: 'int main()' previously defined here
   12 | int main() {
      |     ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <utility>
using namespace std;
using ll = long long;
 
int main() {
int a,b,c;
  cin >> a >>b >>c;
  int a = a*100 + b*10+c;
  if (a %4 == 0) cout <<"YES" << endl;
  else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: redeclaration of 'int a'
   15 |   int a = a*100 + b*10+c;
      |       ^
a.cc:13:5: note: 'int a' previously declared here
   13 | int a,b,c;
      |     ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >>c;
    int d = 10 * b + c;
    if d % 4 == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected '(' before 'd'
    8 |     if d % 4 == 0) cout << "Yes" << endl;
      |        ^
      |        (
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else cout << "No" << endl;
      |     ^~~~
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int a, b, c;
 cin >> a >> b >> c;
 if ((10*b+c)%4 == 0) cout << "Yes" << endl;
 else cout << "No" << endl;
}

Compiler output:
a.cc:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |  int a, b, c;
      | ^
a.cc:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^