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

    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    
    int main(void){
		int ai[100];
		int N,i,max,min;
		scanf("&d",&N);
		
		for(i = 0;i < N; i++) scanf("&d",&ai[i]);
		max = ai[0];
		min = ai[0];
		for(i = 0;i < N; i++){
			if(max < ai[i]) max = ai[i];
			if(mix > ai[i]) min = ai[i];
		}
		printf("%d" , max - min);
    }
     

Compiler output:
main.c: In function 'main':
main.c:15:28: error: 'mix' undeclared (first use in this function); did you mean 'min'?
   15 |                         if(mix > ai[i]) min = ai[i];
      |                            ^~~
      |                            min
main.c:15:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>
    
    int main(){
		int ai[100];
		int N,i,max,min;
		scanf("&d",&N);
		
		for(i = 0;i < N; i++) scanf("&d",&ai[i]);
		max = ai[0];
		min = ai[0];
		for(i = 0;i < N; i++){
			if(max < ai[i]) max = ai[i];
			if(mix > ai[i]) min = ai[i];
		}
		printf("%d" , max - min);
    }
     

Compiler output:
main.c: In function 'main':
main.c:15:28: error: 'mix' undeclared (first use in this function); did you mean 'min'?
   15 |                         if(mix > ai[i]) min = ai[i];
      |                            ^~~
      |                            min
main.c:15:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

	int r,g,b,total;

	
	cin >> r >> g >> b;
	r = r *100;
	g = g*10;
	sum = r+g+b;
	
	if (4 % total == 0)
	{
		cout << "YES" << endl;
	}
	else
	{
		cout << "NO" << endl;
	}
	
	system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'sum' was not declared in this scope
   16 |         sum = r+g+b;
      |         ^~~
Language: C++

num = raw_input().split()
a = num[0]
b = num[1] * 10 + num[2]
if (a % 2 == 0 and b % 4 == 0) or (a % 2 == 1 and b % 4 == 2):
    print("YES")
else:
    print("NO")

Compiler output:
a.cc:1:1: error: 'num' does not name a type; did you mean 'enum'?
    1 | num = raw_input().split()
      | ^~~
      | enum
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"<<endl;
else cout<<"NO"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: lvalue required as left operand of assignment
    7 | if((r*100+g*10+b)%4=0)cout<<"YES"<<endl;
      |    ~~~~~~~~~~~~~~^~
Language: C

#include <stdio.h>

int main(){
    int i,N,max,min,ans;
    int a;

    max = 0;
    min = 1000;
    ans = 0;
  
    scanf( "%d", &N );
    
    for( i = 0; i < N; i++){
        scanf( "%d", &a );
    
        if( a > max){
            max =;
        }
        if( a < min ){
            min = a;
        }
    }
    
    
    ans = max - min;
    
    printf("%d\n",ans);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:18: error: expected expression before ';' token
   17 |             max =;
      |                  ^
Language: Java

import java.util.*;
public class RGBCards {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int a = sc.nextInt();
        // スペース区切りの整数の入力
        int b = sc.nextInt();
        int c = sc.nextInt();

        if(((a*100+b*10+c) % 4) == 0){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
}


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

#include<iostream>

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

  int sum;
  sum = 100*r+10*g+b;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> 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:10:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   if(sum%4 == 0) cout << "YES" << endl;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   if(sum%4 == 0) cout << "YES" << endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   else cout << "NO" << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   else cout << "NO" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

public class Main {
    public static void main(String[] args) {
        System.out.println(new Main().run(args, System.in));
    }
    public String run(String[] args, InputStream in) {
        String result = null;
        try {
            
            BufferedReader reader = new BufferedReader(new InputStreamReader(in));
            String[] val = reader.readLine().replaceAll("\\s+", " ").split(" ");
            
            int R = Integer.parseInt(val[0]);
            int G = Integer.parseInt(val[1]);
            int B = Integer.parseInt(val[2]);
            
            if (((R*100 + G *10 + B) % 4) == 0) {
                result = "YES";
            } else {
                result = "NO";
            }                       
        } catch (IOException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }
        return result;
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
    public String run(String[] args, InputStream in) {
                                     ^
  symbol:   class InputStream
  location: class Main
Main.java:9: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(in));
            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:9: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(in));
                                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:9: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(in));
                                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:21: error: cannot find symbol
        } catch (IOException ex) {
                 ^
  symbol:   class IOException
  location: class Main
Main.java:22: error: cannot find symbol
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                                                       ^
  symbol:   variable Level
  location: class Main
Main.java:22: error: cannot find symbol
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
            ^
  symbol:   variable Logger
  location: class Main
7 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class main {
	public static void main(String[] args) throws IOException{


		// 読み込み
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String[] temp;

		line=br.readLine();
		temp=line.split(" ");

		String s = temp[0]+temp[1]+temp[2];
		int i = Integer.valueOf(s);

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

	}
}


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

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

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

#include <stdio.h>

int main(void)
{
	int r, g, b, A;
	printf("Rの値\n");
	scanf_s("%d", &r);
	printf("Gの値\n");
	scanf_s("%d", &g);
	printf("Bの値\n");
	scanf_s("%d", &b);

	A = (r * 100 + g * 10 + b) % 4;


	if (A == 0)
	{
		printf("YES\n");
	}
	else
	{
		printf("NO\n");
	}
    return 0;
}


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

#include <stdio.h>

int main(void)
{
	int r, g, b;
	scanf_s("%d", &r);
	scanf_s("%d", &g);
	scanf_s("%d", &b);


	if ((r * 100 + g * 10 + b) % 4 == 0)
	{
		printf("YES\n");
	}
	else
	{
		printf("NO\n");
	}
    return 0;
}


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

#include<iostream>
using namespace std;

int main() {
	int r, g, b,sum;

	cin >> r >> g >> b;

	sum = 100 * r + 10 * g + b;

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'count' was not declared in this scope
   14 |                 count << "NO" << endl;
      |                 ^~~~~
Language: C++

# -*- coding: utf-8 -*-

r, g, b = map(int,input().split())

a = g+b

answer = a % 4

if answer == 0:
    print("YES")
else:
    print("NO")

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:3:1: error: 'r' does not name a type
    3 | r, g, b = map(int,input().split())
      | ^
Language: C++

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

#define endl '\n'
#define ff first
#define ss second
#define mp make_pair
#define pb push_back

typedef long long llong;
typedef pair<int, int> pii;

void solve() {

	const int n = 3;

	int res = 0;
	for (int i = 0; i < n; i++) {
		int val; cin >> val;
		res = res * 10 + val;
	}

	bool ans = res % 4 == 0;

	if (ans) << cout << "YES";
	else cout << "NO";
}

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

	#ifdef LOCAL
		ifstream in("in");
		cin.rdbuf(in.rdbuf());
	#endif

	solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:25:18: error: expected primary-expression before '<<' token
   25 |         if (ans) << cout << "YES";
      |                  ^~
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	static int r;
	static int g;
	static int b;
	static int rgb;

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] param = line.split(" ");

		String s = param[0];
		String s2 = param[1];
		String s3 = param[2];
		
		r = 100 * Integer.parseInt(param[0]);
		g = 10 * Integer.parseInt(param[1]);
		b = Integer.parseInt(param[2]);
		rgb = r + g + b;
		
		if( (rgb % 4) == 0){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}


Compiler output:
Main.java:30: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

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

int n;
vector<int> a;

void mainmain(){
    for (int i = 0;i < 3; i++){
        int n;
        cin >> n;
        a.push_back(n);
    }

    string str = to_string(a[1]) + to_string(a[2]);
    int b = stoi(str);
    if (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 <iostream>
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;
if(sum%4!=0)cout<<NO;
return 0;
}

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

#include <iostream>

using namespace std;

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

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


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

#include <stdio.h>
int main(void){
    // Here your code !
    int a,b,c,ans;
    scanf("%d %d %d",&a,&b,&c);
    ans=100*a+10*b+c;
    if(ans%4==0){
        printf("YES");
    }else{
        printf("NO")
    }
}


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Test {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		s = s.replaceAll(" ", "");
		int i = Integer.parseInt(s);
		String opt;
		if(i%4 == 0) opt = "YES";
		else opt = "NO";
		System.out.println(opt);
	}

}


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


int main(){
	
	int N;
	std::cin >> N;

	int a[100];

	for (int i = 0; i < N; ++i) {
		std::cin >> a[i];
	}
	
	int col[13]{};
	
	for (int i = 0; i < N; ++i) {
		col[(a[i] / 400)] += 1;
	}

	int colcount = 0;
	for (int i = 0; i < 8; ++i) {
		colcount += (col[i] ? 1 : 0);
	}
	int colfree = 0;
	for (int i = 8; i < 13; ++i) {
		colfree += col[i];
	}

	int min = colcount;
	int max = colcount + colfree;

	if (min == 0) {
		min = 1;
	}

	std::cout << min << ' ' << max << std::endl;

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' is not a member of 'std'
    5 |         std::cin >> N;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:10:22: error: 'cin' is not a member of 'std'
   10 |                 std::cin >> a[i];
      |                      ^~~
a.cc:10:22: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:14: error: 'cout' is not a member of 'std'
   35 |         std::cout << min << ' ' << max << std::endl;
      |              ^~~~
a.cc:35:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:35:48: error: 'endl' is not a member of 'std'
   35 |         std::cout << min << ' ' << max << std::endl;
      |                                                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: Java

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

      int n = sc.nextInt();
      int a[] = new int[n];
      
      Arrays.sort(a[]);
 
      System.out.println(a[n-1] - a[0]);
  }
}

Compiler output:
Main.java:10: error: '.class' expected
      Arrays.sort(a[]);
                     ^
1 error
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    int no,i,left=0,right=0;
    scanf("%d",&no);
    getchar();
    char s[200];
    gets(s);
    for(i=0;i<no;i++){
        if(s[i]=='(') left++;
        if(s[i]==')'){
            if(left==0) right++;
            else left--;
        }
    }
    for(i=0;i<right;i++) printf("(");
    printf("%s",s);
    for(i=0;i<left;i++) printf(")");
    printf("\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Here your code !
    int a,b,c;
    cin >> a >> b >> c;
    cout << (!((a*100+b*10+c)%4))?"YES":"NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:46: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout << (!((a*100+b*10+c)%4))?"YES":"NO" << endl;
      |                                         ~~~~~^~~~~~~
Language: C++

#include <iostream>

int main(int argc, char const *argv[]) {
	int r,g,b
	std::cin >> r >> g >> b;
	r = 100 * r + 10 * g + b;
	r %= 4;
	if (r == 0) {
		std::cout << "YES" << '\n';
	}
	else{
		std::cout << "NO" << '\n';
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:5:9: error: expected initializer before 'std'
    5 |         std::cin >> r >> g >> b;
      |         ^~~
a.cc:6:32: error: 'b' was not declared in this scope
    6 |         r = 100 * r + 10 * g + b;
      |                                ^
Language: C++

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

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

  int num = r*100 + g*10 + b;
  printf("%s\n", num%4==0?"YES":"NO");

  return 0;
}


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

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

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

  int num = r*100 + g*10 + b;
  printf("%s\n", num%4==0?"YES":"NO");
  
  return 0;
}


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

import java.util.Scanner;

public class MainA {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int r;
		int g;
		int b;
		while(true) {
			r = sc.nextInt();
			g = sc.nextInt();
			b = sc.nextInt();
			if(r > 0 && r < 10 && g > 0 && g < 10 && b > 0 && b < 10) {
				break;
			}
		}
		String R = String.valueOf(r);
		String G = String.valueOf(g);
		String B = String.valueOf(b);
		String rgb = R + G + B;
		int changeRGB = Integer.parseInt(rgb);
		if(changeRGB % 4 == 0) {
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}
}


Compiler output:
Main.java:3: error: class MainA is public, should be declared in a file named MainA.java
public class MainA {
       ^
1 error
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;
return 0; }

Compiler output:
a.cc:7:36: warning: missing terminating " character
    7 | cout << ((10*g+b)%4 == 0 ? "YES" : "NO) << endl;
      |                                    ^
a.cc:7:36: error: missing terminating " character
    7 | cout << ((10*g+b)%4 == 0 ? "YES" : "NO) << endl;
      |                                    ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before 'return'
    8 | return 0; }
      | ^~~~~~
a.cc:7:35: error: expected ')' before 'return'
    7 | cout << ((10*g+b)%4 == 0 ? "YES" : "NO) << endl;
      |         ~                         ^
      |                                   )
    8 | return 0; }
      | ~~~~~~
Language: Java

import java.util.Scanner;

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

        char r = a.next().charAt(0);
        char g = a.next().charAt(0);
        char b = a.next().charAt(0);

        String l =""+ r + g+ b ;
        int w = Integer.valueOf(l);
        if (w % 4 == 0 ){
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        }
    }
}


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

import java.util.Scanner;

/**
 * Created by Irka on 10.06.2017.
 */
public class a {
    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);

        char r = a.next().charAt(0);
        char g = a.next().charAt(0);
        char b = a.next().charAt(0);

        String l =""+ r + g+ b ;
        int w = Integer.valueOf(l);
        if (w % 4 == 0 ){
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        }
    }
}


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

import java.util.Scanner;

/**
 * Created by Irka on 10.06.2017.
 */
public class A {
    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);

        char r = a.next().charAt(0);
        char g = a.next().charAt(0);
        char b = a.next().charAt(0);

        String l =""+ r + g+ b ;
        int w = Integer.valueOf(l);
        if (w % 4 == 0 ){
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        }
    }
}


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

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>r>>g>>b;
      |     ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout<<"YES"<<endl;
      |         ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |         cout<<"YES"<<endl;
      |                      ^~~~
a.cc:9:11: error: 'cout' was not declared in this scope
    9 |     }else cout<<"NO"<<endl;
      |           ^~~~
a.cc:9:23: error: 'endl' was not declared in this scope
    9 |     }else cout<<"NO"<<endl;
      |                       ^~~~
Language: C++

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

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

Compiler output:
a.cc:7:26: warning: missing terminating " character
    7 |  if((a+b+c)%4==0) printf("YES\n);
      |                          ^
a.cc:7:26: error: missing terminating " character
    7 |  if((a+b+c)%4==0) printf("YES\n);
      |                          ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:2: error: expected primary-expression before 'else'
    8 |  else printf("NO\n");
      |  ^~~~
Language: C++

#include <stdio.h>
#include <stdlib.h>
 
int main(void){
 
  char str[3];
 
  int i;
  scanf("%c %c %c",&str[0],&str[1],&str[2]);
  srt[3] = "\0";
 
  if(atoi(str)%4 == 0){
    printf("YES");
  }else{
    printf("NO");
  }
 
  return 0;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'srt' was not declared in this scope; did you mean 'str'?
   10 |   srt[3] = "\0";
      |   ^~~
      |   str
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main(void){
 
  char str[3];
 
  int i;
  scanf("%c %c %c",&str[0],&str[1],&str[2]);
 
  if(atoi(str)%4 == 0){
    printf("YES");
  }else{
    printf("NO");
  }
 
  return 0;
 


Compiler output:
main.c: In function 'main':
main.c:17:3: error: expected declaration or statement at end of input
   17 |   return 0;
      |   ^~~~~~
Language: Java

public class Main {
	public static void solveRGBCards() throws IOException {
		int r;
		int g;
		int b;
		String line;
		String[] split;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		line = br.readLine();
		split = line.split(" ");
		r = Integer.parseInt(split[0]);
		g = Integer.parseInt(split[1]);
		b = Integer.parseInt(split[2]);
		if ((g * 10 + b) % 4 == 0) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}

		br.close();
	}

	public static void main(String[] args) {
		try {
			solveRGBCards();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void solveRGBCards() throws IOException {
	                                          ^
  symbol:   class IOException
  location: class Main
Main.java:8: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:26: error: cannot find symbol
		} catch (IOException e) {
		         ^
  symbol:   class IOException
  location: class Main
5 errors
Language: C++

def main():

    s = raw_input().split(" ")
    s = int(s[0]*100) + int(s[1]*10) + int(s[2])

    if s%4==0:
        print("YES")
    else:
        print("NO")

if __name__ == "__main__":
    main()


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

a = map(int, raw_input().split())
d = a[0] * 100 + a[1] * 10 * a[2]
if d % 4 == 0:
	print "YES"
else:
	print "NO"

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = map(int, raw_input().split())
      | ^
Language: Java

public class A {
	public static int main(String[] args) {
		int number = Integer.parseInt(args[0])*100 + Integer.parseInt(args[1])*10 + Integer.parseInt(args[2]);
		
		if((number % 4) == 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("NO");
		}
		return 0;
	}
}

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

public static void main(String[] args) {
		
		int r = Integer.parseInt(args[0])*100;
		int g = Integer.parseInt(args[1])*10;
		int b = Integer.parseInt(args[2]);
		
		int number = r + g + b;
		
		if((number % 4) == 0){
			System.out.println("Yes");
		}
		System.out.println("NO");
	}


Compiler output:
Main.java:1: 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)
1 error
Language: Java

public class A {

	public static void main(String[] args) {
		
		int r = Integer.parseInt(args[0])*100;
		int g = Integer.parseInt(args[1])*10;
		int b = Integer.parseInt(args[2]);
		
		int number = r + g + b;
		
		if((number % 4) == 0){
			System.out.println("Yes");
		}
		System.out.println("NO");
	}
}


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

    #include<stdio.h>
    #include<bits/stdc++.h>
    using namespace std;
     
    int main()
    {
 
     scanf("%d %d %d",&r,&g,&b);
     int a=(10*g)+b;
     if(a%4==0)
      printf("YES\n");
     else printf("NO\n");
     return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'r' was not declared in this scope
    8 |      scanf("%d %d %d",&r,&g,&b);
      |                        ^
a.cc:8:27: error: 'g' was not declared in this scope
    8 |      scanf("%d %d %d",&r,&g,&b);
      |                           ^
a.cc:8:30: error: 'b' was not declared in this scope
    8 |      scanf("%d %d %d",&r,&g,&b);
      |                              ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'r' was not declared in this scope
    7 |  scanf("%d %d %d",&r,&g,&b);
      |                    ^
a.cc:7:23: error: 'g' was not declared in this scope
    7 |  scanf("%d %d %d",&r,&g,&b);
      |                       ^
a.cc:7:26: error: 'b' was not declared in this scope
    7 |  scanf("%d %d %d",&r,&g,&b);
      |                          ^
Language: C++

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

int main()
{
	int r;
	int g;
	int b; 

	cin >> r;
	cin >> g;
	cin >> b;

	while ((g*10+b*1)%== 0) {
		cout << "YES" << endl;  
	} 
	while ((g * 10 + b * 1) %!=0) {
		cout << "NO" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:28: error: expected primary-expression before '=' token
   15 |         while ((g*10+b*1)%== 0) {
      |                            ^
a.cc:18:34: error: expected primary-expression before '!=' token
   18 |         while ((g * 10 + b * 1) %!=0) {
      |                                  ^~
Language: C++

#include<bits/stdc++.h>
#include<unordered_map>
/*
*▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
*    ▀▀       ▀▀▀▀▀▀    ▀     ▀▀▀▀▀▀      ▀    ▀
*   ▀  ▀      ▀         ▀     ▀            ▀  ▀
*  ▀    ▀     ▀ ▀ ▀     ▀     ▀ ▀ ▀         ▀
* ▀ ▀▀▀▀ ▀    ▀         ▀     ▀             ▀
*▀        ▀   ▀         ▀     ▀             ▀
*▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
*/
using namespace std;
void afify()
{
	ios::sync_with_stdio(0);
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
}
#define ll long long
#define ld long double
#define mk make_pair
#define loop(i,intial,n)  for(int i=int(intial);i<n;i++)
#define loopn(j,n) for(int j=int(n-1);j>=0;j--)
#define min3(a,b,c) min(a,min(b,c))
#define max3(a,b,c) max(a,max(b,c))
#define all(v) v.begin(),v.end()
///////////////////////////////////////
#define SCD(a) scanf("%d",&a)
#define SCD2(a,b) scanf("%d %d",&a,&b)
#define SCLL(a) scanf("%lld",&a)
#define SCLL2(a,b) scanf("%lld %lld",&a,&b)
#define PRD(a) printf("%d\n",a)
#define PRLL(a) printf("%lld\n",a)
///////////////////////////////////////
typedef vector <int> vi;
typedef vector <ll> vll;
typedef vector <vi> vvi;
typedef vector <vll> vvll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vpii;
typedef vector<pll> vpll;
typedef vector<vpll> vvpll;
typedef vector<vpii> vvpii;
typedef stringstream ss;
const ll oo = (ll) 10e9 + 7;
const double EPS = 1e-4;
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
//ifstream ifs("input.txt");
//ofstream ofs("output.txt");
int main()
{
	afify();
	int n;
	cin >> n;
	ll g = 0, b = 0, gn = 0, c = 0, b1 = 0, y = 0, o = 0, r = 0, dif = 0;
	loop(i, 0, n) {
		ll x;
		cin >> x;
		if (x >= 1 && x <= 399) {
			g = 1;
		}
		else if (x >= 400 && x <= 799) {
			b = 1;
		}
		else if (x >= 800 && x <= 1199) {
			gn = 1;
		}
		else if (x >= 1200 && x <= 1599) {
			c = 1;
		}
		else if (x >= 1600 && x <= 1999) {
			b1 = 1;
		}
		else if (x >= 2000 && x <= 2399) {
			y = 1;
		}
		else if (x >= 2400 && x <= 2799) {
			o = 1;
		}
		else if (x >= 2800 && x <= 3199) {
			r = 1;
		}
		else if (x > 3199) {
			dif++;
		}
	}
	ll z = g + b + gn + c + b1 + y + o + r;
	cout << max(z,ll(1)) << " " << z + dif;


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: expected primary-expression before 'long'
   20 | #define ll long long
      |            ^~~~
a.cc:91:23: note: in expansion of macro 'll'
   91 |         cout << max(z,ll(1)) << " " << z + dif;
      |                       ^~
Language: C++

#include <bits/stdc++.h>  
using namespace std;  
#define INF 0x3f3f3f3f  
typedef long long ll;  
const int N = 310;  
#define FI first
#define SE second
typedef pair<int, int>pii;

char num[N];
bool vis[N];
int main()  
 
   int n;
   while (~scanf("%d%s", &n, num))
   {
        memset(vis, 0, sizeof(vis));
        string pre = "";
        string end = "";
        for (int i = 0; i < n; i++) if (!vis[i])
        {
            int cur = i;
            if (num[i] == ')')
            {

               for (int j = i - 1; j >= 0; j--)
                if (num[j] == '(' && !vis[j])
                {
                    cur = j;
                    vis[j] = true;
                    break;
                }
               if (cur == i)
                pre = "(" + pre;

            }else if (num[i] == '(')
            {
                for (int j = i + 1; j < n; j++)
                    if (num[j] == ')' && !vis[j])
                    {
                        cur = j;
                        vis[j] = true;
                        break;
                    }
                if (cur == i)
                    end += ")";
            }
             vis[i] = true;
        }
        printf("%s%s%s\n", pre.c_str(), num, end.c_str());
   }
   return 0;  

}  

Compiler output:
a.cc:14:4: error: expected initializer before 'int'
   14 |    int n;
      |    ^~~
a.cc:15:4: error: expected unqualified-id before 'while'
   15 |    while (~scanf("%d%s", &n, num))
      |    ^~~~~
a.cc:52:4: error: expected unqualified-id before 'return'
   52 |    return 0;
      |    ^~~~~~
a.cc:54:1: error: expected declaration before '}' token
   54 | }
      | ^
Language: C++

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

using namespace std;

int main(void){

    int num[3];
    cin >> num[2] >> num[1] >> num[0];

    int sum = 0;
   
    for(int i = 2; i >= 0;i--;){
        sum += num[i] * pow(10,i);
    }
   
    if(sum % 4 == 0){
        cout << "YES" << endl;
    }else{
        cout << "NO" << endl;
    }
   
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: expected ')' before ';' token
   13 |     for(int i = 2; i >= 0;i--;){
      |        ~                     ^
      |                              )
a.cc:13:31: error: expected primary-expression before ')' token
   13 |     for(int i = 2; i >= 0;i--;){
      |                               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> a >> b >> c;
      |         ^~~
a.cc:4:9: error: 'cout' was not declared in this scope
    4 |         cout << (((a * 100 + b * 10 + c) % 4 == 0) ? "YES" : "NO" )<< endl;
      |         ^~~~
a.cc:4:71: error: 'endl' was not declared in this scope
    4 |         cout << (((a * 100 + b * 10 + c) % 4 == 0) ? "YES" : "NO" )<< endl;
      |                                                                       ^~~~
Language: C++

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


Compiler output:
a.cc:13:5: error: redefinition of 'int r'
   13 | int r,g,b,ans;
      |     ^
a.cc:3:5: note: 'int r' previously declared here
    3 | int r,g,b,ans;
      |     ^
a.cc:13:7: error: redefinition of 'int g'
   13 | int r,g,b,ans;
      |       ^
a.cc:3:7: note: 'int g' previously declared here
    3 | int r,g,b,ans;
      |       ^
a.cc:13:9: error: redefinition of 'int b'
   13 | int r,g,b,ans;
      |         ^
a.cc:3:9: note: 'int b' previously declared here
    3 | int r,g,b,ans;
      |         ^
a.cc:13:11: error: redefinition of 'int ans'
   13 | int r,g,b,ans;
      |           ^~~
a.cc:3:11: note: 'int ans' previously declared here
    3 | int r,g,b,ans;
      |           ^~~
a.cc:14:5: error: redefinition of 'int main()'
   14 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: C++

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		String[] ss0 = br.readLine().trim().split(" ", 0);
		int r = Integer.parseInt(ss0[0]);
		int g = Integer.parseInt(ss0[1]);
		int b = Integer.parseInt(ss0[2]);
		int i = 0;
		
		i = r*100 + g*10 + b;
		
		if(i % 4 == 0){
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}



	return;
	}



}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.List;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.ArrayList;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.Arrays;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: expected unqualified-id before 'public'
    7 | public class Main {
      | ^~~~~~
Language: C++

{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE BangPatterns #-}

import Control.Applicative
import Control.Monad
import Control.Arrow
import Data.List
import Data.Maybe
import Data.Char
import qualified Data.ByteString.Char8 as B
import Text.Printf

readInt = ( readLn :: IO Int )
readInts = map ( read :: String -> Int ) . words <$> getLine

getList = map ( fst . fromJust . B.readInt ) . B.words <$> B.getLine

which a b f = if f then a else b
mp [ a, b ] = ( a, b )

main = getLine >>= putStrLn . which "YES" "NO" . ( == 0 ) . ( `mod` 4 ) . read . concat . words


Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | {-# LANGUAGE ScopedTypeVariables #-}
      |   ^
a.cc:1:34: error: stray '#' in program
    1 | {-# LANGUAGE ScopedTypeVariables #-}
      |                                  ^
a.cc:2:3: error: stray '#' in program
    2 | {-# LANGUAGE BangPatterns #-}
      |   ^
a.cc:2:27: error: stray '#' in program
    2 | {-# LANGUAGE BangPatterns #-}
      |                           ^
a.cc:21:63: error: stray '`' in program
   21 | main = getLine >>= putStrLn . which "YES" "NO" . ( == 0 ) . ( `mod` 4 ) . read . concat . words
      |                                                               ^
a.cc:21:67: error: stray '`' in program
   21 | main = getLine >>= putStrLn . which "YES" "NO" . ( == 0 ) . ( `mod` 4 ) . read . concat . words
      |                                                                   ^
a.cc:1:1: error: expected unqualified-id before '{' token
    1 | {-# LANGUAGE ScopedTypeVariables #-}
      | ^
a.cc:2:1: error: expected unqualified-id before '{' token
    2 | {-# LANGUAGE BangPatterns #-}
      | ^
a.cc:4:1: error: 'import' does not name a type
    4 | import Control.Applicative
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class pRGBCards {
	public static void solveRGBCards() throws IOException {
		int r;
		int g;
		int b;
		String line;
		String[] split;
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		line = br.readLine();
		split = line.split(" ");
		r = Integer.parseInt(split[0]);
		g = Integer.parseInt(split[1]);
		b = Integer.parseInt(split[2]);
		if ((g * 10 + b) % 4 == 0) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}

		br.close();
	}

	public static void main(String[] args) {
		try {
			solveRGBCards();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}


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

#include<stdio.h>

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

	return 0;
	}

Compiler output:
main.c: In function 'main':
main.c:7:31: error: expected ';' before 'if'
    7 |         num = 100*r + 10*g + b
      |                               ^
      |                               ;
    8 |         if(num % 4 == 0)        printf("YES");
      |         ~~                     
main.c:9:9: error: 'else' without a previous 'if'
    9 |         else    printf("NO");
      |         ^~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>

using namespace std;

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

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

#include <bits/stdc++.h>

using namespace std;
int a[10];
int main()
{
	int a,b,c;
	int sum=0;
	for(int i=0;i<3;i++)
	{
		scanf("%d",&a[i]);
		sum=sum*10+a[i];
	}
	if(sum%4==0)
	printf("YES\n");
	else
	printf("NO\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: invalid types 'int[int]' for array subscript
   11 |                 scanf("%d",&a[i]);
      |                              ^
a.cc:12:29: error: invalid types 'int[int]' for array subscript
   12 |                 sum=sum*10+a[i];
      |                             ^
Language: C++

#include <bits/stdc++.h>
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define SORTR(v,n) sort(v, v+n, greater<int>());
// #define int long long    // %d=>%lld
#define pb push_back
#define INF 100000000
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<int, pii> piii;
typedef pair<ll, pll> plll;

int r;
int g;
int b;




signed main(){
    scanf("%d", &r);
    scanf("%d", &g);
    scanf("%d", &b);


    if((g*10+b)%4 == 0){
        printf("YES\n");
    }else{
        printf("NO\n")
    }


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:23: error: expected ';' before '}' token
   32 |         printf("NO\n")
      |                       ^
      |                       ;
   33 |     }
      |     ~
Language: C

#include<stdio.h>

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

	return 0;
	}

Compiler output:
main.c: In function 'main':
main.c:7:31: error: expected ';' before 'if'
    7 |         num = 100*r + 10*g + b
      |                               ^
      |                               ;
    8 |         if(num % 4 == 0)        printf("YES");
      |         ~~                     
main.c:9:9: error: 'else' without a previous 'if'
    9 |         else    printf("NO");
      |         ^~~~
Language: C++

#include<bits\stdc++.h>
int main(){
 int a,b,c;
 scanf("%d %d %d",&a,&b,&c);
int sum=a*100+10*b+c;
if(sum%4==0)
printf("YES\n");
else
printf("NO\n");
}

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

#include<stdio.h>
#include<string.h>

int main(void){

	char a,b,c;
	int d,e,f;
	scanf("%c %c %c",&a,&b,&c);

	d = a - '0';
	e = b - '0';
	f = c - '0';


	if((a*100+b*#include<stdio.h>
#include<string.h>

int main(void){

	char a,b,c;
	int d,e,f;
	scanf("%c %c %c",&a,&b,&c);

	d = a - '0';
	e = b - '0';
	f = c - '0';


	if((a*100+b*10+c)%4==0){printf("YES\n");}
	else{printf("NO\n");}

	return 0;
}10+c)%4==0){printf("YES\n");}
	else{printf("NO\n");}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:21: error: stray '#' in program
   15 |         if((a*100+b*#include<stdio.h>
      |                     ^
main.c:15:22: error: 'include' undeclared (first use in this function)
   15 |         if((a*100+b*#include<stdio.h>
      |                      ^~~~~~~
main.c:15:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:30: error: 'stdio' undeclared (first use in this function); did you mean 'stdin'?
   15 |         if((a*100+b*#include<stdio.h>
      |                              ^~~~~
      |                              stdin
main.c:18:1: error: expected expression before 'int'
   18 | int main(void){
      | ^~~
Language: C++

#include <cstdio>

using namespace std;

int main(){
	int r, g, b;
	scanf_s("%d", &r);
	scanf_s("%d", &g);
	scanf_s("%d", &b);

	if ((10 * g + b) % 4 == 0) {
		printf("YES\n");
	}
	else
	{
		printf("NO\n");
	}
}

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