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

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

int main () {
  
  int r g b;
  
  cin >> r >> g >> b >> endl;
  
  if ((100*r + 10*g + b) % 4 == 0){
    
    cout << 'Yes' << endl;
    
  }
  
  else {
    
    cout << 'No' << endl;
    
  }
  
  return 0;
  
}
  
  

Compiler output:
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:18:13: warning: multi-character character constant [-Wmultichar]
   18 |     cout << 'No' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'g'
    6 |   int r g b;
      |         ^
a.cc:8:10: error: 'r' was not declared in this scope
    8 |   cin >> r >> g >> b >> endl;
      |          ^
a.cc:8:15: error: 'g' was not declared in this scope
    8 |   cin >> r >> g >> b >> endl;
      |               ^
a.cc:8:20: error: 'b' was not declared in this scope
    8 |   cin >> r >> g >> b >> endl;
      |                    ^
Language: C++

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

int main(){
  
  int r g b ;
  cin >> r >> g >> b >> endl;
  
  if ( r+g+b==0 ) {
    
    cout << 'Yes' << enddl;
    
  }
  
  else {
    
    cout << 'No' << endl;
    
  }
  
  return 0;
  
}

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

#include<stdio.h>
int main()
{
  int r,g,b;
  
  scanf("%d %d %d", &r, &g, &b);
  if ((2*g + b)%4 == 0)
    printf("YES")
  else
    printf("NO")
    
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before 'else'
    8 |     printf("YES")
      |                  ^
      |                  ;
    9 |   else
      |   ~~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:1: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 | ans = g*10+b;
      | ^~~
      | abs
Language: Java

#include <iostream>
using namespace std;

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
Main.java:6: error: not a statement
  cin >> r >> g >> b;
                ^
Main.java:7: error: not a statement
  if ((g * 10 + b) % 4 == 0) cout << "YES" << endl;
                                           ^
Main.java:8: error: not a statement
  else cout << "NO" << endl;
                    ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
6 errors
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected initializer before '==' token
    7 |         int c == g + b;
      |               ^~
a.cc:8:13: error: 'c' was not declared in this scope
    8 |         if (c / 4 == 0) cout << "YES" << endl;
      |             ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(void) {
  int r, g, b; cin >> r >> g >> b;
  
  if (((g&0x3) == 0 && (b&0x3) == 0) || (g&0x3) == 2 && (b&0x3) == 2))) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:70: error: expected primary-expression before ')' token
    8 |   if (((g&0x3) == 0 && (b&0x3) == 0) || (g&0x3) == 2 && (b&0x3) == 2))) {
      |                                                                      ^
Language: C++

#include <iostream>
using namespace std;

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: unable to find numeric literal operator 'operator""g'
    7 |   int A = 100*r + 10g + b;
      |                   ^~~
Language: Java

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

Compiler output:
Main.java:6: error: cannot find symbol
    int r = scanner.nextInt() * 100;
            ^
  symbol:   variable scanner
  location: class Main
Main.java:7: error: cannot find symbol
    int g = scanner.nextInt() * 10;
            ^
  symbol:   variable scanner
  location: class Main
Main.java:8: error: cannot find symbol
    int b = scanner.nextInt();
            ^
  symbol:   variable scanner
  location: class Main
3 errors
Language: C++

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

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'y' was not declared in this scope; did you mean 'yn'?
    7 |         if((10*y+z)%4==0) cout<<"YES"<<endl;
      |                ^
      |                yn
a.cc:7:18: error: 'z' was not declared in this scope
    7 |         if((10*y+z)%4==0) cout<<"YES"<<endl;
      |                  ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int r, g, b;
  std::cin >> r >> g >> b;
  judge = 100 * r + 10 * g + b;
  
  if(judge%4 == 0) std::cout << "Yes" << std::endl;
  else std::cout << "No" << std::endl;
}

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

#include <iostream>
#include <vector>
#include <string>
#include<cmath>


using namespace std;

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

    cout<<((100*r+10*g+b)%4==0)?"YES":"NO"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:43: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |     cout<<((100*r+10*g+b)%4==0)?"YES":"NO"<<endl;
      |                                       ~~~~^~~~~~
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" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before ':' token
    8 |     cout << "YES" << endl:
      |                          ^
      |                          ;
Language: C++

#include<bits/stdc++.h>//万能头文件
using namespace std;
unsigned long long x,y,z;
int main（）
{
    cin>>x>>y>>z;//输入
    if((10*y+z)%4==0) //学过数学的人都知道，判断一个数是否能被4整除只要看最后两位是否能整除4就可以了

    cout<<"YES";//输出(说和没说都一样)
    else
    cout<<"NO";
    return 0;
}

Compiler output:
a.cc:6:17: error: expected '}' before ';' token
    6 |     cin>>x>>y>>z;//输入
      |                 ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:6:14: error: invalid user-defined conversion from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' [-fpermissive]
    6 |     cin>>x>>y>>z;//输入
      |     ~~~~~~~~~^~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  121 |       explicit operator bool() const
      |                ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note:   return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:7:5: error: expected unqualified-id before 'if'
    7 |     if((10*y+z)%4==0) //学过数学的人都知道，判断一个数是否能被4整除只要看最后两位是否能整除4就可以了
      |     ^~
a.cc:10:5: error: expected unqualified-id before 'else'
   10 |     else
      |     ^~~~
a.cc:12:5: error: expected unqualified-id before 'return'
   12 |     return 0;
      |     ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C

#include <stdio.h>

int main()
{
	int a, b, c;
	int sum;

	// スペース区切りの整数の入力
	scanf("%d %d %d", &a, &b, &c);

	// 整数に
	sum = a * 100 + b * 10 + c;

	// 4で割り切れる？
	if (sum % 4 == 0)
	{
		printf("YES");
	}
	else
	{
		printf("NO");
	}

	return 0
}

Compiler output:
main.c: In function 'main':
main.c:24:17: error: expected ';' before '}' token
   24 |         return 0
      |                 ^
      |                 ;
   25 | }
      | ~
Language: Java

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

Compiler output:
Main.java:7: error: cannot find symbol
        a = cin.nextInt();
        ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
        b = cin.nextInt();
        ^
  symbol:   variable b
  location: class Main
Main.java:9: error: cannot find symbol
        c = cin.nextInt();
        ^
  symbol:   variable c
  location: class Main
Main.java:10: error: cannot find symbol
        if((b * 10 + c ) % 4 == 0) System.out.println("Yes");
            ^
  symbol:   variable b
  location: class Main
Main.java:10: error: cannot find symbol
        if((b * 10 + c ) % 4 == 0) System.out.println("Yes");
                     ^
  symbol:   variable c
  location: class Main
5 errors
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();
    		r = r*100;
			g = g*10;
    		if((r+g+b)%4 == 0){
              System.out.println("YES");
            }else{
              System.out.println("NO");
            }
  }
} 


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

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

Compiler output:
Main.java:3: error: <identifier> expected
  public static void(String[] args){
                    ^
1 error
Language: C++

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


Compiler output:
a.cc:6:19: warning: missing terminating " character
    6 |   ans=r*100+g*10+b";
      |                   ^
a.cc:6:19: error: missing terminating " character
    6 |   ans=r*100+g*10+b";
      |                   ^~
a.cc: In function 'int main()':
a.cc:6:19: error: expected ';' before 'cout'
    6 |   ans=r*100+g*10+b";
      |                   ^
      |                   ;
    7 |   cout<<(ans%4==0?"YES":"NO");
      |   ~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int r,g,b,i;
  cin >> r >> g >> b;
  i = r*100 + g*10 + b;
  if(i % 4 = 0){
    cout << "Yes" << endl;
  }else{
    cout <<"No" << endl;
  }
  return 0;
}


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

#include <iostream>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: 'evdl' was not declared in this scope
    8 |         if (s%4==0) cout<<"YES"<<evdl;
      |                                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: 'evd1' was not declared in this scope
    8 |         if (s%4==0) cout<<"YES"<<evd1;
      |                                  ^~~~
a.cc:9:26: error: 'end1' was not declared in this scope
    9 |         else cout<<"NO"<<end1;
      |                          ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'c' was not declared in this scope
    8 |         if (c%4==0) cout<<"YES"<<evd1;
      |             ^
a.cc:8:34: error: 'evd1' was not declared in this scope
    8 |         if (c%4==0) cout<<"YES"<<evd1;
      |                                  ^~~~
a.cc:9:26: error: 'end1' was not declared in this scope
    9 |         else cout<<"NO"<<end1;
      |                          ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int R, G, B;
    cin >> R >> G >> B;
    
    int gb_Sum = 10*G + B;
    
    if(ggb_Sum%4) cout << "NO" << endl;
    else cout << "YES" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'ggb_Sum' was not declared in this scope; did you mean 'gb_Sum'?
   10 |     if(ggb_Sum%4) cout << "NO" << endl;
      |        ^~~~~~~
      |        gb_Sum
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before '%' token
    7 |   if (r*100+g*10+b) % 4 == 0) cout << "YES" << end1;
      |                     ^
a.cc:8:24: error: 'end1' was not declared in this scope
    8 |   else cout << "NO" << end1;
      |                        ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
    8 |   if (c % 4 == 0) cout << "YES" << end1;
      |   ^~
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else cout << "NO" << end1;
      |   ^~~~
a.cc:9:24: error: 'end1' was not declared in this scope
    9 |   else cout << "NO" << end1;
      |                        ^~~~
Language: C++

//C
#include <cassert>
//#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdalign>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>

//ここまで標準include

using namespace std;

long aCb(long a, long b) {
	long out = 1;
	for (long i = 1; i <= b; i++) {
		out = out * (a + 1 - i) / i;
	}
	return out;
}

long long gcd(long long a, long long b) {
	long long r = -1;
	if (a < b) {
		swap(a, b);
	}
	while (r != 0) {
		r = a % b;
		if (r == 0) {
			return b;
		}
		else {
			a = b;
			b = r;
		}
	}
}

long long lcm(long long a, long long b) {
	return a * b / gcd(a, b);
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:121:33: error: expected ';' before '}' token
  121 |                 cout<<"NO"<<endl
      |                                 ^
      |                                 ;
  122 |         }
      |         ~                        
a.cc: In function 'long long int gcd(long long int, long long int)':
a.cc:107:1: warning: control reaches end of non-void function [-Wreturn-type]
  107 | }
      | ^
Language: Java

import java.util.*;

public class Test3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = 3;
        String[] arr = new String[n];
        String count = "";

        for(int i = 0; i < n; i++) {
            arr[i] = sc.next();
            count += arr[i];
        }
        int result = Integer.parseInt(count);

        if(result % 4 == 0) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}


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

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

int main() {
    string r, g, b;
    cin >> r >> g >> b;
    int num = atoi((r+g+b).c_str());
    if (num % 4 == 0) cout<<"Yes"<<endl;
    else cout << "No"<<endl;
    return 0

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before '}' token
   11 |     return 0
      |             ^
      |             ;
   12 | 
   13 | }
      | ~
Language: C++

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

int main() {
    string r, g, b;
    cin >> r >> g >> b;
    string num = r+g+b;
    if (int(num) % 4 == 0) cout<<"Yes";
    else cout << "No";
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: unable to find string literal operator 'operator""NO' with 'const char [5]', 'long unsigned int' arguments
    7 |   cout<<((10*g+b)%4 == 0 ? "YES:"NO)<<endl;
      |                            ^~~~~~~~
a.cc:7:36: error: expected ':' before ')' token
    7 |   cout<<((10*g+b)%4 == 0 ? "YES:"NO)<<endl;
      |                                    ^
      |                                    :
a.cc:7:36: error: expected primary-expression before ')' token
Language: C++


#include <iostream>

using namespace std;

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

    return 0;
}


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

a, b, c = input().split()
print('YES') if int(a + b + c) % 4 == 0 else print('NO')


Compiler output:
a.cc:2:7: warning: multi-character character constant [-Wmultichar]
    2 | print('YES') if int(a + b + c) % 4 == 0 else print('NO')
      |       ^~~~~
a.cc:2:52: warning: multi-character character constant [-Wmultichar]
    2 | print('YES') if int(a + b + c) % 4 == 0 else print('NO')
      |                                                    ^~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = input().split()
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'g' was not declared in this scope
    6 |         if((10*g+b)%4 == 0) cout << "YES" << endl;
      |                ^
a.cc:6:18: error: 'b' was not declared in this scope
    6 |         if((10*g+b)%4 == 0) cout << "YES" << endl;
      |                  ^
Language: C++

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

int main(){
    solve();ac
}

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

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

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
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();
		
		if((A*100+B*10+C)%4 == 0){
			System.out.println("YES");
		} else{
			System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:11: error: cannot find symbol
		if((A*100+B*10+C)%4 == 0){
		    ^
  symbol:   variable A
  location: class Main
Main.java:11: error: cannot find symbol
		if((A*100+B*10+C)%4 == 0){
		          ^
  symbol:   variable B
  location: class Main
Main.java:11: error: cannot find symbol
		if((A*100+B*10+C)%4 == 0){
		               ^
  symbol:   variable C
  location: class Main
3 errors
Language: C++

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

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

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

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

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:7:35: error: expected ';' before ')' token
    7 |         sum = 100 * r + 10 * g + b);
      |                                   ^
      |                                   ;
main.c:7:35: error: expected statement before ')' token
Language: Java

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


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public static Main{
              ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String[] args){
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:15: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

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


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
public static Main{
              ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String[] args){
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:16: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before ':' token
    9 | cout<<"YES"<<endl:
      |                  ^
      |                  ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before ':' token
    8 | cout<<"YES"<<endl:
      |                  ^
      |                  ;
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'rgb' was not declared in this scope
    7 |   if(rgb %4 = 0){
      |      ^~~
Language: Java

import java.util.Scanner;

public class ABC064A {
	public static void main(String[] args) {
		ABC064A main = new ABC064A();
		main.run();
	}

	int r;
	int g;
	int b;
	public void run() {
		Scanner sc = new Scanner(System.in);
		r = sc.nextInt();
		g = sc.nextInt();
		b = sc.nextInt();
		int ans = r*100 + g*10 + b;
		if(ans % 4 == 0)System.out.println("YES");
		else System.out.println("NO");
		sc.close();
	}
}


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

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

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

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'a' was not declared in this scope
    5 |   std::cin >> a >> b >> c;
      |               ^
a.cc:5:25: error: 'c' was not declared in this scope
    5 |   std::cin >> a >> b >> c;
      |                         ^
Language: Java

import java.util.*;

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 total = (100*r ) +(10 * g) + b
if(total % 4 == 0){
System.out.println("YES"):
}else{
System.out.println("NO");
}

}
}

Compiler output:
Main.java:10: error: ';' expected
int total = (100*r ) +(10 * g) + b
                                  ^
Main.java:12: error: ';' expected
System.out.println("YES"):
                         ^
2 errors
Language: C++

include<iostream>
using namespace std;

int main(void){
	
	int r,g,b;
	
	cin>>r>>g>>b;
	
	int sum=100*r+10*g+b;

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin>>r>>g>>b;
      |         ^~~
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout<<"YES"<<endl;
      |                 ^~~~
a.cc:13:30: error: 'endl' was not declared in this scope
   13 |                 cout<<"YES"<<endl;
      |                              ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout<<"NO"<<endl;
      |                 ^~~~
a.cc:16:29: error: 'endl' was not declared in this scope
   16 |                 cout<<"NO"<<endl;
      |                             ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'if'
    7 |   x=100*r+10*g+b
      |                 ^
      |                 ;
    8 |   if(x%4==0){
      |   ~~             
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{
      |   ^~~~
Language: C++

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


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

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

#include<iostream>

using namespace std;

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


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

#include<iostream>
#define size(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
int main(void){
    int a,b,c,d;
    cin >> a >> b >> c;
    d = a * 100 + b * 10 + c;
    if(d % 4 == 0){
        cout << "YES";
    }else{
        cout << "NO"
    }
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
    int  a, b ,c;
    char X,Y;
    string S1,S2;
    cin >>a >> b >> c;
    if((100*a+10*b+c)%2 == 0 && ((100*a+10*b+c)/2)%2 == 0)) cout << "YES" << endl;
    else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:59: error: expected primary-expression before ')' token
    8 |     if((100*a+10*b+c)%2 == 0 && ((100*a+10*b+c)/2)%2 == 0)) cout << "YES" << endl;
      |                                                           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int  a, b ,c;
    char X,Y;
    string S1,S2;
    cin >>a >> b >> c;
    if((100*a+10*b+c)%2 == 0 && ((100*a+10*b+c)/2)% == 0) cout << "YES" << endl;
    else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:53: error: expected primary-expression before '==' token
    8 |     if((100*a+10*b+c)%2 == 0 && ((100*a+10*b+c)/2)% == 0) cout << "YES" << endl;
      |                                                     ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: lvalue required as left operand of assignment
   11 |   if ( A % 4 = 0 ) {
      |        ~~^~~
a.cc:15:14: error: lvalue required as left operand of assignment
   15 |     if (!( A % 4 = 0 )) {
      |            ~~^~~
Language: C++

def solve():
    r, g, b = list(map(int, input().split()))
    value = r*100 + g*10 + b
    if value % 4 == 0:
        print("YES")
    else:
        print("NO")

solve()

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def solve():
      | ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
    int r, g, b;
    cin >> r >> g >> b ;
    int a = g*10 + b
    if (a % 2 == 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 (a % 2 == 0) cout << "Yes" << endl;
      |     ^~
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else cout << "No" << endl;
      |     ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <iomanip>
#include <cstring>
#define rep(i, N) for (int i = 0; i < (int)N; i++)
using namespace std;
typedef long long ll;
const ll LLINF = 9223372036854775807;
const int MOD = 1000000007;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: lvalue required as left operand of assignment
   16 |   if ((g*10+b)%4=0) result = "YES";
      |       ~~~~~~~~^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected '}' at end of input
   10 |     else cout << "NO";
      |                       ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: Java

import java.util.Scanner;

public class abc064a {
	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 num = 100*r + 10*g + b;
			if (num%4==0){
				System.out.println("Yes");
			} else{
				System.out.println("No");
			}
		}

	}



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

public class abc064a {
	public static void main(String[] args){
		//1<=r,g,b<=9
		int r = new java.util.Scanner(System.in).nextInt();
		int g = new java.util.Scanner(System.in).nextInt();
		int b = new java.util.Scanner(System.in).nextInt();
		if (r<1 || r>9 || b<1 || b>9 || g<1 || g>9){
			System.out.println("入力可能な数字は1~9です");
		} else {
			int num = 100*r + 10*g + b;
			if (num%4==0){
				System.out.println("Yes");
			} else{
				System.out.println("No");
			}
		}

	}
}


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

package problems;

public class abc064a {
	public static void main(String[] args){
		//1<=r,g,b<=9
		int r = new java.util.Scanner(System.in).nextInt();
		int g = new java.util.Scanner(System.in).nextInt();
		int b = new java.util.Scanner(System.in).nextInt();
		if (r<1 || r>9 || b<1 || b>9 || g<1 || g>9){
			System.out.println("入力可能な数字は1~9です");
		} else {
			int num = 100*r + 10*g + b;
			if (num%4==0){
				System.out.println("Yes");
			} else{
				System.out.println("No");
			}
		}

	}
}


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

#include <iostream>

int main() {
  int a,b,c,tmp;
  std::cin >> a >> b >> c;
  tmp=b*2+c
  std::cout << ((tmp%4==0) ? "Yes" : "No") << '\n';
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 'std'
    6 |   tmp=b*2+c
      |            ^
      |            ;
    7 |   std::cout << ((tmp%4==0) ? "Yes" : "No") << '\n';
      |   ~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String r = sc.nextInt();
        String g = sc.nextInt();
        String b = sc.nextInt();

        int number = Integer.parseInt(r + g + b);

        if (number % 4 == 0) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }

	}
}

Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
        String r = sc.nextInt();
                             ^
Main.java:6: error: incompatible types: int cannot be converted to String
        String g = sc.nextInt();
                             ^
Main.java:7: error: incompatible types: int cannot be converted to String
        String b = sc.nextInt();
                             ^
3 errors
Language: C++

#include <iostream>
#include <vector>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: 'rmp' was not declared in this scope; did you mean 'tmp'?
   11 |   if(rmp % 4 == 0) cout << "YES";
      |      ^~~
      |      tmp
Language: C++

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

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

Compiler output:
a.cc: In function 'int q(int)':
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int main() {
  int a;
  int b;
  int c;
  cin >> a >> b >> c;
  if ((10 * b + c - 1) / 4 != (10 * b + c) / 4) {
    cout << YES << endl;
  }
  else {
    cout << NO << endl;
  }  
}

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

#include<iostream>
using namespace std ;

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int r,g,b,num;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> r ;
      |   ^~~
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> g ;
      |   ^~~
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin >> b ;
      |   ^~~
a.cc:10:3: error: 'num' does not name a type; did you mean 'enum'?
   10 |   num = 10*g + b ;
      |   ^~~
      |   enum
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if(num%4==0){
      |   ^~
a.cc:13:4: error: expected unqualified-id before 'else'
   13 |   }else{
      |    ^~~~
a.cc:16:3: error: expected unqualified-id before 'return'
   16 |   return 0 ;
      |   ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<iostream>
using namespace std ;

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int r,g,b,num;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> r ;
      |   ^~~
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> g ;
      |   ^~~
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin >> b ;
      |   ^~~
a.cc:10:3: error: 'num' does not name a type; did you mean 'enum'?
   10 |   num = 10*g + b ;
      |   ^~~
      |   enum
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if(num%4==0){
      |   ^~
a.cc:13:4: error: expected unqualified-id before 'else'
   13 |   }else{
      |    ^~~~
a.cc:16:3: error: expected unqualified-id before 'return'
   16 |   return 0 ;
      |   ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
     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:5:6: error: 'a' was not declared in this scope
    5 |      a,b,c;
      |      ^
a.cc:5:8: error: 'b' was not declared in this scope
    5 |      a,b,c;
      |        ^
a.cc:5:10: error: 'c' was not declared in this scope
    5 |      a,b,c;
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: unable to find numeric literal operator 'operator""g'
    7 |   int a=100*r+10g+b;
      |               ^~~
Language: C++

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

Compiler output:
a.cc:7:3: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
    7 |   int c=100r+10g+b;
      |   ^~~
a.cc: In function 'int main()':
a.cc:7:9: error: fixed-point types not supported in C++
    7 |   int c=100r+10g+b;
      |         ^~~~
a.cc:7:14: error: unable to find numeric literal operator 'operator""g'
    7 |   int c=100r+10g+b;
      |              ^~~
Language: C++

#include <iostream>

using namespace std;

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


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before 'return'
    9 |         else cout << "NO"
      |                          ^
      |                          ;
......
   12 | return 0;
      | ~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before '==' token
    8 |   int kazu == g * 10 + b;
      |            ^~
a.cc:10:6: error: 'kazu' was not declared in this scope
   10 |   if(kazu % 4 == 0) cout << "YES" << endl;
      |      ^~~~
Language: Java

Ⅴ
import java.util.Scanner;

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 sum = (r * 100) + (g * 10) + (b * 1);


    if (sum % 4 == 0){
    System.out.println("YES");
    }
    else {
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
?
^
1 error