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 / A == N && A != 0) {
    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 {
      |   ^~~~
a.cc:8:29: note: to match this '{'
    8 |   if (N / A == N && A != 0) {
      |                             ^
Language: C++

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

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


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

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

int main(){
  int a, b;
  cin >> a;
  cin >> b;
  
  if(a % 500 <= b)
  {
    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 <algorithm>
 #include <iostream>
 #include <vector>
 using namespace std;
 typedef long long ll;
 const int INF = 1 << 30;
 const ll INFll = 1ll << 60;
 
 int main() {
   int n,a;
   cin >> n >> a;
   if(A >= n%500){
 	cout << "Yes" << endl;
   }else {
     cout << "No" << endl;
   }
 	return 0;
 }


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:37: error: expected ';' before 'endl'
    8 |   else if(ans - a <=0) cout << "Yes" endl;
      |                                     ^~~~~
      |                                     ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'a'
    5 |   cin a >> N;
      |      ^~
      |      ;
a.cc:8:37: error: expected ';' before 'endl'
    8 |   else if(ans - a <=0) cout << "Yes" endl;
      |                                     ^~~~~
      |                                     ;
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

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:6: error: 'n' was not declared in this scope
   11 |   if(n/500 <= A)cout << "Yes" << endl;
      |      ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

int main() {
  int N,A;
  con >> 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: 'con' was not declared in this scope; did you mean 'cos'?
   10 |   con >> N >> A;
      |   ^~~
      |   cos
a.cc:11:6: error: 'n' was not declared in this scope
   11 |   if(n/500 <= A)cout << "Yes" << endl;
      |      ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

int main() {
  int N,A;
  con >> N >> A;
  if(n/500 <= A)cout << "Yes" << emdl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'con' was not declared in this scope; did you mean 'cos'?
   10 |   con >> N >> A;
      |   ^~~
      |   cos
a.cc:11:6: error: 'n' was not declared in this scope
   11 |   if(n/500 <= A)cout << "Yes" << emdl;
      |      ^
a.cc:11:34: error: 'emdl' was not declared in this scope
   11 |   if(n/500 <= A)cout << "Yes" << emdl;
      |                                  ^~~~
Language: C++

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

int main()
{
  int N=0,A=0:
  
  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:14: error: expected ',' or ';' before ':' token
    6 |   int N=0,A=0:
      |              ^
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:12:26: error: expected primary-expression before ']' token
   12 |     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:6:3: error: expected initializer before 'cin'
    6 |   cin >> N;
      |   ^~~
a.cc:7:10: error: 'A' was not declared in this scope
    7 |   cin >> A;
      |          ^
a.cc:12:26: error: expected primary-expression before ']' token
   12 |     cout << "No" << endl;]
      |                          ^
Language: C++

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

int main(){
  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:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N;
      |          ^
a.cc:6:10: error: 'A' was not declared in this scope
    6 |   cin >> A;
      |          ^
a.cc:11:26: error: expected primary-expression before ']' token
   11 |     cout << "No" << endl;]
      |                          ^
Language: C++

#include bitsstdc++.h
using namespace std;

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

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include bitsstdc++.h
      |          ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include bitsstdc++.h
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N;
      |          ^
a.cc:6:10: error: 'A' was not declared in this scope
    6 |   cin >> A;
      |          ^
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include bitsstdc++.h
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "No" << endl;]
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:21: error: 'endl' was not declared in this scope
   11 |     cout << "No" << endl;]
      |                     ^~~~
a.cc:11:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:11:26: error: expected primary-expression before ']' token
   11 |     cout << "No" << endl;]
      |                          ^
Language: C++

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

int main() {
  int N,A;
  cin>>N;
  vector<int>card(N);
  for(int i=0; i<N; i++){
    cin>>card.at(i);
  }
  for(int i=0; i<N; i++){
    for(int j=i+1; j<N; j++){
      if(card.at(i)<card.at(j)){
        swap(card.at(i),card.at(j))
      }
    }
  }
  for(int i=0; i<N; i+=2){
    A+=card.at(i);
  } 
  cout<<A<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:36: error: expected ';' before '}' token
   14 |         swap(card.at(i),card.at(j))
      |                                    ^
      |                                    ;
   15 |       }
      |       ~
Language: C++

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

int main(){
  int N,A;
  cin >> N >> A;
  if (N-A / 500){
    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: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;
  
  if ( ( N % 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: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: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;
  
  if(N % 500 == A && A <= 1000){
    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>
using namespace std;

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

Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　cin >> N >> A;
      | ^
a.cc: In function 'int main()':
a.cc:7:1: error: '\U00003000cin' was not declared in this scope
    7 | 　cin >> N >> A;
      | ^~~~~
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:7:13: error: expected primary-expression before '<' token
    7 |   if (a%500=<b){
      |             ^
Language: C++

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:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> n >> a;
      |     ^~~
a.cc:4:20: error: 'A' was not declared in this scope
    4 |     if (n % 500 <= A) cout << "YES" << endl;
      |                    ^
a.cc:4:23: error: 'cout' was not declared in this scope
    4 |     if (n % 500 <= A) cout << "YES" << endl;
      |                       ^~~~
a.cc:4:40: error: 'endl' was not declared in this scope
    4 |     if (n % 500 <= A) cout << "YES" << endl;
      |                                        ^~~~
a.cc:5:10: error: 'cout' was not declared in this scope
    5 |     else cout << "NO" << endl;
      |          ^~~~
a.cc:5:26: error: 'endl' was not declared in this scope
    5 |     else cout << "NO" << endl;
      |                          ^~~~
Language: C++

  1 #include <bits/stdc++.h>
  2 using namespace std;
  3 int main(){
  4   int n,a;
  5   cin >> n;
  6   cin >> a;
  7   n = n % 500;
  8   if(n - a < 0) cout << "Yes\n";
  9   else cout << "No\n";
 10 }

Compiler output:
a.cc:1:5: error: stray '#' in program
    1 |   1 #include <bits/stdc++.h>
      |     ^
a.cc:1:3: error: expected unqualified-id before numeric constant
    1 |   1 #include <bits/stdc++.h>
      |   ^
a.cc:3:3: error: expected unqualified-id before numeric constant
    3 |   3 int main(){
      |   ^
Language: C++

#include<iosteam>
int main

int a,n ;
cin >> a >> n;

if(a%500==0)
  cout << "yes" endl;
if else (a%500=<n)
  cout << "yes" endl;
else cout << "no" endl;

return 0;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '==' token
    5 |   int b==n%500;
      |        ^~
a.cc:7:6: error: 'b' was not declared in this scope
    7 |   if(b<a){
      |      ^
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: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:9:11: error: expected primary-expression before '=' token
    9 |   if (c <== b){
      |           ^
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:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl
using namespace std;
int main(){
  int x, a, b;
  cin >> x >> a;
  
  if(n%500<=a) co("Yes");
  else co("No");
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'n' was not declared in this scope
    9 |   if(n%500<=a) co("Yes");
      |      ^
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:
  } else {
    cout << "No" << endl:
  }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> N >> A;
      |   ^~~
a.cc:9:7: error: 'A' was not declared in this scope
    9 |   if (A < y){
      |       ^
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: 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;
  int 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:10:10: error: expected primary-expression before '<' token
   10 |   if (x =< A){
      |          ^
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N, A, b;
    N = sc.nextInt();
    A = sc.nextInt();
    
    b = N % A;
    
    if (b <= A){
      System.out.println("Yes")
    }else{
      System.out.println("No")
    }  
  }
}


Compiler output:
Main.java:13: error: ';' expected
      System.out.println("Yes")
                               ^
Main.java:15: error: ';' expected
      System.out.println("No")
                              ^
2 errors
Language: C++

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

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

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    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>>N>>A>>endl;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(bits/stdc++.h)
a.cc:6:14: error: 'endl' was not declared in this scope
    6 |   cin>>N>>A>>endl;
      |              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include(bits/stdc++.h)
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ')' before string constant
    8 |   cout << (N % 500 <= A "Yes":"No") << endl;
      |           ~            ^~~~~~
      |                        )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ')' before string constant
    8 |   cout << (N % 500 <= A "Yes":"No") << endl;
      |           ~            ^~~~~~
      |                        )
a.cc:10:11: error: expected ';' before '}' token
   10 |   return 0
      |           ^
      |           ;
   11 | 
   12 |   }
      |   ~
Language: C++

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

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

  cout << (N%500 <= A "Yes":"No") << endl;
  return 0
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ')' before string constant
    9 |   cout << (N%500 <= A "Yes":"No") << endl;
      |           ~          ^~~~~~
      |                      )
a.cc:10:11: error: expected ';' before '}' token
   10 |   return 0
      |           ^
      |           ;
   11 |   }
      |   ~
Language: C++

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

    if (N/500%){
      cout << N/500% << endl;
    }
  else if (A > N/500%){
    cout <<"Yes"<< endl;
    }
   else if (A < N/500%){
    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.cc:9:22: error: expected primary-expression before '<<' token
    9 |       cout << N/500% << endl;
      |                      ^~
a.cc:11:22: error: expected primary-expression before ')' token
   11 |   else if (A > N/500%){
      |                      ^
a.cc:14:23: error: expected primary-expression before ')' token
   14 |    else if (A < N/500%){
      |                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected primary-expression before ')' token
   10 |     else if (N/500%){
      |                    ^
a.cc:11:22: error: expected primary-expression before '<<' token
   11 |       cout << N/500% << endl;
      |                      ^~
a.cc:13:19: error: expected primary-expression before ')' token
   13 |   else (A > N/500%){
      |                   ^
a.cc:16:4: error: 'else' without a previous 'if'
   16 |    else (A < N/500%){
      |    ^~~~
a.cc:16:20: error: expected primary-expression before ')' token
   16 |    else (A < N/500%){
      |                    ^
a.cc:18:5: error: expected '}' at end of input
   18 |    }
      |     ^
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 >> A >> N;
  if (N/500){
    cout << N/500 < <endl;
  }
    else if (N/500%){
      cout << N/500% << endl;
    }
  else (A > N/500%){
    cout <<"Yes"<< endl;
  }
  
   else (A < N/500%){
    cout <<"No"<< endl;
   }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected primary-expression before '<' token
    8 |     cout << N/500 < <endl;
      |                     ^
a.cc:10:20: error: expected primary-expression before ')' token
   10 |     else if (N/500%){
      |                    ^
a.cc:11:22: error: expected primary-expression before '<<' token
   11 |       cout << N/500% << endl;
      |                      ^~
a.cc:13:19: error: expected primary-expression before ')' token
   13 |   else (A > N/500%){
      |                   ^
a.cc:17:4: error: 'else' without a previous 'if'
   17 |    else (A < N/500%){
      |    ^~~~
a.cc:17:20: error: expected primary-expression before ')' token
   17 |    else (A < N/500%){
      |                    ^
Language: C++

int a,b,c;
cin>>a>>b;
c=b*500;
if(c>=a)
{
  cout<<"Yes";
}
else
{
  cout<<"No";
}


Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>>a>>b;
      | ^~~
a.cc:3:1: error: 'c' does not name a type
    3 | c=b*500;
      | ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(c>=a)
      | ^~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else
      | ^~~~
Language: C++

int a,b,c;
cin>>a>>b;
c=b*500;
if(b>=a)
{
  cout<<"Yes";
}
else
{
  cout<<"No";
}

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin>>a>>b;
      | ^~~
a.cc:3:1: error: 'c' does not name a type
    3 | c=b*500;
      | ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(b>=a)
      | ^~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | 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:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
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: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;
  
  if ( N % 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:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected primary-expression before '<' token
   12 |     cout<<<"No"<<endl;
      |           ^
a.cc:12:16: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout<<<"No"<<endl;
      |            ~~~~^~~~~~
Language: C++

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'if'
    8 |   B = N % 500
      |              ^
      |              ;
    9 | 
   10 |   if (B <= A) {
      |   ~~          
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else {
      |   ^~~~
a.cc: At global scope:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:33:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   33 | 提出情報
      | ^~~~~~~~
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 << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

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

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

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

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

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

#include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <limits.h>
#include <cmath>
#include <queue>
#include <map>
#include <iomanip>
#include <random>
#include <fstream>
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.14159265358979323846
#define MOD 1000000007
using namespace std;
using ll = long long;

const int MAX = 1000000;

ll fac[MAX], finv[MAX], inv[MAX];

// テーブルを作る前処理
void COMinit() {
  fac[0] = fac[1] = 1;
  finv[0] = finv[1] = 1;
  inv[1] = 1;
  for (int i = 2; i < MAX; i++){
    fac[i] = fac[i - 1] * i % MOD;
    inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
    finv[i] = finv[i - 1] * inv[i] % MOD;
  }
}

// 二項係数計算
long long COM(int n, int k){
  if (n < k) return 0;
  if (n < 0 || k < 0) return 0;
  return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

ll gcd(ll a, ll b)
{
  ll r;
  while ((r = a % b))
  {
    a = b;
    b = r;
  }
  return b;
}

template <class T> struct cord{
  T x,y;
};

template <class T> double dist(cord<T> a, cord<T> b){
  T dx=a.x-b.x;
  T dy=a.y-b.y;
  return sqrt(dx*dx+dy*dy);
}

int main()
{

  //cout << fixed << setprecision(10);
  
  int n,a; cin >> n >> a;
  if (N%500<=a){cout << "Yes";}
  else {cout << "No";}

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:69:7: error: 'N' was not declared in this scope
   69 |   if (N%500<=a){cout << "Yes";}
      |       ^
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 << "yes" << endl;
  }
  else {
    cout << "no" << endl;
    
}

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

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

int main(){
  int N,A;
  cin>>N>>A;
  if(N%500<=A){
    cout<<"Yes"<<endl;
  }
   else if{
    cout<<"No"<<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() {
  	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:16: error: 'N' was not declared in this scope
    5 |         cin >> N >> A;
      |                ^
a.cc:5:21: error: 'A' was not declared in this scope
    5 |         cin >> N >> A;
      |                     ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before '{' token
   11 |   else (A>b){cout << "No" << endl;
      |             ^
      |             ;
Language: C++

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

int main() {
  int n, a;
  cin >> n >> a;
  int hasuu = n % 500;
  if (hasuu > a) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << 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=0
  int A=0;
  int s;
  
  cin >> N >> A;
  s = (N % 500) - A;
  
  if(s == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'int'
    6 |   int A=0;
      |   ^~~
a.cc:9:15: error: 'A' was not declared in this scope
    9 |   cin >> N >> A;
      |               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'A' was not declared in this scope
    5 |   int N=A=0;
      |         ^
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:10: error: expected primary-expression before '<' token
    6 | if(n%500=<a)cout << "Yes"<<endl;
      |          ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'cout'
   10 |   else(a >= A)
      |               ^
      |               ;
   11 |     cout << "No" << endl;
      |     ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |   if (r <= A) "Yes" << endl;
      |               ~~~~~~^~~~~~~
a.cc: At global scope:
a.cc:15:4: error: expected unqualified-id before 'else'
   15 |   }else{
      |    ^~~~
a.cc:18:3: error: expected unqualified-id before 'return'
   18 |   return 0;
      |   ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

int main() {
  int A, B;
  string op;
  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:10: error: 'N' was not declared in this scope
    7 |   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 << "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:1:10: fatal error: bits/stdc++.h<: No such file or directory
    1 | #include <bits/stdc++.h<>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream.h>;
using namespace std;
 
int main(){
  int num=0;
  cin >> num;
	int a[num];
  for(int i = 0; i < num;i++){
    cin >> a[i];
  }
  a = sort(a);
  
  
  
  int p1Score=0, p2Score=0;
  for(int i = 0; i < num; i++){
    if(i % 2== 0){
    p1Score += a[i]/**/;
    }else{
      p2Score += a[i]/**/;
    }
  }
  cout << p1Score - p2Score/**/ << endl;
}
 
int[] sort(int[] array){
  int maxnum = array[0];
  int N = sizeof(array) / sizeof(array[0]);
  for(int i = 0; i < N;i++){
    for(int j = i; j < N; j++){
    	if(maxnum < array[j]){
        	int tmp = array[i];
          	int maxnum = array[j];
          	array[i] = maxnum;
          	array[j] = tmp;
        }
    }
  }
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 'cin'
    6 |   x = N%500
      |            ^
      |            ;
    7 |   cin>> N>> A>> endl;
      |   ~~~
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: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 a,b;
  cin>>a>>b;
  if (a/100%5 == 0 && a%100 <= b){
    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:14:25: error: expected ';' before '}' token
   14 |     cout << "No" << endl
      |                         ^
      |                         ;
   15 |   }
      |   ~
Language: C++

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before '}' token
    8 | {cout << "No"};
      |              ^
      |              ;
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else if( A >= N%500)
      |   ^~~~
a.cc:10:15: error: expected ';' before '}' token
   10 | {cout << "Yes"};
      |               ^
      |               ;
Language: C++

#include <bits/stdc++.h>


int main() {
    long pay = 0;
    long number_of_one = 0;
    cin >> pay >> number_of_one;
    if (pay % 500 <= number_of_one) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin >> pay >> number_of_one;
      |     ^~~
      |     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:9:9: 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:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout << "Yes" << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:9: 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:25: 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 << "ok" << endl;
  }
  else {
    cout << "no" << endl;
  }

}

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

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

int main() {
  int N,A;

  // 変数aで入力を受け取る
  cin >> N >> A;
  if (N % 500 <=A){
  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:13:13: warning: multi-character character constant [-Wmultichar]
   13 |     cout << 'No' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:12:8: error: expected primary-expression before ')' token
   12 |   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:9:13: error: unable to find string literal operator 'operator""Yes' with 'const char [1]', 'long unsigned int' arguments
    9 |     cout << ""Yes<< 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:22: error: expected ')' before '{' token
    8 |   if ((N % 500 <= A ) {
      |      ~               ^~
      |                      )
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 >> N >> A;
 
  if ( N % 500 =< A) {
    cout << "Yes" << endl;
  } 
  else{
    cout << "No" << endl;
  }
}

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



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

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

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



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

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

int main() {
  int N, A;
  cin >> N >> A;
  
  if (N % 500 == 0 || N % 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:4:12: note: to match this '{'
    4 | int main() {
      |            ^