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

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

Compiler output:
a.cc:3:1: error: extended character 　 is not valid in an identifier
    3 | 　int main()
      | ^
a.cc:3:1: error: '\U00003000int' does not name a type
    3 | 　int main()
      | ^~~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: extended character 　 is not valid in an identifier
    3 | 　int main()
      | ^
a.cc:3:1: error: '\U00003000int' does not name a type
    3 | 　int main()
      | ^~~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: extended character 　 is not valid in an identifier
    3 | 　int main()
      | ^
a.cc:3:1: error: '\U00003000int' does not name a type
    3 | 　int main()
      | ^~~~~
Language: Java

import java.util.*;
class Main{
  public static void main(String[]args)throws IOException{
    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;
    if(sum%4==0)System.out.println("YES");
    else System.out.println("NO");
  }
}


Compiler output:
Main.java:3: error: cannot find symbol
  public static void main(String[]args)throws IOException{
                                              ^
  symbol:   class IOException
  location: class Main
1 error
Language: C++

r,g,b = gets.chomp.split(" ").map(&:to_i)

if (100*r + 10*g + b) %4 == 0
  puts 'YES'
else
  puts 'NO'
end


Compiler output:
a.cc:4:8: warning: multi-character character constant [-Wmultichar]
    4 |   puts 'YES'
      |        ^~~~~
a.cc:6:8: warning: multi-character character constant [-Wmultichar]
    6 |   puts 'NO'
      |        ^~~~
a.cc:1:1: error: 'r' does not name a type
    1 | r,g,b = gets.chomp.split(" ").map(&:to_i)
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:41: error: expected ';' before ')' token
    6 |         cout<<((10*b+c)%4==0)?"YES":"NO")<<endl;
      |                                         ^
      |                                         ;
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: return-statement with no value, in function returning 'int' [-fpermissive]
    8 | return;
      | ^~~~~~
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;
  return 0;
}

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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '/' token
    6 |   if((g*10+m))/4==0){
      |               ^
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '%' token
    6 |   if((g*10+m))%4==0){
      |               ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '%' token
    6 |   if((g*10+m))%4==0){
      |               ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected ';' before 'if'
    5 |   cin>>a>>b>>c
      |               ^
      |               ;
    6 |     if((b*10+c)%==0){
      |     ~~         
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else{
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;
int A, B, C;
int main(){
   cin >> A >> B >> C;
   if((A * 100 + 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:17: error: 'NO' was not declared in this scope
    7 |    else cout << NO << endl;
      |                 ^~
Language: C++

#include <iostream>
using namespace std;
int A,B,C;
int main{
   cin >> A >> B >> C;
   if((A * 100 + B * 10 + C) % 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:22: error: expected '}' before ';' token
    5 |    cin >> A >> B >> C;
      |                      ^
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:5:18: error: invalid user-defined conversion from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' [-fpermissive]
    5 |    cin >> A >> B >> C;
      |    ~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 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:6:4: error: expected unqualified-id before 'if'
    6 |    if((A * 100 + B * 10 + C) % 4 ==0) cout << "YES" << endl;
      |    ^~
a.cc:7:4: error: expected unqualified-id before 'else'
    7 |    else cout << NO << endl;
      |    ^~~~
a.cc:8:4: error: expected unqualified-id before 'return'
    8 |    return 0;
      |    ^~~~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

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


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

#include <iostream>

using namespace std;

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

  return 0
}


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

#include <iostream>

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

  return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int r, g, b; 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:5:3: error: 'n' was not declared in this scope
    5 |   n = r * 100 + g * 10 + b;
      |   ^
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << (n % 4 == 0 ? "YES" : "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:6:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << (n % 4 == 0 ? "YES" : "NO") << 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:8:11: error: expected ';' before '}' token
    8 |   return 0
      |           ^
      |           ;
    9 | }
      | ~
Language: C++

#include <bits/stdc++.h>
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:
a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before '%' token
    7 |   if ((g * 10) + b) % 4 == 0) {
      |                     ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected primary-expression before '%' token
    8 |   if ((vec[1] * 10) + vec[2]) % 4 == 0) {
      |                               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: 'r' was not declared in this scope
    5 |     vector<int> vec = {r, g, b};
      |                        ^
a.cc:5:27: error: 'g' was not declared in this scope
    5 |     vector<int> vec = {r, g, b};
      |                           ^
a.cc:5:30: error: 'b' was not declared in this scope
    5 |     vector<int> vec = {r, g, b};
      |                              ^
a.cc:5:31: error: could not convert '{<expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
    5 |     vector<int> vec = {r, g, b};
      |                               ^
      |                               |
      |                               <brace-enclosed initializer list>
a.cc:7:31: error: expected primary-expression before '%' token
    7 |   if ((vec[1] * 10) + vec[2]) % 4 == 0) {
      |                               ^
Language: C++

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

int main(){
    vector<int> vec = {r, g, b};
  cin >> r >> g >> b;
  if ((vec[1] * 10) + vec[2]) / 4) {
    cout << "YES" << endl;
}
  else {
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: 'r' was not declared in this scope
    5 |     vector<int> vec = {r, g, b};
      |                        ^
a.cc:5:27: error: 'g' was not declared in this scope
    5 |     vector<int> vec = {r, g, b};
      |                           ^
a.cc:5:30: error: 'b' was not declared in this scope
    5 |     vector<int> vec = {r, g, b};
      |                              ^
a.cc:5:31: error: could not convert '{<expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
    5 |     vector<int> vec = {r, g, b};
      |                               ^
      |                               |
      |                               <brace-enclosed initializer list>
a.cc:7:31: error: expected primary-expression before '/' token
    7 |   if ((vec[1] * 10) + vec[2]) / 4) {
      |                               ^
Language: Java


public class Main {

	private static Scanner sc;

	public static void main(String[] args) {

		sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		sb.append(sc.next()).append(sc.next()).append(sc.next());
		int a = Integer.valueOf(sb.toString());
		if (a % 4 == 0) {
			System.out.print("YES");
		} else {
			System.out.print("NO");
		}
	}
}


Compiler output:
Main.java:4: error: cannot find symbol
	private static Scanner sc;
	               ^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
		sc = new Scanner(System.in);
		         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'num' was not declared in this scope; did you mean 'enum'?
    7 |     num = 100*r + 10*g + b;
      |     ^~~
      |     enum
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:8:8: error: 'rgb' was not declared in this scope
    8 |   if ( rgb%4 == 0) {
      |        ^~~
a.cc:12:9: error: expected ';' before string constant
   12 |     cout "NO" << endl;
      |         ^~~~~
      |         ;
Language: C++

#include <iostream>
using namespace std;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   if ((a * 100 + b * 10 + c) % 4 == 0)
      |        ^
a.cc:8:27: error: 'c' was not declared in this scope
    8 |   if ((a * 100 + b * 10 + c) % 4 == 0)
      |                           ^
Language: Java

import java.util.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
      String a=sc.nextLine();
      a=a.replace(" ","");
      int po=Integer.parseint(a);
      System.out.println((po%4==0)?"YES":"NO");
    }
}


Compiler output:
Main.java:9: error: cannot find symbol
      int po=Integer.parseint(a);
                    ^
  symbol:   method parseint(String)
  location: class Integer
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected ';' before 'if'
    5 |   d=100*a+10*b+c
      |                 ^
      |                 ;
    6 |     if(d%4==0){
      |     ~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:16: error: expected expression before '%' token
    4 |     if (10*g+b)%4==0{
      |                ^
main.c:9:1: error: expected declaration or statement at end of input
    9 | end
      | ^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    4 | scanf('r','g','b');
      |       ^~~
      |       |
      |       char
In file included from a.cc:1:
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:5:12: error: expected primary-expression before '%' token
    5 | if (g*10+b)%4 == 0{
      |            ^
a.cc:8:1: error: 'plitnf' was not declared in this scope; did you mean 'printf'?
    8 | plitnf("NO")
      | ^~~~~~
      | printf
Language: C++

#include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main(void)
{
	char r[10];
	char g[10];
	char b[10];
	char s[20];
	cin >> r >> g >> b;
	sprintf_s (s,"%s%s%s",r,g,b);
	int i = atoi(s);
	if (i % 4 == 0)
	{
		cout << "YES";
	}
	else
	{
		cout<<"NO";
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'sprintf_s' was not declared in this scope; did you mean 'sprintf'?
   13 |         sprintf_s (s,"%s%s%s",r,g,b);
      |         ^~~~~~~~~
      |         sprintf
Language: C++

#include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main(void)
{
	char r[10];
	char g[10];
	char b[10];
	char s[20];
	cin >> r >> g >> b;
	sprintf_s (s,"%s%s%s",r,g,b);
	int i = atoi(s);
	if (i % 4 == 0)
	{
		cout << "Yes";
	}
	else
	{
		cout<<"No";
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'sprintf_s' was not declared in this scope; did you mean 'sprintf'?
   13 |         sprintf_s (s,"%s%s%s",r,g,b);
      |         ^~~~~~~~~
      |         sprintf
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int valuePlace100, valuePlace10, valuePlace1;
  cin >> valuePlace100 >> valuePlace10 >> valuePlace1;
  sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
  if(sum % 4 == 0)
  cout << "YES";
  else
  cout << "NO";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'sum' was not declared in this scope
    7 |   sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
      |   ^~~
a.cc:7:10: error: 'valuePlace' was not declared in this scope; did you mean 'valuePlace1'?
    7 |   sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
      |          ^~~~~~~~~~
      |          valuePlace1
Language: C++

#include<iostream>

int main()
{
  int valuePlace100, valuePlace10, valuePlace1;
  cin >> valuePlace100 >> valuePlace10 >> valuePlace1;
  sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
  if(sum % 4 == 0)
  cout << "YES";
  else
  cout << "NO";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> valuePlace100 >> valuePlace10 >> valuePlace1;
      |   ^~~
      |   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:7:3: error: 'sum' was not declared in this scope
    7 |   sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
      |   ^~~
a.cc:7:10: error: 'valuePlace' was not declared in this scope; did you mean 'valuePlace1'?
    7 |   sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1;
      |          ^~~~~~~~~~
      |          valuePlace1
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << "YES";
      |   ^~~~
      |   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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout << "NO";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected ';' before string constant
   11 |   cout "No";
      |       ^~~~~
      |       ;
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |   cout << 'Yes';
      |           ^~~~~
a.cc:11:8: warning: multi-character character constant [-Wmultichar]
   11 |   cout 'No';
      |        ^~~~
a.cc: In function 'int main()':
a.cc:11:7: error: expected ';' before '\x4e6f'
   11 |   cout 'No';
      |       ^~~~~
      |       ;
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'r' was not declared in this scope
    6 |     cin >> r >> g >> b;
      |            ^
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();

       if((r*100+g*10+b)%4==0){
         System.out.print("YES")
       }else{
         System.out.print("NO")
       }
 
    }
}

Compiler output:
Main.java:11: error: ';' expected
         System.out.print("YES")
                                ^
Main.java:13: error: ';' expected
         System.out.print("NO")
                               ^
2 errors
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a, b, c;
	cin >> a >> b >> c;

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

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 niketa = g*10+b;
  
  if(niketa % 4 == 0){
    cout << "YES" << endl;}
  else{
    cout << "NO" << endl;}


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

#include <cstdio>
#include <string>

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:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> r >> g >> b;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | 
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "YES" << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |     cout << "YES" << endl;
      |                      ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <string>
  +++ |+#include <ostream>
    3 | 
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "NO" << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |     cout << "NO" << endl;
      |                     ^~~~
a.cc:12:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b,c;
 cin >> a >> b >> c;

int number = 10 * b + c;
  if(number % 4 = 0){
  cout << 'Yes' << endl;
  }else{
  cout << 'No' << endl;
  }
return 0;
}

Compiler output:
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |   cout << 'Yes' << endl;
      |           ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |   cout << 'No' << endl;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |   if(number % 4 = 0){
      |      ~~~~~~~^~~
Language: C++

#include <iostream>
using namespace std;
int a,b,c;
cin >> a >> b >> c;

int number = 10 * b + c;
  if(number % 4 = 0){
  cout << 'Yes' << endl;
  }else{
  cout << 'No' << endl;
  }
return 0;
}

Compiler output:
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |   cout << 'Yes' << endl;
      |           ^~~~~
a.cc:10:11: warning: multi-character character constant [-Wmultichar]
   10 |   cout << 'No' << endl;
      |           ^~~~
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> a >> b >> c;
      | ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(number % 4 = 0){
      |   ^~
a.cc:9:4: error: expected unqualified-id before 'else'
    9 |   }else{
      |    ^~~~
a.cc:12:1: error: expected unqualified-id before 'return'
   12 | return 0;
      | ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
char a,b,c;
  cin >> a >> b >> c;

int number = 100 * a + 10 * b + c;
  if(number % 4 = 0){
  cout << "Yes" << endl;
  }else{
  cout << "No" << endl;
  }
}

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

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

Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected ';' before '}' token
    9 |   printf ("NO")
      |                ^
      |                ;
   10 |   }
      |   ~
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";
      else cout << "NO" << endl;
    }

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

#include<iostream>

int main(){
  int r, g, b;
  cin >> r >> g >> b;
  if((r*100 + g*10 + b) % 4 = 0) cout << "YES";
  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:6:25: error: lvalue required as left operand of assignment
    6 |   if((r*100 + g*10 + b) % 4 = 0) cout << "YES";
      |      ~~~~~~~~~~~~~~~~~~~^~~
a.cc:6:34: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if((r*100 + g*10 + b) % 4 = 0) cout << "YES";
      |                                  ^~~~
      |                                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   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:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else cout << "NO" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

temp = input().rstrip().split(" ")
r = temp[0]
g = temp[1]
b = temp[2]
ans = int(r+g+b)
if ans % 4 == 0 :
    print("YES")
else:
    print("NO")

Compiler output:
a.cc:1:1: error: 'temp' does not name a type
    1 | temp = input().rstrip().split(" ")
      | ^~~~
Language: C++

#include <iostream>

use 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:3:1: error: 'use' does not name a type
    3 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:7:34: error: expected primary-expression before '==' token
    7 |   if(((r*100) + (g*10) + b) % 4) == 0) cout << "YES" << endl;
      |                                  ^~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   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:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else cout << "NO" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: expected initializer before 'g'
    4 |         int r g b sum;
      |               ^
a.cc:5:27: error: 'r' was not declared in this scope
    5 |         scanf("%d %d %d",&r,&g,&b);
      |                           ^
a.cc:5:30: error: 'g' was not declared in this scope
    5 |         scanf("%d %d %d",&r,&g,&b);
      |                              ^
a.cc:5:33: error: 'b' was not declared in this scope
    5 |         scanf("%d %d %d",&r,&g,&b);
      |                                 ^
a.cc:6:9: error: 'sum' was not declared in this scope
    6 |         sum = 2*g + b;
      |         ^~~
Language: C++

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

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;

int main() {
    //cout.precision(10);
    int a, b, ;
    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:12:15: error: expected unqualified-id before ';' token
   12 |     int a, b, ;
      |               ^
a.cc:13:22: error: 'c' was not declared in this scope
   13 |     cin >> a >> b >> c;
      |                      ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:10:12: note: to match this '{'
   10 | int main() {
      |            ^
Language: C++

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

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;

int main() {
    //cout.precision(10);
    int a, b, ;
    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:12:15: error: expected unqualified-id before ';' token
   12 |     int a, b, ;
      |               ^
a.cc:13:22: error: 'c' was not declared in this scope
   13 |     cin >> a >> b >> c;
      |                      ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:10:12: note: to match this '{'
   10 | int main() {
      |            ^
Language: C++

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


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main(){
      | ~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <stdio.h>
using namespace std;

#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
typedef long long ll;

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

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


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

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

Compiler output:
main.c: In function 'main':
main.c:7:15: warning: missing terminating " character
    7 |   else printf("NO\n);
      |               ^
main.c:7:15: error: missing terminating " character
    7 |   else printf("NO\n);
      |               ^~~~~~~
main.c:8:3: error: expected expression before 'return'
    8 |   return 0;
      |   ^~~~~~
main.c:8:12: error: expected ';' before '}' token
    8 |   return 0;
      |            ^
      |            ;
    9 |               }
      |               ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d %d %d",&r,&g,&b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d %d %d",&r,&g,&b);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   if (s%4 == 0) printf("YES\n");
      |                 ^~~~~~
main.c:5:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |   else printf("NO\n);
      |        ^~~~~~
main.c:6:8: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:15: warning: missing terminating " character
    6 |   else printf("NO\n);
      |               ^
main.c:6:15: error: missing terminating " character
    6 |   else printf("NO\n);
      |               ^~~~~~~
main.c:7:3: error: expected expression before 'return'
    7 |   return 0;
      |   ^~~~~~
main.c:7:12: error: expected ';' before '}' token
    7 |   return 0;
      |            ^
      |            ;
    8 |               }
      |               ~
Language: C

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

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){
      | ^~~~
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d %d %d",r,g,b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d %d %d",r,g,b);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   if (s%4 == 0) printf("YES\n");
      |                 ^~~~~~
main.c:5:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |   else printf("NO\n);
      |        ^~~~~~
main.c:6:8: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:15: warning: missing terminating " character
    6 |   else printf("NO\n);
      |               ^
main.c:6:15: error: missing terminating " character
    6 |   else printf("NO\n);
      |               ^~~~~~~
main.c:7:15: error: expected expression before '}' token
    7 |               }
      |               ^
main.c:6:15: error: expected ';' before '}' token
    6 |   else printf("NO\n);
      |               ^
      |               ;
    7 |               }
      |               ~
Language: C++

r, g, b = map(str, input().split( ))
ans = 'NO'

if int(r + g + b) % 4 ==0:
	ans = 'YES'
print(ans)

Compiler output:
a.cc:2:7: warning: multi-character character constant [-Wmultichar]
    2 | ans = 'NO'
      |       ^~~~
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         ans = 'YES'
      |               ^~~~~
a.cc:1:1: error: 'r' does not name a type
    1 | r, g, b = map(str, input().split( ))
      | ^
Language: C

#include <stdio.h>
int main(void){
    int tmp[8] = {0};
    int b=0,cnt=0,max=0,i,n;
    scanf("%d",&n);
    int a[n];
    for(i=0;i<n;i++){
        scanf("%d",&a[i]);
        if(a[i]  >= 3200){
            b++;
        }else{
            tmp[a[i]/400]++;
        }
    }
    for(i=0;i<8;i++){
        if(tmp[i] > 0){
            cnt++;
        }
    }
    max = cnt;
    if(max < 8){
        for(;max < 8 && b > 0;b--){
            max++;   
        }
    }
    if(cnt == 0){
        cnt++;
    }
    }
    if(b==0){
        max++;
    }
    printf("%d %d",cnt,max);
}

Compiler output:
main.c:30:5: error: expected identifier or '(' before 'if'
   30 |     if(b==0){
      |     ^~
main.c:33:12: error: expected declaration specifiers or '...' before string constant
   33 |     printf("%d %d",cnt,max);
      |            ^~~~~~~
main.c:33:20: error: unknown type name 'cnt'; did you mean 'int'?
   33 |     printf("%d %d",cnt,max);
      |                    ^~~
      |                    int
main.c:33:24: error: unknown type name 'max'
   33 |     printf("%d %d",cnt,max);
      |                        ^~~
main.c:34:1: error: expected identifier or '(' before '}' token
   34 | }
      | ^
Language: C++

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

int main(){
        int r,g,b;
        cin>>r>>g>>b;
        cout<<((100*r+20*g+b)%4==0?"YeS":"NO")<<endl;
        return 0;
}
~   

Compiler output:
a.cc:10:2: error: expected class-name at end of input
   10 | ~
      |  ^
Language: C++

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


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

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

 return 0;
 }
 
 return 0;
 }

Compiler output:
main.c:21:2: error: expected identifier or '(' before 'return'
   21 |  return 0;
      |  ^~~~~~
main.c:22:2: error: expected identifier or '(' before '}' token
   22 |  }
      |  ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ';' before 'if'
    6 |  ama = (10*g+b)%4
      |                  ^
      |                  ;
    7 | 
    8 |  if (10*g+b % 4 == 0)
      |  ~~
Language: C++

r_str, g_str, b_str = input().split(" ")

print("YES" if int(g_str+b_str)%4 == 0 else "NO")

Compiler output:
a.cc:1:1: error: 'r_str' does not name a type
    1 | r_str, g_str, b_str = input().split(" ")
      | ^~~~~
Language: C++

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

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


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

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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'num' was not declared in this scope; did you mean 'enum'?
    8 |         num = 10*g + b;
      |         ^~~
      |         enum
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define dump(x) cout << (x) << endl
typedef long long ll;
typedef pair<int, int> pi;
typedef vector<int> V;

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


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

include <stdio.h>

int main() {
  int r,g,b
  scanf("%d %d %d",r,g,b)
  if (gb%4!=0) {
  printf(NO)
  }
  if (gb%4=0) {
  printf()
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
Language: C

#include <stdio.h>
int main()
{
  int r;
  int g;
  int b;
  char "word1" = YES;
  char "word2" = NO;
  scanf("%d %d %d",&r,&g,&b);
  int c=r*100+g*10+b;
  if (c%4==0)
  {
    printf("%c\n",word1);
  }
  else
  {
    printf("%d\n",word2);
  }
}

Compiler output:
main.c: In function 'main':
main.c:7:8: error: expected identifier or '(' before string constant
    7 |   char "word1" = YES;
      |        ^~~~~~~
main.c:8:8: error: expected identifier or '(' before string constant
    8 |   char "word2" = NO;
      |        ^~~~~~~
main.c:13:19: error: 'word1' undeclared (first use in this function)
   13 |     printf("%c\n",word1);
      |                   ^~~~~
main.c:13:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:19: error: 'word2' undeclared (first use in this function)
   17 |     printf("%d\n",word2);
      |                   ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:12: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    7 |   char a = "YES";
      |            ^~~~~
main.c:8:8: error: conflicting types for 'b'; have 'char'
    8 |   char b = "NO";
      |        ^
main.c:6:7: note: previous declaration of 'b' with type 'int'
    6 |   int b;
      |       ^
main.c:8:12: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 |   char b = "NO";
      |            ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:10: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    7 |   char a="YES";
      |          ^~~~~
main.c:8:8: error: conflicting types for 'b'; have 'char'
    8 |   char b="NO";
      |        ^
main.c:6:7: note: previous declaration of 'b' with type 'int'
    6 |   int b;
      |       ^
main.c:8:10: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 |   char b="NO";
      |          ^~~~