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

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

    }
}

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

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

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

  int hantei = g * 10 + b
  if ((hantei % 4) == 0) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'if'
    9 |   if ((hantei % 4) == 0) {
      |   ^~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else {
      |   ^~~~
Language: C++

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

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

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

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


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

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

Compiler output:
a.cc:7:12: warning: multi-character character constant [-Wmultichar]
    7 |     cout <<'Yes'<<endl;
      |            ^~~~~
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'No' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:4:10: error: 'r' was not declared in this scope
    4 |   cin >> r >> g >> b;
      |          ^
a.cc:4:15: error: 'g' was not declared in this scope
    4 |   cin >> r >> g >> b;
      |               ^
a.cc:4:20: error: 'b' was not declared in this scope
    4 |   cin >> r >> g >> b;
      |                    ^
a.cc:10:4: error: expected '}' at end of input
   10 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc:7:7: error: extended character ” is not valid in an identifier
    7 | cout<<”Yes”<<endl;
      |       ^
a.cc:7:7: error: extended character ” is not valid in an identifier
a.cc:8:13: error: extended character ” is not valid in an identifier
    8 | }else{cout<<”No”<<endl;}
      |             ^
a.cc:8:13: error: extended character ” is not valid in an identifier
a.cc:2:17: error: 'std\U0000ff1b' is not a namespace-name
    2 | using namespace std；
      |                 ^~~~~
a.cc:2:22: error: expected ';' before 'int'
    2 | using namespace std；
      |                      ^
      |                      ;
    3 |   int main(){
      |   ~~~                 
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | 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:4:8: error: 'r' was not declared in this scope
    4 | cin >> r >> g>> b;
      |        ^
a.cc:4:13: error: 'g' was not declared in this scope
    4 | cin >> r >> g>> b;
      |             ^
a.cc:4:17: error: 'b' was not declared in this scope
    4 | cin >> r >> g>> b;
      |                 ^
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | 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:7:7: error: '\U0000201dYes\U0000201d' was not declared in this scope
    7 | cout<<”Yes”<<endl;
      |       ^~~~~
a.cc:7:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | 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:8:7: 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:13: error: '\U0000201dNo\U0000201d' was not declared in this scope
    8 | }else{cout<<”No”<<endl;}
      |             ^~~~
a.cc:8:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | }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: C++

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

Compiler output:
a.cc:6:1: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
    6 | int a=100r+10g+b;
      | ^~~
a.cc:8:7: error: extended character ” is not valid in an identifier
    8 | cout<<”Yes”<<endl;
      |       ^
a.cc:8:7: error: extended character ” is not valid in an identifier
a.cc:9:13: error: extended character ” is not valid in an identifier
    9 | }else{cout<<”No”<<endl;}
      |             ^
a.cc:9:13: error: extended character ” is not valid in an identifier
a.cc:2:17: error: 'std\U0000ff1b' is not a namespace-name
    2 | using namespace std；
      |                 ^~~~~
a.cc:2:22: error: expected ';' before 'int'
    2 | using namespace std；
      |                      ^
      |                      ;
    3 |   int main(){
      |   ~~~                 
a.cc: In function 'int main()':
a.cc:5:1: 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:7: error: fixed-point types not supported in C++
    6 | int a=100r+10g+b;
      |       ^~~~
a.cc:6:12: error: unable to find numeric literal operator 'operator""g'
    6 | int a=100r+10g+b;
      |            ^~~
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | 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:8:7: error: '\U0000201dYes\U0000201d' was not declared in this scope
    8 | cout<<”Yes”<<endl;
      |       ^~~~~
a.cc:8:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | 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:9:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | }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:9:13: error: '\U0000201dNo\U0000201d' was not declared in this scope
    9 | }else{cout<<”No”<<endl;}
      |             ^~~~
a.cc:9:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | }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: C++

#include <iostream>
using namespace std；
  int r,g,b;
cin >> r >> g>> b;
int a=100r+10g+b; 
if(a%4==0){
cout<<”Yes”<<endl;
}else{cout<<”No”<<endl;}


Compiler output:
a.cc:5:1: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
    5 | int a=100r+10g+b;
      | ^~~
a.cc:7:7: error: extended character ” is not valid in an identifier
    7 | cout<<”Yes”<<endl;
      |       ^
a.cc:7:7: error: extended character ” is not valid in an identifier
a.cc:8:13: error: extended character ” is not valid in an identifier
    8 | }else{cout<<”No”<<endl;}
      |             ^
a.cc:8:13: error: extended character ” is not valid in an identifier
a.cc:2:17: error: 'std\U0000ff1b' is not a namespace-name
    2 | using namespace std；
      |                 ^~~~~
a.cc:2:22: error: expected ';' before 'int'
    2 | using namespace std；
      |                      ^
      |                      ;
    3 |   int r,g,b;
      |   ~~~                 
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> r >> g>> b;
      | ^~~
a.cc:5:7: error: fixed-point types not supported in C++
    5 | int a=100r+10g+b;
      |       ^~~~
a.cc:5:12: error: unable to find numeric literal operator 'operator""g'
    5 | int a=100r+10g+b;
      |            ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(a%4==0){
      | ^~
a.cc:8:2: error: expected unqualified-id before 'else'
    8 | }else{cout<<”No”<<endl;}
      |  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(),v.end()
#define ALLR(v) v.rbegin(),v.rend()
typedef long long ll;
const int dx[4] = {1,0,-1,0};
const int dy[4] = {0,1,0,-1};
//isPrime
//modpow modinv
//getDigit
int main() {
  cout << fixed << setprecision(10);
  int r,g,b;
  cin >> r >> g >> b;
  if((10*g+b)%4==0){
    cout << "YES" <<< endl;
  }else{
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: expected primary-expression before '<' token
   20 |     cout << "YES" <<< endl;
      |                     ^
Language: Java

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

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

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

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

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

namespace AtCoder
{
	class Program
	{
		static void Main(string[] args)
		{
			Question.Exec();
		}
	}

	public static class Question
	{
		public static void Exec()
		{
			var array = Console.ReadLine().Split(' ').Select(i => int.Parse(i)).ToArray();
			var r = array[0];
			var g = array[1];
			var b = array[2];
			var answer = r * 100 + g * 10 + b;

			if (answer % 4 == 0)
			{
				Console.WriteLine($"YES");
			} else
			{
				Console.WriteLine($"NO");
			}

			Console.ReadKey();
		}
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:10:34: error: 'string' has not been declared
   10 |                 static void Main(string[] args)
      |                                  ^~~~~~
a.cc:10:43: error: expected ',' or '...' before 'args'
   10 |                 static void Main(string[] args)
      |                                           ^~~~
a.cc:14:10: error: expected ';' after class definition
   14 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void AtCoder::Program::Main(int*)':
a.cc:12:25: error: 'Question' was not declared in this scope
   12 |                         Question.Exec();
      |                         ^~~~~~~~
a.cc: At global scope:
a.cc:16:9: error: expected unqualified-id before 'public'
   16 |         public static class Question
      |         ^~~~~~
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:7:30: error: lvalue required as left operand of assignment
    7 |         if((100*a + 10*b +c) % 4 = 0) cout << "YES" << endl;
      |            ~~~~~~~~~~~~~~~~~~^~~
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";
	else cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected primary-expression before ')' token
    6 |         if((100*a+10*b+c%)4==0)cout<<"Yes";
      |                          ^
a.cc:6:27: error: expected ')' before numeric constant
    6 |         if((100*a+10*b+c%)4==0)cout<<"Yes";
      |           ~               ^
      |                           )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected initializer before '==' token
    7 |   int d==a*100+10*b+c;
      |        ^~
a.cc:8:6: error: 'd' was not declared in this scope
    8 |   if(d%4==0){
      |      ^
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: cannot find symbol
		 if(RGB % 4 == 0) {
		    ^
  symbol:   variable RGB
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
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:9:7: error: expected '}' before 'else'
    9 |       else{
      |       ^~~~
a.cc:7:32: note: to match this '{'
    7 |         if((r*100+g*10+b)%4==0){
      |                                ^
Language: C++

#include <iostream>
using namespace std;

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

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

  return 0;
}


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

#include <iostream>
using namespace std;

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

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

}


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

#include <iostream>
using namespace std;
 int r,g,b;
int main{
 cin>>r>>g>>b;

 int a = g+b;

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

}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:14: error: expected '}' before ';' token
    5 |  cin>>r>>g>>b;
      |              ^
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:5:11: error: invalid user-defined conversion from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' [-fpermissive]
    5 |  cin>>r>>g>>b;
      |  ~~~~~~~~~^~~
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:9:2: error: expected unqualified-id before 'if'
    9 |  if(a%4==0)cout<<"YES"<<endl;
      |  ^~
a.cc:10:2: error: expected unqualified-id before 'else'
   10 |  else cout<<"NO"<<endl;
      |  ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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

 int a = g+b;

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

}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:2: error: expected primary-expression before 'int'
    5 |  int r,g,b;
      |  ^~~
a.cc:5:2: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:2: error: 'cin' does not name a type
    6 |  cin>>r>>g>>b;
      |  ^~~
a.cc:8:10: error: 'g' was not declared in this scope
    8 |  int a = g+b;
      |          ^
a.cc:8:12: error: 'b' was not declared in this scope
    8 |  int a = g+b;
      |            ^
a.cc:10:2: error: expected unqualified-id before 'if'
   10 |  if(a%4==0)cout<<"YES"<<endl;
      |  ^~
a.cc:11:2: error: expected unqualified-id before 'else'
   11 |  else cout<<"NO"<<endl;
      |  ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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

int a=g+b;

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

}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int r,g,b;
      | ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:1: error: 'cin' does not name a type
    6 | cin>>r>>g>>b;
      | ^~~
a.cc:8:7: error: 'g' was not declared in this scope
    8 | int a=g+b;
      |       ^
a.cc:8:9: error: 'b' was not declared in this scope
    8 | int a=g+b;
      |         ^
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if(a%4==0)cout<<"YES"<<endl;
      | ^~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else cout<<"NO"<<endl;
      | ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++


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

int a=g+b;

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

}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main{
      |     ^~~~
a.cc:3:1: error: expected primary-expression before 'int'
    3 | int r,g,b;
      | ^~~
a.cc:3:1: error: expected '}' before 'int'
a.cc:2:9: note: to match this '{'
    2 | int main{
      |         ^
a.cc:4:1: error: 'cin' does not name a type
    4 | cin>>r>>g>>b;
      | ^~~
a.cc:6:7: error: 'g' was not declared in this scope
    6 | int a=g+b;
      |       ^
a.cc:6:9: error: 'b' was not declared in this scope
    6 | int a=g+b;
      |         ^
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if(a%4==0)cout<<"YES"<<endl;
      | ^~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else cout<<"NO"<<endl;
      | ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

int r,g,b;
cin>>r>>g>>b;

int a=g+b;

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



Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>>r>>g>>b;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(a%4==0)cout<<"YES"<<endl;
      | ^~
a.cc:7:1: error: expected unqualified-id before 'else'
    7 | else cout<<"NO"<<endl;
      | ^~~~
Language: C++

int r,g,b;
cin>r>g>b;

int a=g+b;

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



Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>r>g>b;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(a%4==0)cout<"YES"<endl;
      | ^~
a.cc:7:1: error: expected unqualified-id before 'else'
    7 | else cout<"NO"<endl;
      | ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected '}' before 'else'
    9 |   else{
      |   ^~~~
a.cc:7:26: note: to match this '{'
    7 |   if((100*a+10*b+c)%4==0){
      |                          ^
a.cc: At global scope:
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'a' was not declared in this scope
    5 | cin >> a >> b >> c;
      |        ^
a.cc:5:13: error: 'b' was not declared in this scope
    5 | cin >> a >> b >> c;
      |             ^
a.cc:5:18: error: 'c' was not declared in this scope
    5 | cin >> a >> b >> c;
      |                  ^
a.cc:8:3: error: expected '}' before 'else'
    8 |   else{
      |   ^~~~
a.cc:6:26: note: to match this '{'
    6 |   if((100*a+10*b+c)%4==0){
      |                          ^
a.cc: At global scope:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: Java

import java.util.*;
import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException {
		InputReader in = new InputReader(System.in);
		OutputWriter out = new OutputWriter(System.out);
		int r = in.readInt()*100; 
		int g = in.readInt() * 10; 
		int b = in.readInt(); 
		int result = r+b+g; 
		System.out.println(result % 4 == 0 ? "YES" : "NO"); 
	}
}
class InputReader {

	private InputStream stream;
	private byte[] buf = new byte[1024];
	private int curChar;
	private int numChars;
	private SpaceCharFilter filter;

	public InputReader(InputStream stream) {
		this.stream = stream;
	}

	public int read() {
		if (numChars == -1)
			throw new InputMismatchException();
		if (curChar >= numChars) {
			curChar = 0;
			try {
				numChars = stream.read(buf);
			} catch (IOException e) {
				throw new InputMismatchException();
			}
			if (numChars <= 0)
				return -1;
		}
		return buf[curChar++];
	}

	public int readInt() {
		int c = read();
		while (isSpaceChar(c))
			c = read();
		int sgn = 1;
		if (c == '-') {
			sgn = -1;
			c = read();
		}
		int res = 0;
		do {
			if (c < '0' || c > '9')
				throw new InputMismatchException();
			res *= 10;
			res += c - '0';
			c = read();
		} while (!isSpaceChar(c));
		return res * sgn;
	}

	public String readString() {
		int c = read();
		while (isSpaceChar(c))
			c = read();
		StringBuilder res = new StringBuilder();
		do {
			res.appendCodePoint(c);
			c = read();
		} while (!isSpaceChar(c));
		return res.toString();
	}

	public long readLong() {
		int c = read();
		while (isSpaceChar(c)) {
			c = read();
		}
		int sgn = 1;
		if (c == '-') {
			sgn = -1;
			c = read();
		}
		long res = 0;
		do {
			if (c < '0' || c > '9') {
				throw new InputMismatchException();
			}
			res *= 10;
			res += c - '0';
			c = read();
		} while (!isSpaceChar(c));
		return res * sgn;
	}
	
	public boolean isSpaceChar(int c) {
		if (filter != null)
			return filter.isSpaceChar(c);
		return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
	}

	public String next() {
		return readString();
	}

	public interface SpaceCharFilter {
		public boolean isSpaceChar(int ch);
	}
}


Compiler output:
Main.java:7: error: cannot find symbol
		OutputWriter out = new OutputWriter(System.out);
		^
  symbol:   class OutputWriter
  location: class Main
Main.java:7: error: cannot find symbol
		OutputWriter out = new OutputWriter(System.out);
		                       ^
  symbol:   class OutputWriter
  location: class Main
2 errors
Language: C

#include<stdio.h>
int main(){
  int i,N;
  int a[4801];
  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%d",&a[i]);
  }
  int r[100]={0};
  int num=0;
  for(i=0;i<N;i++){
    if(a[i]<400){
      r[i]=1;
    }
    else if(a[i]>=400&&a[i]<800){
      r[i]=2;
    }
    else if(a[i]>=800&&a[i]<1200){
      r[i]=3;
    }
    else if(a[i]>=1200&&a[i]<1600){
      r[i]=4;
    }
    else if(a[i]>=1600&&a[i]<2000){
      r[i]=5;
    }
    else if(a[i]>=2000&&a[i]<2400){
      r[i]=6;
    }
    else if(a[i]>=2400&&a[i]<2800){
      r[i]=7;
    }
    else if(a[i]>=2800&&a[i]<3200){
      r[i]=8;
    }
    else{
      num++;
    }
  }
  int j,tmp;
  for(i=0;i<N;i++){
    for(j=i+1;j<N;j++){
      if(r[i]<r[j]){
        tmp=r[i];
        r[i]=r[j];
        r[j]=tmp;
      }
    }
  }
  int count =1;
  for(i=1;i<=N;i++){
    //printf("%d",r[i-1]);
    if(r[i]==0){
    }
    else if(r[i]<r[i-1]){
      count++;
    }
  }
  if((count+num)<9){
    printf("\n%d %d",count,count+num);
  }
  if((count+num)>8){
    printf("%d %d",count,8)
  }
}
 

Compiler output:
main.c: In function 'main':
main.c:63:28: error: expected ';' before '}' token
   63 |     printf("%d %d",count,8)
      |                            ^
      |                            ;
   64 |   }
      |   ~
Language: C

#include<stdio.h>
int main(){
  int i,N;
  int a[4801];
  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%d",&a[i]);
  }
  int r[100]={0};
  int num=0;
  for(i=0;i<N;i++){
    if(a[i]<400){
      r[i]=1;
    }
    else if(a[i]>=400&&a[i]<800){
      r[i]=2;
    }
    else if(a[i]>=800&&a[i]<1200){
      r[i]=3;
    }
    else if(a[i]>=1200&&a[i]<1600){
      r[i]=4;
    }
    else if(a[i]>=1600&&a[i]<2000){
      r[i]=5;
    }
    else if(a[i]>=2000&&a[i]<2400){
      r[i]=6;
    }
    else if(a[i]>=2400&&a[i]<2800){
      r[i]=7;
    }
    else if(a[i]>=2800&&a[i]<3200){
      r[i]=8;
    }
    else{
      num++;
    }
  }
  int j,tmp;
  for(i=0;i<N;i++){
    for(j=i+1;j<N;j++){
      if(r[i]<r[j]){
        tmp=r[i];
        r[i]=r[j];
        r[j]=tmp;
      }
    }
  }
  int count =1;
  for(i=1;i<=N;i++){
    //printf("%d",r[i-1]);
    if(r[i]==0){
    }
    else if(r[i]<r[i-1]){
      count++;
    }
  }
  if((count+num)<9){
    printf("\n%d %d",count,count+num);
  }
  if(count+num>8){
    printf("%d %d",count,8)
  }
}

Compiler output:
main.c: In function 'main':
main.c:63:28: error: expected ';' before '}' token
   63 |     printf("%d %d",count,8)
      |                            ^
      |                            ;
   64 |   }
      |   ~
Language: C++

using System;

public class Hello{
    
    public static void Main(string[] args){
        
        var input = Console.ReadLine().Split(' ');
        var r = int.Parse(input[0]);
        var g = int.Parse(input[1]);
        var b = int.Parse(input[2]);
        
        Console.WriteLine((r * 100 + g * 10 + b) % 4 == 0 ? "Yes" : "No");
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Hello{
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:8:43: error: extended character 　 is not valid in an identifier
    8 |     if (d % 4 == 0) cout << "YES" << endl;　
      |                                           ^
a.cc: In function 'int main()':
a.cc:8:43: error: '\U00003000' was not declared in this scope
    8 |     if (d % 4 == 0) cout << "YES" << endl;　
      |                                           ^~
Language: Java

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

Compiler output:
Main.java:21: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:41: error: reached end of file while parsing
????
^
2 errors
Language: Java

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

Compiler output:
Main.java:10: error: cannot find symbol
    int b = sc.nextINt();
              ^
  symbol:   method nextINt()
  location: variable sc of type Scanner
Main.java:14: error: unexpected type
    if(total%4=0){
            ^
  required: variable
  found:    value
2 errors
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

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:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>r>>g>>b;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"YES"<<endl;
      |     ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout<<"YES"<<endl;
      |                  ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"NO"<<endl;
      |     ^~~~
a.cc:11:17: error: 'endl' was not declared in this scope
   11 |     cout<<"NO"<<endl;
      |                 ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int N,a_min,a_max;
  a_max = 0;
  a_min = 1000;
  cin >> N;
  long a[N];
  for(int i=0;i<N;i++){
    cin >> a[i];
    a_min = min(a[i],a_min);
    a_max = max(a[i],a_max);
  }
  cout << a_max-a_min << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: no matching function for call to 'min(long int&, int&)'
   12 |     a_min = min(a[i],a_min);
      |             ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:12:16: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
   12 |     a_min = min(a[i],a_min);
      |             ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
a.cc:13:16: error: no matching function for call to 'max(long int&, int&)'
   13 |     a_max = max(a[i],a_max);
      |             ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:13:16: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
   13 |     a_max = max(a[i],a_max);
      |             ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
Language: C++

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

Compiler output:
a.cc:7:26: warning: multi-character character constant [-Wmultichar]
    7 |   if (s % 4 = 0) cout << 'YES' << endl;
      |                          ^~~~~
a.cc:8:16: warning: multi-character character constant [-Wmultichar]
    8 |   else cout << 'NO' << endl;
      |                ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: lvalue required as left operand of assignment
    7 |   if (s % 4 = 0) cout << 'YES' << endl;
      |       ~~^~~
Language: C++

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

Compiler output:
a.cc:7:26: warning: multi-character character constant [-Wmultichar]
    7 |   if (s % 4 = 0) cout << 'YES' << endl;
      |                          ^~~~~
a.cc:8:16: warning: multi-character character constant [-Wmultichar]
    8 |   else cout << 'NO' << endl;
      |                ^~~~
a.cc: In function 'int main()':
a.cc:7:9: error: lvalue required as left operand of assignment
    7 |   if (s % 4 = 0) cout << 'YES' << endl;
      |       ~~^~~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:3: error: 'else' without a previous 'if'
    9 |   else if (a[1] % 4 == 0)
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before 'int'
    6 |   cin >> r >> g >> b
      |                     ^
      |                     ;
    7 |   int a = 10 * g + b;
      |   ~~~                
a.cc:9:6: error: 'a' was not declared in this scope
    9 |   if(a % 4 == 0) {
      |      ^
Language: C++

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

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


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

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before 'a'
    6 |   cin >> r >> g >> b
      |                     ^
      |                     ;
    7 |   a = 10 * g + b;
      |   ~                  
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: expected ';' before 'z'
    6 |   cin >> r >> g >> b
      |                     ^
      |                     ;
    7 |   z = 10 * g + b;
      |   ~                  
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: no match for 'operator=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
    7 |   z = 10 * g + b;
      |                ^
In file included from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected primary-expression before ';' token
    6 |   cin >> r >> g >> b >>;
      |                        ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

  
  

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

rgb = gets.strip.map(&:to_i)

puts rgb % == 0 ? 'YES' : 'NO'

Compiler output:
a.cc:3:19: warning: multi-character character constant [-Wmultichar]
    3 | puts rgb % == 0 ? 'YES' : 'NO'
      |                   ^~~~~
a.cc:3:27: warning: multi-character character constant [-Wmultichar]
    3 | puts rgb % == 0 ? 'YES' : 'NO'
      |                           ^~~~
a.cc:1:1: error: 'rgb' does not name a type
    1 | rgb = gets.strip.map(&:to_i)
      | ^~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <math.h>
#include <algorithm>
#include <set>
#include <iomanip>
#include <stdio.h>
#include <sstream>
#include <string>
using namespace std;
int main(void){
  ing 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:13:3: error: 'ing' was not declared in this scope; did you mean 'int'?
   13 |   ing r,g,b;
      |   ^~~
      |   int
a.cc:14:8: error: 'r' was not declared in this scope
   14 |   cin>>r>>g>>b;
      |        ^
a.cc:14:11: error: 'g' was not declared in this scope
   14 |   cin>>r>>g>>b;
      |           ^
a.cc:14:14: error: 'b' was not declared in this scope
   14 |   cin>>r>>g>>b;
      |              ^
Language: C++

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

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

}


Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include<bits/std++.h>;
      |                       ^
a.cc:1:9: fatal error: bits/std++.h: No such file or directory
    1 | #include<bits/std++.h>;
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

}


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

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

Compiler output:
a.cc:6:3: error: extended character 　 is not valid in an identifier
    6 |   int　d=a*100+b*10+c;
      |   ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'int\U00003000d' was not declared in this scope
    6 |   int　d=a*100+b*10+c;
      |   ^~~~~~
a.cc:7:6: error: 'd' was not declared in this scope
    7 |   if(d%4==0){
      |      ^
Language: C++

#include <iostream.h>
using namespace std;

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

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

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

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

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

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