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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before '<' token
    7 |   if (N =< A || N % 500 == 0|| N % 500 =< A)
      |          ^
a.cc:7:41: error: expected primary-expression before '<' token
    7 |   if (N =< A || N % 500 == 0|| N % 500 =< A)
      |                                         ^
a.cc:9:13: error: 'Yes' was not declared in this scope
    9 |     cout << Yes << endl;
      |             ^~~
a.cc:13:13: error: 'No' was not declared in this scope; did you mean 'N'?
   13 |     cout << No << endl;
      |             ^~
      |             N
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
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 <<endl;
  if (N =< A || N % 500 == 0|| N % 500 =< A)
  {
    cout >> Yes >> endl;
  }
  else
  {
    cout >> No >> endl;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 |   int =N,A;
      |       ^
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin << N << A <<endl;
      |          ^
a.cc:6:15: error: 'A' was not declared in this scope
    6 |   cin << N << A <<endl;
      |               ^
a.cc:7:10: error: expected primary-expression before '<' token
    7 |   if (N =< A || N % 500 == 0|| N % 500 =< A)
      |          ^
a.cc:7:41: error: expected primary-expression before '<' token
    7 |   if (N =< A || N % 500 == 0|| N % 500 =< A)
      |                                         ^
a.cc:9:13: error: 'Yes' was not declared in this scope
    9 |     cout >> Yes >> endl;
      |             ^~~
a.cc:13:13: error: 'No' was not declared in this scope
   13 |     cout >> No >> endl;
      |             ^~
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
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 <<endl;
  if (N =< A || N % 500 == 0|| N % 500 =< A)
  {
    cout >> Yes >> endl;
  }
  else
  {
    cout >> No >> endl;
  }


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int N,A;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin << N << A <<endl;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if (N =< A || N % 500 == 0|| N % 500 =< A)
      |   ^~
a.cc:11:3: error: expected unqualified-id before 'else'
   11 |   else
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int =N,A;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin << N << A <<endl;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if (N =< A || N % 500 == 0|| N % 500 =< A)
      |   ^~
a.cc:11:3: error: expected unqualified-id before 'else'
   11 |   else
      |   ^~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int =N,A;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin << N << A <<endl;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if (N =< A || N % 500 == 0|| N % 500 =< A)
      |   ^~
a.cc:11:3: error: expected unqualified-id before 'else'
   11 |   else
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
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;
  int tmp;
  cin >> N >> A;
  tmp = N % 500
  if (tmp > A) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before 'if'
    8 |   tmp = N % 500
      |                ^
      |                ;
    9 |   if (tmp > A) {
      |   ~~            
a.cc:11:5: error: 'else' without a previous 'if'
   11 |   } else {
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   11 | int main() {
      |         ^~
a.cc:11:9: note: remove parentheses to default-initialize a variable
   11 | int main() {
      |         ^~
      |         --
a.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:11:12: error: a function-definition is not allowed here before '{' token
   11 | int main() {
      |            ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
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;
  int tmp;
  cin >> N >> A;
  if (N % 500 == 0) {
    cout << 'Yes' << endl;
  } else {
    tmp = N % 500
    if (tmp > A) {
      cout << "No" << endl;
    } else {
      cout << "Yes" << endl;
    }
  }
}

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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'b' was not declared in this scope
    5 |   cin >> a >> b >> c;
      |               ^
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before 'if'
    7 |   N %= 500
      |           ^
      |           ;
    8 |   if(N <= 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 a, b, c;
  cin >> a >>b;
  c = a%500;
  if (c<=b){
    cout << "Yes" << endl;
      }
  else {
    cout << "No" << endl;
  }
    

Compiler output:
a.cc: In function 'int main()':
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 >> A;
  int B = N % 500; 
    
  if (N < 500) {
    if (A < N) {
      cout << "No" << endl;
    }
    else {
      cout << "Yes" << endl;
    }
  else {
    if (A < B) { 
      cout << "No" << endl;
    }
    else {
      cout << "Yes" << endl;
    }
  }      
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected '}' before 'else'
   16 |   else if (N => 500) {
      |   ^~~~
a.cc:9:16: note: to match this '{'
    9 |   if (N < 500) {
      |                ^
a.cc:16:15: error: expected primary-expression before '>' token
   16 |   else if (N => 500) {
      |               ^
Language: C++

#include<iostream>
using namespace std:
int main(){
  int a,b;cin>>a>>b;
  if((a%500)>b)cout<<"No"<<endl;
  else cout<<"Yes"<<endl;
}

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

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

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

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

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

int main() {
  int N, A;
  cin >> N >> A;
  if (A - N % 500) >= 0
    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 (A - N % 500) >= 0
      |                    ^~
a.cc:10:13: error: 'No' was not declared in this scope; did you mean 'N'?
   10 |     cout << No << endl;
      |             ^~
      |             N
Language: C++

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

Compiler output:
a.cc:11:17: error: extended character 　 is not valid in an identifier
   11 |         cout << "Yes"　<< endl;
      |                 ^
a.cc: In function 'int main()':
a.cc:11:17: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' arguments
   11 |         cout << "Yes"　<< endl;
      |                 ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
 int N,A;
 cin >> N;
 cin >> A;
 int mod = N % 500;
 if(mod => A){
 	cout << "Yes";
 }else{
 	cout << "No";
 }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected primary-expression before '>' token
    8 |  if(mod => 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;
  }
  return 0;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected initializer before '>>' token
    6 |   int cin >> N >> A;
      |           ^~
Language: C++

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

int N, A;
cin >> N >> A;

int main() {
  if ((N % 500) > A) {
    cout << "no"  << endl;
  }
  else {
    cout << "yes" << endl;
  }
}

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> N >> A;
      | ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected '(' before '{' token
   10 |   else if {
      |           ^
      |           (
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:11:3: error: expected unqualified-id before 'else'
   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:11: error: 'Yes' was not declared in this scope
    8 |     cout<<Yes<<endl;
      |           ^~~
a.cc:11:11: error: 'No' was not declared in this scope; did you mean 'N'?
   11 |     cout<<No<<endl;
      |           ^~
      |           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:8:11: error: 'Yes' was not declared in this scope
    8 |     cout<<Yes<<endl;
      |           ^~~
a.cc:11:11: error: 'No' was not declared in this scope; did you mean 'N'?
   11 |     cout<<No<<endl;
      |           ^~
      |           N
Language: C++

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


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

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

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

#include<bits/stdc++.>
using namespace std;
int main(){
  int A,N;
  0<=A<=1000;
  1<=N<=10000;
  cin>>N>>A;
  if((N-A)%500==0){
    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 A,N;
  0<=A<=1000;
  1<=N<=10000;
  cin>>N>>A;
  if((N-A)%500==0){
    cout<<"Yes"<<endl+
  }
  else{
    cout<<"No"<<endl;
  }
}
    
  

     

  


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before '}' token
   10 |   }
      |   ^
Language: C++

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

     

  

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

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

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


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

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

int main() {
  int A, B, C;
  cin >> A >> B;
  C = A / 500 * 500;
  if (C - A > B)
    cout << "No" << endl;
  else
    cot << "yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'cot' was not declared in this scope; did you mean 'cos'?
   11 |     cot << "yes" << endl;
      |     ^~~
      |     cos
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected '(' before '{' token
    9 |   } else if  {
      |              ^
      |              (
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:9:3: error: expected '}' before 'else'
    9 |   else {
      |   ^~~~
a.cc:7:19: note: to match this '{'
    7 |   if (n%500 <= a) {
      |                   ^
a.cc:11:4: error: expected '}' at end of input
   11 |   }
      |    ^
a.cc:4:13: 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 = N % 500 ; 
  if( D <= A ){
    cout << "yes" << endl;
  }
  	else{
      cout << "no" << endl;
}


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

#include <bits/stdc++.h>
int main(){
  int N,A;
  scanf("%d",&N);
  scanf("%d",&A);
  N %= 500;
  if (N <= A){
    printf("Yes\n");
  } else {
    printf("No\n");
  }
}
#include<stdio.h>
int main(){
  int N,A;
  scanf("%d",&N);
  scanf("%d",&A);
  N %= 500;
  if (N <= A){
    printf("Yes\n");
  } else {
    printf("No\n");
  }
}

Compiler output:
a.cc:14:5: error: redefinition of 'int main()'
   14 | int main(){
      |     ^~~~
a.cc:2:5: note: 'int main()' previously defined here
    2 | int main(){
      |     ^~~~
Language: C++

#include<stdio.h>
int main(){
  int N,A;
  scanf("%d",&N);
  scanf("%d",&A);
  if N % 500 <= A{
    printf("Yes\n");
  } else {
    printf("No\n");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected '(' before 'N'
    6 |   if N % 500 <= A{
      |      ^
      |      (
a.cc:8:5: error: 'else' without a previous 'if'
    8 |   } else {
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'if'
    7 |   B = N % 500
      |              ^
      |              ;
    8 |   if (B > A){
      |   ~~          
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if ( B <= A  ){
      |   ^~~~
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 << "No" << endl;
  }else{
    cout << "Yes" << endl;
  }
}


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

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

int main() {
  int N, A;
  cin >> N >> A;
  if (N == 0) {
    cout << "No" << endl;
  }
  else if (1 <= N <= 10000) {
    cout << "Yes" << 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) { 
    cout << "yes" << endl;
  } else if ( N < 500 ) {
    if ( A >= N ) {
      cout << "yes" << endl;
    } else {
       cout << "no" << endl;  }
    }
  } else {
       int S = N%500;
       if ( A >= S ) {
      cout << "yes" << endl;
      } else {
      cout << "no" << endl;
      }
  }
  cout << "終了" << endl;
}


Compiler output:
a.cc:16:5: error: expected unqualified-id before 'else'
   16 |   } else {
      |     ^~~~
a.cc:24:3: error: 'cout' does not name a type
   24 |   cout << "終了" << endl;
      |   ^~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:28:7: error: statement cannot resolve address of overloaded function
   28 |   endl;
      |       ^
Language: Java

import java.util.Scanner;

public class Test4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int A = sc.nextInt();

        int tmp = N % 500;
        if(N % 500 < A) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}


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

#include <iostream>
using namespace str;

int main() {
    int N, A;
    cin >> N >> A;
    int a = N % 500;
    if (a <= A) cout << "YES" << endl;
    else cout << "NO" << endl;
    return 0;
}

Compiler output:
a.cc:2:17: error: 'str' is not a namespace-name
    2 | using namespace str;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> N >> A;
      |     ^~~
      |     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:8:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     if (a <= A) 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:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     if (a <= A) 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:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     else cout << "NO" << endl;
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     else cout << "NO" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
  int N, A;
  cin >> N >> A;
  int amari = N % 500;
  
  if (amari > A) {
    cout << No << endl;
  }
  else if (amari <= A) {
    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
   13 |     cout << Yes << endl;
      |             ^~~
Language: C++

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

int main() {
  int N, A;
  cin >> N >> A;
  int amari = N % 500;
  
  if (amari > A) {
    cout << No << endl;
  }
  else (amari <= A) {
    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:12:20: error: expected ';' before '{' token
   12 |   else (amari <= A) {
      |                    ^~
      |                    ;
Language: C++

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

int main() {
  int N,A,X,Y;
  cin >> N >> A;
  X = N/500;
  Y = X*500;
  Z = N - Y;
  if (Z <= A) {
    cout << "Yes" << endl;
  }
  if (Z > A) {
    cout << "No" << endl;
  }
}


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

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

int main() {
  int N,A,X,Y;
  cin >> N >> A;
  X = N/500;
  Y = N*500;
  Z = N - Y;
  if (Z <= A) {
    cout << "Yes" << endl;
  }
  if (Z > A) {
    cout << "No" << endl;
  }
}


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

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

int main() {
  int N,A,X,Y;
  cin >> N >> A;
  X = N/500
  Y = N*500
  Z = N - Y
  if (Z <= A) {
    cout << "Yes" << endl;
  }
  if (Z > A) {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'Y'
    7 |   X = N/500
      |            ^
      |            ;
    8 |   Y = N*500
      |   ~         
a.cc:13:7: error: 'Z' was not declared in this scope
   13 |   if (Z > 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:9:13: 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<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<n; i++)
using namespace std;
typedef long long ll;
const int INF=1001001001;

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

}




Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 'a' was not declared in this scope
    9 |         if((n%500) <= a)cout << "Yes" << endl;
      |                       ^
Language: C++

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

int main() {
  int N , A;
  cin >> N >> A
    
  if(N % 500 == 0 && N % 1 == 0) {
    cout << " yes " << endl;
  }
  else(N % 500 == 0 && N % 1 == 0) {
    cout << " no " << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'if'
    6 |   cin >> N >> A
      |                ^
      |                ;
    7 | 
    8 |   if(N % 500 == 0 && N % 1 == 0) {
      |   ~~            
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else(N % 500 == 0 && N % 1 == 0) {
      |   ^~~~
a.cc:11:35: error: expected ';' before '{' token
   11 |   else(N % 500 == 0 && N % 1 == 0) {
      |                                   ^~
      |                                   ;
Language: C++

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

int main() {
  int N , A;
  cin >> N >> A
    
  if(N % 500 == 0 && N % 1 == 0) {
    cout << " yes " << endl;
  }
  else if(N % 500 == 0 && N % 1 == 0) {
    cout << " no " << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'if'
    6 |   cin >> N >> A
      |                ^
      |                ;
    7 | 
    8 |   if(N % 500 == 0 && N % 1 == 0) {
      |   ~~            
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if(N % 500 == 0 && N % 1 == 0) {
      |   ^~~~
Language: C++

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

int main() {
  int N , A;
  cin >> N >> A
    
  if(N % 500 == 0 && N % 1) {
    cout << " yes " << endl;
  }
  else(N % 500 == 0 && N % 1) {
    cout << " no " << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'if'
    6 |   cin >> N >> A
      |                ^
      |                ;
    7 | 
    8 |   if(N % 500 == 0 && N % 1) {
      |   ~~            
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else(N % 500 == 0 && N % 1) {
      |   ^~~~
a.cc:11:30: error: expected ';' before '{' token
   11 |   else(N % 500 == 0 && N % 1) {
      |                              ^~
      |                              ;
Language: C++

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

int main() {
  int N , A;
  cin >> N >> A
    
  if (N % 500 == 0 && N % 1) {
    cout << " yes " << endl;
  }
  else (N % 500 == 0 && N % 1) {
    cout << " no " << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'if'
    6 |   cin >> N >> A
      |                ^
      |                ;
    7 | 
    8 |   if (N % 500 == 0 && N % 1) {
      |   ~~            
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else (N % 500 == 0 && N % 1) {
      |   ^~~~
a.cc:11:31: error: expected ';' before '{' token
   11 |   else (N % 500 == 0 && N % 1) {
      |                               ^~
      |                               ;
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 >> a;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if (a >= b) {
      |   ^~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc: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;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected initializer before '==' token
    8 |   int b == n % 500;
      |         ^~
a.cc:10:12: error: 'b' was not declared in this scope
   10 |   if (a >= b) {
      |            ^
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 A, N;
  cin >> N >> A;
  
  N=N%500;
  if(A=>N) {
     cout<<"Yes"<<endl;
  } else {
     cout<<"No"<<endl;
  }

}

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

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

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

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

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

int main(){
  double n, a;
  if (n < 1 || 10000 < n) {
    cout << "No" << endl;
  }
  else if (a < 0 || 1000 < a) {
    cout << "No" << endl;
  }
  else if ((n - a) % 500 == 0){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |   else if ((n - a) % 500 == 0){
      |            ~~~~~~~ ^ ~~~
      |               |      |
      |               double int
Language: C++

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

int main(){
  int n, a;
  if (n - a \ 500 == 0){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc:6:13: error: stray '\' in program
    6 |   if (n - a \ 500 == 0){
      |             ^
a.cc: In function 'int main()':
a.cc:6:12: error: expected ')' before numeric constant
    6 |   if (n - a \ 500 == 0){
      |      ~     ^  ~~~
      |            )
Language: C++

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


int main() {
    int N, A, B;

    cin >> N ;
    cin >> A ;

    B = N % 500

    if (B == 0) {
        cout << "Yes" << endl;
    }
    else if (B <= A) {
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before 'if'
   12 |     B = N % 500
      |                ^
      |                ;
   13 | 
   14 |     if (B == 0) {
      |     ~~          
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else if (B <= A) {
      |     ^~~~
Language: C++

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

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

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

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

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

Compiler output:
a.cc:4:1: error: expected identifier before 'int'
    4 | int main(){
      | ^~~
a.cc:2:22: error: expected ';' before 'int'
    2 | using namespace std::
      |                      ^
      |                      ;
    3 | 
    4 | int main(){
      | ~~~                   
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 >> N >> A;
      |   ^~~
      |   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: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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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:12:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     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 N , A;
  cin >> N >> A;
  if (N % 500 == 0){
    cout << Yes << endl;
  }else if (N % 500 == A){
    cout << Yes << endl;
  }else{
    cout << No << endl;
  }
}

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> N >> A;
      |   ^~~
      |   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:13: error: 'Yes' was not declared in this scope
    7 |     cout << Yes << endl;
      |             ^~~
a.cc:7:20: 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 << 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:9:13: error: 'Yes' was not declared in this scope
    9 |     cout << Yes << endl;
      |             ^~~
a.cc:9:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << Yes << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << No << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:13: error: 'No' was not declared in this scope; did you mean 'N'?
   11 |     cout << No << endl;
      |             ^~
      |             N
a.cc:11:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     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 N , A;
  cin >> N >> A;
  
  if (N % 500 <= A) {
    cout << "Yes" << endl;
  }
  else if !(N % 500 <= A) {
    cout << "No" << endl;
  }
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected '(' before '!' token
   11 |   else if !(N % 500 <= A) {
      |           ^
      |           (
Language: C++

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

int main(void) {
	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:10:9: error: expected '}' before 'else'
   10 |         else {
      |         ^~~~
a.cc:8:27: note: to match this '{'
    8 |         if (N % 500 <= A) {
      |                           ^
Language: C++

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

int main(void) {
	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:10:9: error: expected '}' before 'else'
   10 |         else {
      |         ^~~~
a.cc:8:27: note: to match this '{'
    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" << endl;
  }
  else () {
  cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected primary-expression before ')' token
   11 |   else () {
      |         ^
Language: C++

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

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



  cout << "終了" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'eout' was not declared in this scope
   13 |         eout << "Yes" << endl;
      |         ^~~~
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
    8 |   if (n%500 <= a) result = "Yes"
      |   ^~
Language: C++

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

int a,b;
  cin >> a >> b;
  if((a%500<=b){
  
  cout << "yes" << endl;
  }
  else{ cout << "no" << endl;}
 
}

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

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

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

  if (N / A == N && A != 0) {
    cout << "Yes" << endl;
  
	cout << "No" << endl;
  
}


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