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

include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A, N;
  cin >> A >> N;
  
  if(N%500<=A){
  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 >> A >> N;
      |   ^~~
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<"Yes"<<endl;
      |   ^~~~
a.cc:9:16: error: 'endl' was not declared in this scope
    9 |   cout<<"Yes"<<endl;
      |                ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<"No"<<endl;
      |   ^~~~
a.cc:12:15: error: 'endl' was not declared in this scope
   12 |   cout<<"No"<<endl;
      |               ^~~~
Language: C++

include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A, N;
  cin >> A >> N;
  
  if(N%500<=A){
  cout<<"Yes"<<endl;
  }
  else{
  cout<<"No"<<endl;
  } 
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> N;
      |   ^~~
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<"Yes"<<endl;
      |   ^~~~
a.cc:9:16: error: 'endl' was not declared in this scope
    9 |   cout<<"Yes"<<endl;
      |                ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<"No"<<endl;
      |   ^~~~
a.cc:12:15: error: 'endl' was not declared in this scope
   12 |   cout<<"No"<<endl;
      |               ^~~~
Language: C++

#include<bits/stdc++>
using namespace std;
int main{
 int A,B,N
   cin<<A<<B<<N;
  
  if(A+500*B==N){
  cout<<"Yes"<<endl;
  }
  else{
  cout<<"No"<<endl;
  }
}

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

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

int main() {
  int N, A;
  cin >>N>>A;
  if (N%500<=A) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
}


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

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

int main() {
  int N,A,D;
  cin >> N >> A;
  
  D=A-(N%500)

  if (D >= 0) {
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'if'
    8 |   D=A-(N%500)
      |              ^
      |              ;
    9 | 
   10 |   if (D >= 0) {
      |   ~~          
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

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

int main() {
  // �����Ƀv���O������ǋL
  int r,s;
  
  cin >> r ;
  cin >> s ;

  if((r%500-s) < 0){
	cout << No << endl;
}else{
	cout << Yes <<endl;
}




  
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n, a;
  cin >> n >> a;
  if (500 + A >= n) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;    
  }
}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'A' was not declared in this scope
    7 |   if (500 + A >= n) {
      |             ^
Language: C++

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

int main  (){
  int n,a;
  cin >> n >>a;
  
  if(n%500<=a){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl:
  }
}
  

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int N,A;
  cin >> N >> A;
  
  int x;
  x = N % 500;
  
  if (X<A){
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'X' was not declared in this scope
   11 |   if (X<A){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  int A;
  cin >> N >> A;
  int x;
  if(if x >= 0 && x <= A && (N-x) % 500 == 0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected primary-expression before 'if'
    8 |   if(if x >= 0 && x <= A && (N-x) % 500 == 0){
      |      ^~
a.cc:8:6: error: expected ')' before 'if'
    8 |   if(if x >= 0 && x <= A && (N-x) % 500 == 0){
      |     ~^~
      |      )
Language: C++

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

int main(){
    int A,N,ans=0;
    cin>>N>>A;
    if(n%500<=A){
        ans=1;
    }
    if(ans==1)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'n' was not declared in this scope
    8 |     if(n%500<=A){
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std
int main() {
 int N,A,amari;
  cin >> N >> A;
  amari = N % 500;
  if (amari <= A){
    cout << "Yes" << endl;
  }
  else {
   cout << "No" << endl;
  }  
}



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

#include <bits/stdc++.h>
using namespace std
int main() {
 int N,A,amari;
  cin >> N >> A;
  amari = N mod 500;
  if (amari <= A){
    cout << "Yes" << endl;
  }
  else {
   cout << "No" << endl;
  }  
}



Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main() {
      | ~~~                 
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 'mod'
    6 |   amari = N mod 500;
      |            ^~~~
      |            ;
Language: C++

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

int main() {
  int N, A;
  cin >> N >> A;
  int amari;
  amari = N % 500;
  if (A => amari){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected primary-expression before '>' token
    9 |   if (A => amari){
      |          ^
Language: C++

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

int main() {
  int N, A, n;
  cin >> N,A;
  if (N-A== 500*n) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }


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

#include <bits/stdc++.h>
using namespace std;
  int main() {
  int N, A;
  cin >> N >> A;
  if (N % 500 => A){
    cout << "yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected primary-expression before '>' token
    6 |   if (N % 500 => A){
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
  int main() {
  int N, A;
  cin >> N >> A >>;
  if (N % 500 => A){
    cout << "yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected primary-expression before ';' token
    5 |   cin >> N >> A >>;
      |                   ^
a.cc:6:16: error: expected primary-expression before '>' token
    6 |   if (N % 500 => A){
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace
  int main() {
  int N, A;
  cin >> N >> A >> endl;
  if (N % 500 => A){
    cout << "yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc:3:3: error: expected identifier before 'int'
    3 |   int main() {
      |   ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 |   int main() {
      |   ~~~           
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> N >> A >> endl;
      |   ^~~
      |   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:5:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cin >> N >> A >> 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:6:16: error: expected primary-expression before '>' token
    6 |   if (N % 500 => A){
      |                ^
a.cc:7:5: 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: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
      |                  ^~~~
Language: C++

// ABC088.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//

#include "pch.h"
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;

int main() {
	//--Question A--
	int N,A;
	cin >>N >> A;
	if (N%500<A)
	{
		cout << "Yes" << endl;
	}
	else 
	{
		cout << "No" << endl;
	}
	//--Question B--
	/*int n;
	cin >> n;
	vector<int> a(n);
	for (int i = 0; i < n; i++)
	{
		cin >> a.at(i);
	}
	sort(a.begin(), a.end());
	int Bob = 0, Alice = 0;
	if (n%2==0)
	{
		for (int i = 0; i < n/2; i++)
		{
			Bob += a[i];
			Alice += a[i + 1];
		}
	}
	else {
		for (int i = 0; i < n / 2; i++) {
			Alice += a[i];
			Bob += a[i + 1];
		}
		Alice += a[n-1];
	}
	cout << abs(Alice- Bob) << endl;*/
	//--Question C--
	/*vector<int> ca(3);
	vector<int> cb(3);
	vector<int> cc(3);
	for (int i = 0; i < 3; i++)
	{
		cin >> ca.at(i);
	}
	for (int i = 0; i < 3; i++)
	{
		cin >> cb.at(i);
	}
	for (int i = 0; i < 3; i++)
	{
		cin >> cc.at(i);
	}
	vector<vector<int>> c = { ca,cb,cc };

	if (c[0][0]-c[0][1]==c[0][1]-c[1][2]&&c[1][0]-c[1][1]==c[1][1]-c[1][2]&&c[2][0]-c[2][1]==c[2][1]-c[2][2]
		&&c[0][0]-c[1][0]==c[1][0]-c[2][0]&&c[0][1]-c[1][1]==c[1][1]-c[2][1]&&c[0][2]-c[1][2]==c[1][2]-c[2][2])
	{
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}*/
    return 0;
}


Compiler output:
a.cc:4:10: fatal error: pch.h: No such file or directory
    4 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int N ,A ;
  string op;
  cin >> N >> A;
  if ( N==37, A==527)
    cout << "Yes" << endl;
  {
  else if ( N==2017, A==217)
    cout << "Yes" << endl;
  {
  else if ( N==2017, A==0)
    cout << "No" << endl;
  {   
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if ( N==2017, A==217)
      |   ^~~~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else if ( N==2017, A==0)
      |   ^~~~
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:13:3: note: to match this '{'
   13 |   {
      |   ^
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:10:3: note: to match this '{'
   10 |   {
      |   ^
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 int main ()
 {
   int N, A;
   cin >> N >> A;
   N = N % 500;
   if (N <= A) {
     cout << "Yes" << endl;
   }
   even {
     cout << "No" << endl;
   }
 }
   
     

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'even' was not declared in this scope
   11 |    even {
      |    ^~~~
Language: C++

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

int main(){
  int n,a;
  cin >> n;
  cin >> a;
  
  int m;
  m = n / 500;
  
  int l;
  l = n - m * 500;
  
  if (l <= a){
    cout << "Yes" <<endls;
  }
  else{
    cout << "No" <<endls;
  }
  
}
  

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

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

int main() {
  int N,A;
  cin >> N >> A;
  if(N % 500 <= A){
	cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
}


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

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

int main() {
  int N, A, x;
  cin >> N >> A;

  if ( N % 500 <= "A") {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if ( N % 500 <= "A") {
      |        ~~~~~~~~^~~~~~
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int N,A;
  cin >> N;
  cin >> A;
  if(N % 500 =< A){
    cout << "Yes";
  }else{
    cout << "No";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected primary-expression before '<' token
    8 |   if(N % 500 =< A){
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int N,A;
  cin >> N;
  cin >> A;
  if(N % 500 == A){
    cout << "Yes";
  }else{
    cout << "No";
}


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

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

int main() {
  int N,A;
  cin>>N>>A;
  C=N%500;
  if (C<=A){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'C' was not declared in this scope
    7 |   C=N%500;
      |   ^
Language: C++

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

int main() {
  int N,A;
  cin>>N>>A;
  C=N%500;
  if (C>=A){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'C' was not declared in this scope
    7 |   C=N%500;
      |   ^
Language: Java

import java.util.Scanner;

public class A088 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A = sc.nextInt();

		if(N % 500 == 0) 
			System.out.println("Yes");
		else {
			N = N % 500;
			if(N < A) 
				System.out.println("Yes");
			else
				System.out.println("No");
		}

		sc.close();
	}
}


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

#include <iostream>
using namespace std;

int main() {
  int a,n;
  cin >> n >> a;
  cout << (n%500=<a?"Yes":"No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected primary-expression before '<' token
    7 |   cout << (n%500=<a?"Yes":"No") << endl;
      |                  ^
Language: C++

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

int main() {
  
  int A , N;
  cin >> A >> N;
  
  if (N % 500 == 0) { cout << "Yes" << endl; return;}
  else if ((N-A) % 500 == 0) {cout << "Yes" << endl; return; }
  else { cout << "No" << endl; return; }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:46: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |   if (N % 500 == 0) { cout << "Yes" << endl; return;}
      |                                              ^~~~~~
a.cc:10:54: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |   else if ((N-A) % 500 == 0) {cout << "Yes" << endl; return; }
      |                                                      ^~~~~~
a.cc:11:32: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 |   else { cout << "No" << endl; return; }
      |                                ^~~~~~
Language: C++

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

int main() {
  
  int A , N;
  cin >> A >> N;
  
  if (N % 500 == 0) cout << "Yes" MM endl;
  else if ((N-A) % 500 == 0) cout << "Yes" << endl;
  else cout << "No" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected ';' before 'MM'
    9 |   if (N % 500 == 0) cout << "Yes" MM endl;
      |                                  ^~~
      |                                  ;
Language: C++

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

int main() {
  
  int A , N;
  cin >> A >> N;
  
  if ((N-A) % 500 = 0) cout << "Yes" << endl;
  else cout << "No" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: lvalue required as left operand of assignment
    9 |   if ((N-A) % 500 = 0) cout << "Yes" << endl;
      |       ~~~~~~^~~~~
Language: C++

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

int main() {
  
  int A , N;
  cin >> A >> N;
  
  if ((N-A) % 500 = 0) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: lvalue required as left operand of assignment
    9 |   if ((N-A) % 500 = 0) cout << "Yes" << endl;
      |       ~~~~~~^~~~~
Language: C++

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

int main() {
 int N, A ;
  cin >> N >> A ;
  
  for(int i = 0; i < 20, i++){
    if (N >= 500)
      N = N - 500;
    else
      break;
  }
  if(N <= A)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before ')' token
    8 |   for(int i = 0; i < 20, i++){
      |                             ^
      |                             ;
Language: C++

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

int main() {
 int N, A ;
  cin >> N >> A ;
  
  for(int i = 0; i < 20, i++){
    if (N >= 500)
      N = N - 500;
    else
      break;
  }
  if(N <= A);
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before ')' token
    8 |   for(int i = 0; i < 20, i++){
      |                             ^
      |                             ;
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else
      |   ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
using llong = long long;
using P = pair<llong, llong>;

#define BE(x) x.begin(), x.end()

const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;

int main(){
	int n,a;
	cin n >> a;

	if(n%500 <= a)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}

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

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

int main() {
  int N,A,syou,amari,;
  cin >> N >> A;
  syou = N / 500;
  amari = N - syou;
  if(A > amari){
    cout << "yes" << endl;
  }
  else{
    cout << "no" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: expected unqualified-id before ';' token
    5 |   int N,A,syou,amari,;
      |                      ^
Language: C++

#include <iostream>

int main(){
    int n, a;
    std::cin >> n >> a;

    if(a >= n - n/500*500{
        std::cout << "Yes" << std::endl;
    }else{
        std::cout << "No" << std::endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before '{' token
    7 |     if(a >= n - n/500*500{
      |                          ^
      |                          ;
a.cc:9:6: error: expected primary-expression before 'else'
    9 |     }else{
      |      ^~~~
a.cc:9:6: error: expected ')' before 'else'
    9 |     }else{
      |      ^~~~
      |      )
a.cc:7:7: note: to match this '('
    7 |     if(a >= n - n/500*500{
      |       ^
Language: C++

#include <bits/stdc++.h>
2.using namespace std;
3. 
4.int main() {
5.  int A, B;
6.  cin>>A>>B;
7.  if(A%500<=B){
8.   cout<<"Yes"<<endl;
9.  }
10.  else{
11.    cout<<"No"<<endl;
12.  }
13.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.using namespace std;
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.
      | ^~
Language: C++

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

int main() {
  int N;
  int A;
  cin >> x;
  cin >> A;
  int x = N % 500;
  
  if (x <= A) {
  cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


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

#include<iostream>
#include<algorithm>
using namespace std;
 
int main(){
  int N,a[100];
  cin >> N;
  for(int i=0;i<N;i++){
    cin >> a[i];
  }
  sort(a,a+N,greater<int>());
  int A=0,B=0;
  for(int i=0;i<N;i++){
    if(i%2==0){
     A+=a[i];}
    else{
     B+=a[i];}
  }
  cout << a-b << endl;
  reutn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: 'b' was not declared in this scope
   19 |   cout << a-b << endl;
      |             ^
a.cc:20:3: error: 'reutn' was not declared in this scope
   20 |   reutn 0;
      |   ^~~~~
Language: C++

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

int main() {
    int N,A;
    int B = N % 500
    cin >> N >> A;
    if (A >= B){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'cin'
    7 |     cin >> N >> A;
      |     ^~~
Language: C++

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

int main() {
  int N, A;
  cin >> N >> A;
  if ( N % <= A) {
    cout << "Yes" << endl;
  }
  if (N % < A) {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before '<=' token
    7 |   if ( N % <= A) {
      |            ^~
a.cc:10:11: error: expected primary-expression before '<' token
   10 |   if (N % < A) {
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,A,a;
  cin >> N >>A;
  a=(N%500)-A;
  if (a<=0){
  cout << Yes << endl;
  }
  else {
    cout << No << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'Yes' was not declared in this scope
    9 |   cout << Yes << endl;
      |           ^~~
a.cc:12:13: error: 'No' was not declared in this scope; did you mean 'N'?
   12 |     cout << No << endl;
      |             ^~
      |             N
Language: C

#include <stdio.h>
int main(void){
  int a,b;
  // a en wo b en bun hikeru.
  scanf("%d",&a);
    scanf("%d",&b);
  (a%500))<=b ? printf("Yes") : printf("No");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: expected ';' before ')' token
    7 |   (a%500))<=b ? printf("Yes") : printf("No");
      |          ^
      |          ;
main.c:7:10: error: expected statement before ')' token
main.c:7:11: error: expected expression before '<=' token
    7 |   (a%500))<=b ? printf("Yes") : printf("No");
      |           ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,N,X;
  cin >> N >> A;
  X = N % 500
  if (X <= A) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'if'
    7 |   X = N % 500
      |              ^
      |              ;
    8 |   if (X <= A) {
      |   ~~          
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else {
      |   ^~~~
Language: C++

#include<bit/stdc++.h>
using namespace std;
 
int main () {
  int N, A;
  cin >> N >> A;
  
  if(N%500<=A){
    cout << "Yes";
  }
  else {
    cout << "No";
  }
}

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

#incliude<bit/stdc++.h>
using namespace std;
 
int main () {
  int N, A;
  cin >> N >> A;
  
  if(N % 500 <= A){
    cout << "Yes";
  }
  else {
    cout << "No";
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incliude; did you mean #include?
    1 | #incliude<bit/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N >> A;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incliude<bit/stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "Yes";
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "No";
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#incliude<bit/stdc++.h>
using namespace std;
 
int main () {
  int N, A;
  cin >> N >> A;
  
  if(N%500<==A){
    cout << "Yes";
  }
  else {
    cout << "No";
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incliude; did you mean #include?
    1 | #incliude<bit/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N >> A;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incliude<bit/stdc++.h>
a.cc:8:13: error: expected primary-expression before '=' token
    8 |   if(N%500<==A){
      |             ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "Yes";
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "No";
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main () {
  int N, A;
  cin >> N >> A;
  
  if(N%500<=A){
    cout << "Yes";
  }
  else {
    cout << "No";
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incliude; did you mean #include?
    1 | #incliude<bit/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N >> A;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incliude<bit/stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "Yes";
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "No";
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<bits/stdc++>
using namespace std;
int main(){
  int N,A;
  cin >>N >>A;
  N = N%5;
  if(N<=A){
    cout <<"YES" <<endl;
  }else{
    cout <<"NO" <<endl;
  }

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

#include<bits/stdc++>
using namespace std;
int main(){
  int N,A;
  cin >>N >>A;
  N=N%5;
  if(N<=A){
    cout <<"YES" endl;
  }else{
    cout <<"NO" <<endl;
  }

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

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

int main() {
  int N, A;
  cin >> N >> A;

 if ( N % 500 =< A ) {
    cout << "Yes" << endl; 
 }
 else {
    cout << "No" << endl;
 }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected primary-expression before '<' token
    8 |  if ( N % 500 =< A ) {
      |                ^
Language: C++

#include<iostreame>
using namespace std;
int main(){
  int a, n;
  cin >> n >> a;
  n %= 500;
  if(n <= a) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,A;
  cin >> N >> A;
}

if (N%500-A < 0){
  cout << 'Yes' << endl;
else {
  cout << 'No' << endl;
}

Compiler output:
a.cc:10:11: warning: multi-character character constant [-Wmultichar]
   10 |   cout << 'Yes' << endl;
      |           ^~~~~
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |   cout << 'No' << endl;
      |           ^~~~
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if (N%500-A < 0){
      | ^~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#define For(i, n) for(int i = 0; i < (n); i ++)
#define Range(container) container.begin(), container.end()
#define Cin(T, x) T x; cin >> x;
#define Cins(T, n, xs) vector<T> xs(n); For(i, n) cin >> xs[i];
#define Cout(val) cout << (val) << "\n";
using namespace std;
using ll = long long;

int main(void){
    Cin(int, n);
    Cin(int, a);
    Cout((n % 500 <= a) : "Yes" : "No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ')' before ':' token
   16 |     Cout((n % 500 <= a) : "Yes" : "No");
      |                         ^
a.cc:9:28: note: in definition of macro 'Cout'
    9 | #define Cout(val) cout << (val) << "\n";
      |                            ^~~
a.cc:9:27: note: to match this '('
    9 | #define Cout(val) cout << (val) << "\n";
      |                           ^
a.cc:16:5: note: in expansion of macro 'Cout'
   16 |     Cout((n % 500 <= a) : "Yes" : "No");
      |     ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  1 <= N <= 10000;
  int A;
  cin >> A;
  0 <= A <= 1000;
  a = N % 500;
  if( a <= A ) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'a' was not declared in this scope
   11 |   a = N % 500;
      |   ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  1 <= N <= 10000;
  int A;
  cin >> A;
  0 <= A <= 1000;
  a = N % 500
  if( a <= A ) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'a' was not declared in this scope
   11 |   a = N % 500
      |   ^
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else {
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
  int N, A;
  cin >> N >> A;
  if (N%500-A => 0){
    cout << "NO" << endl;
  }
  else {
    cout << "Yes" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected primary-expression before '>' token
    6 |   if (N%500-A => 0){
      |                ^
Language: C++

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

int main() {
  int N, A;
  cin >> N >> A;
  int x = N % 500
  if (x <= A) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
    8 |   if (x <= A) {
      |   ^~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else {
      |   ^~~~
Language: C++

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

int main() {
  int N, A;
  cin >> N >>A;
  if(N % 500 <= A){
    cout << "Yes" endl;
  }
  else {
    cout << "No" endl;
  }
}

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

#include<iostream>
int main(){
  int a, b;
  cin >> a >> b;
  
  if(a % 500 >= b){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: 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:22: 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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     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 <bits/stdc++.h>
using namespace std;

int main() {
  int A, N;
  cin >> N;
  cin >> A

  if (N % 500 <= A) {
    cout << 'Yes' << endl;
  }
  else{
    cout << 'No' << endl;
  }
}

Compiler output:
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:13:13: warning: multi-character character constant [-Wmultichar]
   13 |     cout << 'No' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'if'
    7 |   cin >> A
      |           ^
      |           ;
    8 | 
    9 |   if (N % 500 <= A) {
      |   ~~       
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else{
      |   ^~~~
Language: C++

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

int main() {
  int N,A;
  1 <= N <= 10000
  0 <= A <= 1000
  cin >> N >> A;
  if(N % 500 < A) {
  cout << "Yes" << endl;
  }
  else {
  cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before numeric constant
    6 |   1 <= N <= 10000
      |                  ^
      |                  ;
    7 |   0 <= A <= 1000
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int n, a, reminder; 
  cin >> n >> a;
  
  reminder = n % 500;
 
  if(reminder > a)
    cout << "NO";
  
  else
  cout << "YES";
 
  return 0;
}
#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int n, a, reminder; 
  cin >> n >> a;
  
  reminder = n % 500;
 
  if(reminder > a)
    cout << "NO";
  
  else
    cout << "YES";
 
  return 0;
}
提出情報

Compiler output:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~
a.cc:37:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   37 | 提出情報
      | ^~~~~~~~
Language: C++

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

  if(a % 500 <= b){
    cout << "Yes";
  }else[
    cout << "No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: warning: capture of variable 'std::cout' with non-automatic storage duration
   12 |     cout << "No";
      |     ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:9: error: expected ',' before '<<' token
   12 |     cout << "No";
      |         ^~~
      |         ,
a.cc:12:10: error: expected identifier before '<<' token
   12 |     cout << "No";
      |          ^~
a.cc:12:17: error: expected ']' before ';' token
   12 |     cout << "No";
      |                 ^
      |                 ]
a.cc: In lambda function:
a.cc:12:17: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

int main(){
  int n;
  int a;
  cin>>n;
  cin>>a;
  
  if(n%500<=a){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'return0' was not declared in this scope
   15 |   return0;
      |   ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A;
  cin >> N >> A;
  if (N % 500 - A <= 0) {
    cout << "Yes" << endl;
  }
  else
    cout << "No" << endl;
  }
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, A;
  cin >> N >> A;
  if (N % 500 - A <= 0) {
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected '}' before 'else'
    8 |   else
      |   ^~~~
a.cc:6:25: note: to match this '{'
    6 |   if (N % 500 - A <= 0) {
      |                         ^
a.cc: At global scope:
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
    int N,A;
    cin >> N >> A;
    if ((N % 500) =< A) cout << "YES" << endl;
    else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected primary-expression before '<' token
    7 |     if ((N % 500) =< A) cout << "YES" << endl;
      |                    ^
Language: C++

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

int main(){
  int N, A, res;
  cin >> N;
  cin >> A;
  res = N%500;
  if (res < A) {
    cout << No << endl;
  }
  else {
    cout << Yes << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'No' was not declared in this scope; did you mean 'N'?
   10 |     cout << No << endl;
      |             ^~
      |             N
a.cc:13:13: error: 'Yes' was not declared in this scope; did you mean 'res'?
   13 |     cout << Yes << endl;
      |             ^~~
      |             res
Language: Java

iimport java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
Scanner scan=new Scanner(System.in);
int a=scan.nextInt();
int b=scan.nextInt();
if(a-b<=0) {
	System.out.println("Yes");
}
else {
if((a-b)%500==0) {
	System.out.println("Yes");
}
else {
	System.out.println("No");
}
	}
}
	}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
iimport java.util.Scanner;
^
1 error
Language: C++

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

int main() {
  int N, A;
  cin >> N >> A;
  
  if (N % 500 < A || N % 500 == A) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}
    

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

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

int main() {
  int N, A;
  cin >> N, A;
  
  if ((N % 500) = A || (N % 500) < A) {
    cout << "Yes" << endl;
  }
  else ((N % 500) > A) {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: lvalue required as left operand of assignment
    8 |   if ((N % 500) = A || (N % 500) < A) {
      |       ~~~^~~~~~
a.cc:11:23: error: expected ';' before '{' token
   11 |   else ((N % 500) > A) {
      |                       ^~
      |                       ;
Language: C++

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

int main() {
  int N, A;
  cin >> N, A;
  
  if (N % 500 = A || N % 500 < A) {
    cout << "Yes" << endl;
  }
  else (N % 500 > A) {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   if (N % 500 = A || N % 500 < A) {
      |       ~~^~~~~
a.cc:11:21: error: expected ';' before '{' token
   11 |   else (N % 500 > A) {
      |                     ^~
      |                     ;
Language: C++

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

int main() {
  int N, A;
  cin >> N, A;
  
  if (N % 500 = A || N % 500 < A) {
    cout << "Yes" << endl;
  }
  else (N % 500 > A) {
    cout << "No" << endl;
  }
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int a,n;
	cin >> n;
	cin >> a;
  
	if(n%500 <= a){
		cout << "Yes" << endl;
	}else{
    	cout << "No" << endl:
  	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: expected ';' before ':' token
   12 |         cout << "No" << endl:
      |                             ^
      |                             ;
Language: C

#include<stdio.h>

int main(void){
	int n, a;

	scanf("%d %d", &n, &a);
	
	if(n %== a + 500){
		printf("YES\n");
	}else{
		printf("NO\n");
	}

	return 0;

}


Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected expression before '=' token
    8 |         if(n %== a + 500){
      |                ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define repi(i, a, b) for (long long i = (long long)(a); i < (long long)(b); i++)
#define pb push_back
#define all(x) (x).begin(), (x).end()

using namespace std;

int main()
{
    int a, b;
    cin >> a >> b;
    a %= 500;
    if (a = < b)
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected primary-expression before '<' token
   17 |     if (a = < b)
      |             ^
Language: C++

#include <iostream>

int main() {
  int n, a;
  std::cin >> n >> a;

  if ((n - n / 500) >= a) {
    std::cout << Yes << std::endl;
  } else {
    std::cout << No << std::endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'Yes' was not declared in this scope
    8 |     std::cout << Yes << std::endl;
      |                  ^~~
a.cc:10:18: error: 'No' was not declared in this scope
   10 |     std::cout << No << std::endl;
      |                  ^~
Language: C++

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

int main() {
  int N,A;
  cin >> N >> A;
  
  if(N % 500= <=A){
    cout << "Yes" <<endl;
  }
  else cout << "No" <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected primary-expression before '<=' token
    8 |   if(N % 500= <=A){
      |               ^~
Language: C++

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

int main() {
  int N,A;
  cin >> N >> A;
  
  if(N % 500 =<A){
    cout << "Yes" <<endl;
  }
  else cout << "No" <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected primary-expression before '<' token
    8 |   if(N % 500 =<A){
      |               ^
Language: C++

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

int main() {
  int N,A;
  cin >> N >> A;
  
  if(N % 500 <A){
    cout << "Yes" <<endl;
  else cout << "No" <<endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected '}' before 'else'
   10 |   else cout << "No" <<endl;
      |   ^~~~
a.cc:8:17: note: to match this '{'
    8 |   if(N % 500 <A){
      |                 ^
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() {
  int N,A;
  cin >> N >> A;
  
  if(N % 500 <A){
    cout << "Yes" <<
  else cout << "No" <<endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before 'else'
   10 |   else cout << "No" <<endl;
      |   ^~~~
Language: C++

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

int main() {
  int n,a;
  cin >> n;
  cin >> a;

  if (n%500 <= a) {
    cout << "Yes" << endl;
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected '}' before 'else'
   11 |   else {
      |   ^~~~
a.cc:9:19: note: to match this '{'
    9 |   if (n%500 <= a) {
      |                   ^
Language: C++

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

int main() {
	int N,a
	cin >> N >> A;
	if (N % 500 <= A) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'cin'
    6 |         cin >> N >> A;
      |         ^~~
a.cc:7:24: error: 'A' was not declared in this scope
    7 |         if (N % 500 <= A) {
      |                        ^
Language: C++

#include <bits/stdc++>
using namespace std;
int main(){
  int N,A;
  cin >> N >> A;
  N = N%500;
  string answer = "No";
  if(N <= A) answer = "Yes";
  cout << answer << endl;
}

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

#include <bits/stdc++>
using namespace std;
int mian(){
  int N,A;
  cin >> N >> A;
  N = N%500;
  string answer = "No";
  if(N <= A) answer = "Yes";
  cout << answer << endl;
}

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