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

include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a >> b >> c;
      |     ^~~
a.cc:7:26: error: 'cout' was not declared in this scope
    7 |     if ((10*b+c)%4 == 0) cout << "YES" << endl;
      |                          ^~~~
a.cc:7:43: error: 'endl' was not declared in this scope
    7 |     if ((10*b+c)%4 == 0) cout << "YES" << endl;
      |                                           ^~~~
a.cc:8:10: error: 'cout' was not declared in this scope
    8 |     else cout << "NO" << endl;
      |          ^~~~
a.cc:8:26: error: 'endl' was not declared in this scope
    8 |     else cout << "NO" << endl;
      |                          ^~~~
Language: C++

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

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

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

int main() {
    int N;
    cin >> N;
    string S;
    cin >> S;
    string result;
    int a = 0;
    for(int i = 0;i < N;++i){
      
      if(S[i] == '('){
        a = a + 1;
      }
      
      if(S[i] == ')'){
        if(a > 0){
        a = a - 1;
          std::string result = result + ")";
        }else{
          std::string result = result + "(";
          std::string result = result + ")";
        }
        }
        
    }
  if(a > 0){
   for(a;a > 0;a = a - 1;){
     std::string result = result + ")";
   } 
  }
    cout << result << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:23: error: redeclaration of 'std::string result'
   24 |           std::string result = result + ")";
      |                       ^~~~~~
a.cc:23:23: note: 'std::string result' previously declared here
   23 |           std::string result = result + "(";
      |                       ^~~~~~
a.cc:30:25: error: expected ')' before ';' token
   30 |    for(a;a > 0;a = a - 1;){
      |       ~                 ^
      |                         )
a.cc:30:26: error: expected primary-expression before ')' token
   30 |    for(a;a > 0;a = a - 1;){
      |                          ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:45: error: expected ';' before string constant
   10 | ((b*10 + c)%4 == 0) ? cout << "YES\n" : cout "NO\n";
      |                                             ^~~~~~~
      |                                             ;
Language: C++

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

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

#include<iostream>
using namespace std;

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

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

#include <iostream>

using namespace std

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

}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main()
      | ~~~                 
a.cc: In function 'int main()':
a.cc:16:17: error: expected ';' before '}' token
   16 |         return 0
      |                 ^
      |                 ;
   17 | 
   18 | }
      | ~
Language: C++

#include <iostream>

using namespace std

int main()
{
	int r,g,b,sum;
	cin >> r;
	cin >> g;
	cin >> b;
	if ((10*g+b)%4) 
		cout << true;
	else
		cout << false;
	
	return 0

}

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main()
      | ~~~                 
a.cc: In function 'int main()':
a.cc:16:17: error: expected ';' before '}' token
   16 |         return 0
      |                 ^
      |                 ;
   17 | 
   18 | }
      | ~
Language: C++

#include <iostream>

using namespace std

int main()
{
	int r,g,b,sum;
	cin >> r;
	cin >> g;
	cin >> b;
	if ((10*g+b)%4) 
		cout << true;
	else
		cout << false;
	

}
return 0

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main()
      | ~~~                 
a.cc:18:1: error: expected unqualified-id before 'return'
   18 | return 0
      | ^~~~~~
Language: C

#include <stdio.h>

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

  return(0);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:11:16: warning: missing terminating " character
   11 |         printf("YES);
      |                ^
main.c:11:16: error: missing terminating " character
   11 |         printf("YES);
      |                ^~~~~~
main.c:12:3: error: expected expression before '}' token
   12 |   }
      |   ^
main.c:11:16: error: expected ';' before '}' token
   11 |         printf("YES);
      |                ^
      |                ;
   12 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  char a,b,c;
  cin>>a>>b>>c;
  std::string n =a+b+c;
  int num = atoi(n.c_str());
  if(num%4==0)
  cout << "YES" <<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |   std::string n =a+b+c;
      |                  ~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    6 |   string n =a+b+c;
      |             ~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
    5 |   cin>>a>>b>>c;
      |   ^~~
a.cc:6:17: error: 'c' was not declared in this scope
    6 |   string n =a+b+c;
      |                 ^
Language: C++

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

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

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// スペース区切りの整数の入力
		int b = sc.nextInt();
		int c = sc.nextInt();
		
      	int buff = a*100 + b*10 + c
         if(buff%4==0){
		System.out.println("Yes");
         }else{
           System.out.println("No");
	}
}

Compiler output:
Main.java:11: error: ';' expected
      	int buff = a*100 + b*10 + c
      	                           ^
Main.java:17: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d",&r);
      |         ^~~~~
a.cc:12:9: error: 'printf' was not declared in this scope
   12 |         printf("YES\n");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void)
a.cc:15:9: error: 'printf' was not declared in this scope
   15 |         printf("NO\n");
      |         ^~~~~~
a.cc:15:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

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

#include <iostream>
using namespace std;

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

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

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

#include <iostream>

using namespace std;

int main(){
    int r;
    //rを定義
    int g;
    //gを定義
    int b;
    //bを定義
    cin >> r >> g >>b;
    if(((r * 100 + g * 10 + b) % 4 == 0){
        cout << "YES" << endl;
        //rgbが4の倍数の場合TESと出力
    } else {
        cout << "NO" << endl;
        //それ以外NOと出力
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:41: error: expected ')' before '{' token
   13 |     if(((r * 100 + g * 10 + b) % 4 == 0){
      |       ~                                 ^
      |                                         )
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: 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 (){
int a,b,c,d;
  cin>>a>>b>>c;
  d=(a*100)+(b*10)+c
  if(d%4==0)
  {
    cout<<"YES"<<endl;
  }
 else{
   cout<<"NO"<<endl;
 }

}

Compiler output:
a.cc:4:6: error: expected unqualified-id before ')' token
    4 | int (){
      |      ^
Language: C

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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c:4:19: error: 'r' undeclared here (not in a function)
    4 |     int rgb = 100*r + 10*g + b;
      |                   ^
main.c:4:26: error: 'g' undeclared here (not in a function)
    4 |     int rgb = 100*r + 10*g + b;
      |                          ^
main.c:4:30: error: 'b' undeclared here (not in a function)
    4 |     int rgb = 100*r + 10*g + b;
      |                              ^
main.c:5:5: error: expected identifier or '(' before 'if'
    5 |     if(rgb%4 == 0)
      |     ^~
main.c:7:5: error: expected identifier or '(' before 'else'
    7 |     else
      |     ^~~~
main.c:9:1: error: expected identifier or '(' before 'return'
    9 | return 0;
      | ^~~~~~
main.c:10:1: error: expected identifier or '(' before '}' token
   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" <<endl;
  else
    cout << "NO" <<endl;
  }
    return 0; 
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected '}' before 'else'
    8 |   else
      |   ^~~~
a.cc:6:27: note: to match this '{'
    6 |   if ((r*100+g*10+b)%4==0){
      |                           ^
a.cc: At global scope:
a.cc:11:5: error: expected unqualified-id before 'return'
   11 |     return 0;
      |     ^~~~~~
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;
  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:5:3: error: expected initializer before 'cin'
    5 |   cin >> r >> g >> b;
      |   ^~~
a.cc:6:19: error: 'b' was not declared in this scope
    6 |   if ((r*100+g*10+b)%4==0){
      |                   ^
a.cc:8:3: error: expected '}' before 'else'
    8 |   else
      |   ^~~~
a.cc:6:27: note: to match this '{'
    6 |   if ((r*100+g*10+b)%4==0){
      |                           ^
a.cc: At global scope:
a.cc:11:5: error: expected unqualified-id before 'return'
   11 |     return 0;
      |     ^~~~~~
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;
  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:5:3: error: expected initializer before 'cin'
    5 |   cin >> r >> g >> b;
      |   ^~~
a.cc:6:18: error: 'b' was not declared in this scope
    6 |   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;
  r*=100;
  g*=10;
  r=r+g+b;
  if(r%4==0)
    cout << "YES" <<endl;
  else
    cout << "NO" <<endl;
return 0; 
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
    5 |   cin >> r >> g >> b;
      |   ^~~
a.cc:8:9: error: 'b' was not declared in this scope
    8 |   r=r+g+b;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> r >> g >> b;
      |   ^~~
a.cc:9:9: error: 'b' was not declared in this scope
    9 |   r=r+g+b;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> r >> g >> b;
      |   ^~~
a.cc:9:9: error: 'b' was not declared in this scope
    9 |   r=r+g+b;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> r >> g >> b;
      |   ^~~
a.cc:9:9: error: 'b' was not declared in this scope
    9 |   r=r+g+b;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>> r >> g >> b;
      |   ^~~
a.cc:9:9: error: 'b' was not declared in this scope
    9 |   r=r+g+b;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>r >>g >>b;
      |   ^~~
a.cc:9:9: error: 'b' was not declared in this scope
    9 |   r=r+g+b;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>r >>g >>b;
      |   ^~~
a.cc:9:8: error: 'b' was not declared in this scope
    9 |   r+=g+b;
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'while'
    5 |   while(r>1&&g<9&&b<9){
      |   ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
    5 |   cin>>r >>g >>b;
      |   ^~~
a.cc:8:8: error: 'b' was not declared in this scope
    8 |   r+=g+b;
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
    5 |   cin>>r >>g >>b;
      |   ^~~
a.cc:8:8: error: 'b' was not declared in this scope
    8 |   r+=g+b;
      |        ^
Language: C++

main :: IO()
main = do
    [_,g,b] <- map read . words <$> getLine
    putStrLn $ if (mod (10*g+b) 4 == 0) then "YES" else "NO"


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

main :: IO()
main = do
    [r,g,b] <- map read . words <$> getLine
    putStrLn $ if (mod (10*g+b) 4 == 0) then "YES" else "NO"

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

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


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

#include <bits/stdc++.c>
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;
  return 0;
}

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

  8 int main()
  9 {
 10     int a, b, c;
 11     
 12     cin >> a >> b >> c;
 13     
 14     if((a * 100 + b * 10 + c) % 4) {
 15         puts("NO");
 16     } else {
 17         puts("YES");
 18     }
 19     return 0;
 20 }   
 21 #el

Compiler output:
a.cc:14:5: error: stray '#' in program
   14 |  21 #el
      |     ^
a.cc:1:3: error: expected unqualified-id before numeric constant
    1 |   8 int main()
      |   ^
a.cc:14:2: error: expected unqualified-id before numeric constant
   14 |  21 #el
      |  ^~
Language: C++

771+#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:1:5: error: stray '#' in program
    1 | 771+#include <bits/stdc++.h>
      |     ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 771+#include <bits/stdc++.h>
      | ^~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >>r>>g>>b;
      |   ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout <<"YES"<<endl;
      |     ^~~~
a.cc:7:19: error: 'endl' was not declared in this scope
    7 |     cout <<"YES"<<endl;
      |                   ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout <<"NO"<<endl;
      |     ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
   10 |     cout <<"NO"<<endl;
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: unable to find numeric literal operator 'operator""g'
    8 |   int c = 10g + b;
      |           ^~~
a.cc:9:31: error: 'end1' was not declared in this scope
    9 |   if(c % 4 == 0)cout <<"YES"<<end1;
      |                               ^~~~
a.cc:10:20: error: 'end1' was not declared in this scope
   10 |   else cout<<"NO"<<end1
      |                    ^~~~
Language: C++

#include stdio.h

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

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include stdio.h
      |          ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> g>>b;
      |   ^~~
a.cc:7:11: error: unable to find numeric literal operator 'operator""g'
    7 |   int c = 10g + b;
      |           ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |   if(c % 4 == 0)cout <<"YES"<<end1;
      |                 ^~~~
a.cc:8:31: error: 'end1' was not declared in this scope
    8 |   if(c % 4 == 0)cout <<"YES"<<end1;
      |                               ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout<<"NO"<<end1
      |        ^~~~
a.cc:9:20: error: 'end1' was not declared in this scope
    9 |   else cout<<"NO"<<end1
      |                    ^~~~
Language: C++

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

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

Compiler output:
main.c: In function 'main':
main.c:9:6: error: expected '}' before 'else'
    9 |      else{
      |      ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:6: error: expected '}' before 'else'
    9 |      else{
      |      ^~~~
Language: Java

    import java.util.Scanner;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Collections;
     
    class Main {
      	public static void main(string args[]) {
          
          Scanner std = new Scanner(System.in);
          List<Integer> list = new ArrayList<>();
          
          int N = std.nextInt();
          for(int i = 0; i < N; i++) {
          	int a = std.nextInt();
            list.add(a);
          }
          
          Integer x = Collections.max(list);
          Integer y = Collections.min(list);
            
        }
    }

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
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;
  cin >> r >> g >> b;
  if((10*g+b)%4==0){
    cout << "YES" << endl;
  }else if{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected '(' before '{' token
    9 |   }else if{
      |           ^
      |           (
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 if{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc: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:22: error: 'endl' was not declared in this scope
    8 |     cout << "YES" << endl;
      |                      ^~~~
a.cc:9:11: error: expected '(' before '{' token
    9 |   }else if{
      |           ^
      |           (
Language: C++

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

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

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

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc:4:5: error: expected unqualified-id before ')' token
    4 | int(){
      |     ^
Language: C++

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc:4:5: error: expected unqualified-id before ')' token
    4 | int(){
      |     ^
Language: C++

#include <bits/stdc++.h>
#include<algorithm>
#include<math.h>
using namespace std;
 
template <class T> using V = vector<T>;
 
using ll = long long;
using db = double;
using st = string;
using ch = char;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
 
 
#define FOR(i,a,b) for(ll i=(a);i<(ll)(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>(ll)(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(ll)(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
 
 
ll sum(ll n) {
  ll m=0;
  FOR(i,0,20){
    m+=n%10;
    n/=10;
    if(n==0){
      break;
    }
  }
  return m;
}
 
 
ll combi(ll n,ll m) {
  ll ans=1;
  rFOR(i,n,n-m){
    ans*=i;
  }
  FOR(i,1,m+1){
    ans/=i;
  }
  return ans;
}
 
 
ll lcm(ll a,ll b){
  ll n;
  n=a/gcd(a,b)*b;
  return n;
}
 
 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 
 
signed main() {
  ll a,b,c;
  	ci(a>>b>>c);
  ll ans=10*b+c;
  if(ans%4==0) co("YES")
    elese co("NO")
}

Compiler output:
a.cc: In function 'int main()':
a.cc:80:5: error: 'elese' was not declared in this scope
   80 |     elese co("NO")
      |     ^~~~~
Language: C++

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

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

#include <iostream>
using namespace std;


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

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

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

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

#include <iostream>
using namespace std;


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

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

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int 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:10:11: error: unable to find string literal operator 'operator""NO' with 'const char [1]', 'long unsigned int' arguments
   10 |     cout<<""NO<<endl;
      |           ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int card[3];
	scanf("%d %d %d", &card[0], &card[1], &card[2]);
	
	if (card[] % 4 == 0)
	{
		cout << "YES" << endl;
	}
	else
	{
		cout << "NO" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected primary-expression before ']' token
    9 |         if (card[] % 4 == 0)
      |                  ^
Language: C++


	int a, b, c;
	string s;
	cin >> a >> b >> c;

	int num = a * 100 + b * 10 + c;

	s = num % 4 == 0 ? "YES" : "NO";

	cout << s << endl;

Compiler output:
a.cc:3:9: error: 'string' does not name a type
    3 |         string s;
      |         ^~~~~~
a.cc:4:9: error: 'cin' does not name a type
    4 |         cin >> a >> b >> c;
      |         ^~~
a.cc:8:9: error: 's' does not name a type
    8 |         s = num % 4 == 0 ? "YES" : "NO";
      |         ^
a.cc:10:9: error: 'cout' does not name a type
   10 |         cout << s << endl;
      |         ^~~~
Language: C++

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


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

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

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

#include <bits/stdc++.h>
using namespace std;
 
main{
   int r , g, b ;
   cin << r << g << b ;

   int ans = (r *100 + g * 10 + b )/ 4 ;

   if (ans % 4 ){
      cout << "YES" << endl;
      }
      else
      {
      cout << "NO" < endl;
      }
 }

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

#include <bits/stdc++.h>
using namespace std;
 
 int r , g, b ;
 cin << r << g << b ;
 
 int ans = (r *100 + g * 10 + b )/ 4 ;

 if (ans % 4 ){
 	cout << "YES" << endl;
 	}
 	else
 	{
 	cout << "NO" < endl;
 	}
 }

Compiler output:
a.cc:5:2: error: 'cin' does not name a type
    5 |  cin << r << g << b ;
      |  ^~~
a.cc:9:2: error: expected unqualified-id before 'if'
    9 |  if (ans % 4 ){
      |  ^~
a.cc:12:9: error: expected unqualified-id before 'else'
   12 |         else
      |         ^~~~
a.cc:16:2: error: expected declaration before '}' token
   16 |  }
      |  ^
Language: C++

using namespace std;
 
 int r , g, b ;
 cin << r << g << b ;
 
 int ans == (r *100 + g * 10 + b )/ 4 ;

 if (ans % 4 ){
 	cout << "YES" << endl;
 	}
 	else
 	{
 	cout << "NO" < endl;
 	}
 }

Compiler output:
a.cc:4:2: error: 'cin' does not name a type
    4 |  cin << r << g << b ;
      |  ^~~
a.cc:6:10: error: expected initializer before '==' token
    6 |  int ans == (r *100 + g * 10 + b )/ 4 ;
      |          ^~
a.cc:8:2: error: expected unqualified-id before 'if'
    8 |  if (ans % 4 ){
      |  ^~
a.cc:11:9: error: expected unqualified-id before 'else'
   11 |         else
      |         ^~~~
a.cc:15:2: error: expected declaration before '}' token
   15 |  }
      |  ^
Language: C++

#include <bits/std++.h>
using namespace std;
 
 int r , g, b ;
 cin << r << g << b ;
 
 int ans == (r *100 + g * 10 + b )/ 4 ;

 if (ans % 4 ){
 	cout << "YES" << endl;
 	}
 	else
 	{
 	cout << "NO" < endl;
 	}
 }

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

import java.util.*;

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


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

import java.util.*;

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

Compiler output:
Main.java:9: error: ';' expected
    int ans = r*100  g*10 + b;
                   ^
Main.java:9: error: not a statement
    int ans = r*100  g*10 + b;
                          ^
2 errors
Language: C++

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

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

Compiler output:
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　r=r*100;
      | ^
a.cc: In function 'int main()':
a.cc:9:1: error: '\U00003000r' was not declared in this scope
    9 | 　r=r*100;
      | ^~~
Language: C++

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

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

Compiler output:
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　r=r*100;
      | ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000r' was not declared in this scope
    8 | 　r=r*100;
      | ^~~
Language: C++

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

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

Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　r=r*100;
      | ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000r' was not declared in this scope
    6 | 　r=r*100;
      | ^~~
Language: C++

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

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

Compiler output:
a.cc:11:10: warning: multi-character character constant [-Wmultichar]
   11 |     re = 'YES';
      |          ^~~~~
a.cc:13:10: warning: multi-character character constant [-Wmultichar]
   13 |     re = 'NO';
      |          ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |   str = re;
      |   ^~~
      |   std
a.cc:9:9: error: 're' was not declared in this scope; did you mean 'r'?
    9 |   str = re;
      |         ^~
      |         r
Language: C++

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

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

Compiler output:
a.cc:10:10: warning: multi-character character constant [-Wmultichar]
   10 |     re = 'YES';
      |          ^~~~~
a.cc:12:10: warning: multi-character character constant [-Wmultichar]
   12 |     re = 'NO';
      |          ^~~~
a.cc: In function 'int main()':
a.cc:10:5: error: 're' was not declared in this scope; did you mean 'r'?
   10 |     re = 'YES';
      |     ^~
      |     r
a.cc:12:5: error: 're' was not declared in this scope; did you mean 'r'?
   12 |     re = 'NO';
      |     ^~
      |     r
a.cc:15:11: error: 're' was not declared in this scope; did you mean 'r'?
   15 |   cout << re << endl;
      |           ^~
      |           r
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repb(i, n) for (int i = (int)n; i >= 0; i--)
#define reps(i, m, n) for (int i = (int)m; i < (int)n; i++)
#define repsb(i, m, n) for (int i = (int)m; i >= (int)n; i--)
#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define pb(a) push_back(a)
#define INF 999999999999999999
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
using namespace std;
int main(int argc, char const *argv[])
{
    int a, b, c;
    cin >> a >> b >> c;
    if ((100 * a + 10b + c) % 4 == 0)
    {
        cout << "YES" << endl;
    }
    else
    {
        cout << "NO" << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:17:20: error: unable to find numeric literal operator 'operator""b'
   17 |     if ((100 * a + 10b + c) % 4 == 0)
      |                    ^~~
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";
    else cout <<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'num' was not declared in this scope; did you mean 'enum'?
    7 |   num = 10*g+b
      |   ^~~
      |   enum
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else cout <<"No";
      |     ^~~~
Language: C++

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

int main(){
  int N;
  cin >> N;
  int R;
  int C[9]={};
  for (int i=0;i<N;i++){
    cin >> R;
    C[R>=3200?8:R/400]++;
  }
  int ans=0;
  for (int i=0;i<8;i++){
    ans+=C[i]>0?1:0;
  }
  cout << ans << " " << ans+c[8] << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: 'c' was not declared in this scope
   17 |   cout << ans << " " << ans+c[8] << endl;
      |                             ^
Language: C++

#include <vector>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <math.h>
#include <list>

using namespace std;

int sum_digit(int n) {
	if (n == 0) return 0;
	else return n % 10 + sum_digit(n / 10);
}
int absolute(int a) {
	if (a < 0) return -a;
	else return a;
}

int main()
{
  int N; cin >> N;
  vector<int> rate_count(9,0);
  
  for(int i = 0; i < N; i++){
  	int x; cin >> x;
    int rate = x / 400;
    if(rate > 8) rate = 8;
    rate_count.at(rate)++;
  }
  
  int min = 0 , max = 0;
  for(int i = 0; i < 8 ; i++){
  	if(rate_count.at(i) != 0) min++;
  }
  
  int upper3200 = rate_count.at(8);
  max = min;
  	while(upper3200 > 0 && max < 8){
      max++;
      upper3200--;
    }
  if(min == 0) min++;
  
  cout << max(min,1) << ' ' << max << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:14: error: 'max' cannot be used as a function
   44 |   cout << max(min,1) << ' ' << max << endl;
      |           ~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namepace 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:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace 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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:8:5: 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:20: 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/istream:41,
                 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:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:10:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     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;
  ans = 100 * r + 10 * g + b;
  if (ans % 4)cout<<"YES"<<endl;
  else cout <<"NO"<<endl;
}

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

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'if'
    8 |   a=c*10+b
      |           ^
      |           ;
    9 |     if(a%4==0){
      |     ~~     
a.cc:12:5: 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;
  n = 100*r + 10 * g + b;
  if (n%4==0){
    cout <<"YES"<<endl;
  }
  else {
    cout <<"NO"<<endl;
  }
}

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: lvalue required as left operand of assignment
    6 |   if((g*10+b)%4=0) cout<<"YES"<<endl;
      |      ~~~~~~~~^~
a.cc:7:24: error: expected ';' before 'return'
    7 |   else cout<<"NO"<<endl
      |                        ^
      |                        ;
    8 |         return 0;
      |         ~~~~~~
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()
      | ^~~~~