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

import java.util.Scanner;

public class A088 {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int a = scan.nextInt();
		int work = n % 500;
		if(a > work) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}


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

import java.util.*;
public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a = sc.nextInt();
        if(n % 500 <= a) {
        System.out.println("Yes");
        }
        else{
        	System.out.println("No");
        }
}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '>>' token
    5 |   int a>>n;
      |        ^~
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>n;
      |        ^
a.cc:6:11: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin>>a>>n;
      |           ^
      |           yn
Language: C++

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

int main() {
  int a>>n;
  cin>>a>>n;
  if(n%500<=a? "YES" |"NO");
  cout ans endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '>>' token
    5 |   int a>>n;
      |        ^~
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>n;
      |        ^
a.cc:6:11: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin>>a>>n;
      |           ^
      |           yn
a.cc:7:22: error: invalid operands of types 'const char [4]' and 'const char [3]' to binary 'operator|'
    7 |   if(n%500<=a? "YES" |"NO");
      |                ~~~~~ ^~~~~
      |                |      |
      |                |      const char [3]
      |                const char [4]
a.cc:7:27: error: expected ':' before ')' token
    7 |   if(n%500<=a? "YES" |"NO");
      |                           ^
      |                           :
a.cc:7:27: error: expected primary-expression before ')' token
a.cc:8:7: error: expected ';' before 'ans'
    8 |   cout ans endl;
      |       ^~~~
      |       ;
Language: C++

#include <iostream>
int main() {

  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: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";
      |     ^~~~
      |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "No";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>

using namespace std:

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'if'
    7 |     S = N%500
      |              ^
      |              ;
    8 |     if (S<=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;
  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:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<cstdio> 
using namespace std;
int main() {
    int a, b;
    scanf("%d%d", &a, &b);
    if(n%500<=b) printf("Yes");
    else printf("No");
    printf("\n");
    return 0;
}

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

#include<cstdio> 
using namespace std;
int main() {
    int a, b;
    scanf("%d%d", &a, &b);
    printf(n%500<=b?"Yes":"No");
    printf("\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'n' was not declared in this scope
    6 |     printf(n%500<=b?"Yes":"No");
      |            ^
Language: C++

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


Compiler output:
a.cc:8:20: warning: multi-character character constant [-Wmultichar]
    8 |     if(n<=a){cout<<'Yes'<<endl}
      |                    ^~~~~
a.cc:9:16: warning: multi-character character constant [-Wmultichar]
    9 |     else{cout<<'No'<<endl;}
      |                ^~~~
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before '}' token
    8 |     if(n<=a){cout<<'Yes'<<endl}
      |                               ^
      |                               ;
Language: C++

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


Compiler output:
a.cc:8:20: warning: multi-character character constant [-Wmultichar]
    8 |     if(n<=a){cout<<'Yes'<<endl;return 0;}
      |                    ^~~~~
a.cc:9:16: warning: multi-character character constant [-Wmultichar]
    9 |     else{cout<<'No'<<endl;return 0;}
      |                ^~~~
a.cc: In function 'int main()':
a.cc:7:10: error: expected initializer before '%=' token
    7 |     int n%=500;
      |          ^~
Language: C++

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


Compiler output:
a.cc:8:20: warning: multi-character character constant [-Wmultichar]
    8 |     if(n<=a){cout<<'Yes'<<endl;return 0;}
      |                    ^~~~~
a.cc:9:16: warning: multi-character character constant [-Wmultichar]
    9 |     else{cout<<'No'<<endl;return 0;}
      |                ^~~~
a.cc: In function 'int main()':
a.cc:7:10: error: expected initializer before '%=' token
    7 |     int n%=-500;
      |          ^~
Language: C

include<stdio.h>
int main()
{
	int m, a;
	scanf("%d%d", &m, &a);
	while (m - 500>0)
		m = m - 500;
	if (m<a)
	{
		printf("Yes");
	}
	else
		printf("No");
	return 0;
}

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

#inlcude<stdio.h>
int main()
{
   int m,a;
  scanf("%d%d",&m,&a);
  while(m-500>0)
     m=m-500;
  if(m>a)
  {
     printf("Yes");
  }
  else
     printf("no");
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d%d",&m,&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlcude<stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d%d",&m,&a);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:6: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |      printf("Yes");
      |      ^~~~~~
main.c:10:6: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:6: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:6: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:6: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |      printf("no");
      |      ^~~~~~
main.c:13:6: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int s=0,a[6],flag=0;
int arr[3][3];
void suiizhao(int ss,int k)
{
	int i,j;
	if(ss>s||flag)
		return;
	if(k==6)
	{
		if(ss==s)
		{
			for(i=0;i<3;i++)
			{
				for(j=i+1;j<3;j++)
				{
					if(a[i]+a[j+3]!=arr[i][j])
					{
						return;
					}
				}
			}
			flag=1;
			printf("Yes");
		}
		return;
	}
	for(i=0;i<s-ss;i++)
	{
		a[k]=i;
		suizhao(ss+i,k+1);
		if(flag)
			return;
	}
}
int main()
{
	int i,j;
	for(i=0;i<3;i++)
	{
		for(j=0;j<3;j++)
		{
			scanf("%d",&arr[i][j]);
			s+=arr[i][j];
		}
	}
	s/=3;
	suizhao(0,0);
	if(!flag)
		printf("No");
	return 0;
}

Compiler output:
a.cc: In function 'void suiizhao(int, int)':
a.cc:32:17: error: 'suizhao' was not declared in this scope; did you mean 'suiizhao'?
   32 |                 suizhao(ss+i,k+1);
      |                 ^~~~~~~
      |                 suiizhao
a.cc: In function 'int main()':
a.cc:49:9: error: 'suizhao' was not declared in this scope; did you mean 'suiizhao'?
   49 |         suizhao(0,0);
      |         ^~~~~~~
      |         suiizhao
Language: Java

import java.util.Scanner;

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

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

#include <iostream>
using namespace std;

int main() {
    int a, b;　//a=金額,b=1の枚数
    cin >> a >> b;
    int c = a % 500;
    if (c > b) cout << "No" << endl;
    else cout << "Yes" << endl;
}

Compiler output:
a.cc:5:14: error: extended character 　 is not valid in an identifier
    5 |     int a, b;　//a=金額,b=1の枚数
      |              ^
a.cc: In function 'int main()':
a.cc:5:14: error: '\U00003000' was not declared in this scope
    5 |     int a, b;　//a=金額,b=1の枚数
      |              ^~
Language: C++

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

}

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

#include <iostream>
using namespace std;

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



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

#include<iostream>
using namespace std;
 
int main(){
 
	int N;
	cin >> N;
	int a[N];
	for(int i = 0; i < N; i++){
		cin >> a[i];
	}
 
	for(int i = 0; i < N; i++){
		for(int j = 0; j < N; j++){
			if(a[i]  > a[j]){
				int tmp;
				tmp = a[j];
				a[j] = a[i];
				a[i] = tmp;
			}
		}
	}
 
 
 
	int A=0;
	int B = 0;
	for(int i = 0; i < N; i++){
		if(i%2 == 0){
			A = A +a[i];
		}
		else{
			B = B +a[i];
		}
	}
 
	cout << A - B;
 
 
	return 0;
 
}

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

#include <stdio.h>

main()
{
	int a, b;
	scanf("%d %d", &a, %b);
	if(a%500 <== b)
		printf("Yes");
	else
		printf("No");
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:28: error: expected primary-expression before '%' token
    6 |         scanf("%d %d", &a, %b);
      |                            ^
a.cc:7:20: error: expected primary-expression before '=' token
    7 |         if(a%500 <== b)
      |                    ^
Language: C++

using namespace std;

int main(void){
        int zeni;
        int many1;

        cin>>zeni;
        cin>>many1;

        int jo = zeni % 500;
        if(jo > many1){
                cout<<"NO";
        }else{
                cout<<"YES";
        }
        cout<<endl;
        return 0;
}
~              

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>zeni;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout<<"NO";
      |                 ^~~~
a.cc:12:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout<<"YES";
      |                 ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<endl;
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:15: error: 'endl' was not declared in this scope
   16 |         cout<<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc: At global scope:
a.cc:19:2: error: expected class-name at end of input
   19 | ~
      |  ^
Language: C++

#include <iostream>
using namespace std;

int main(void){
        int zeni;
        int many1;

        cin>>zeni;
        cin>>many1;

        int jo = zeni % 500;
        if(jo > many1){
                cout<<"NO";
        }else{
                cout<<"YES";
        }
        cout<<endl;
        return 0;
}
~      

Compiler output:
a.cc:20:2: error: expected class-name at end of input
   20 | ~
      |  ^
Language: C++

int main() {//A問題
	int N;
	int A;
	bool flag;

	cin >> N;
	cin >> 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:9: error: 'cin' was not declared in this scope
    6 |         cin >> N;
      |         ^~~
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:11:34: error: 'endl' was not declared in this scope
   11 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:14:33: error: 'endl' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                                 ^~~~
Language: C++


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

#define rep(i, n) for (int i = 0; i < (n); i++)
#define pb push_back
#define all(v) (v).begin(), (v).end()

typedef long long ll;

template <class T>
in() { T x; cin >> x; return x; }
#define output(e) cout << e << '\n'

#ifdef LOCAL
    #define dr(x) cout << "L" << __LINE__ << ": " << #x << " -> " << x << "\n"
#else
    #define dr(x)
#endif

//
// Implementation
//

int main() {
    int N = in<int>();
    int A = in<int>();
    int nokori = N % 500;
    if (nokori <= A) {
        output("Yes");
    } else {
        output("No");
    }
}


Compiler output:
a.cc:12:1: error: ISO C++ forbids declaration of 'in' with no type [-fpermissive]
   12 | in() { T x; cin >> x; return x; }
      | ^~
Language: C++


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

#define rep(i, n) for (int i = 0; i < (n); i++)
#define pb push_back
#define all(v) (v).begin(), (v).end()

typedef long long ll;

template <class T = int>
in() { T x; cin >> x; return x; }
#define output(e) cout << e << '\n'

#ifdef LOCAL
    #define dr(x) cout << "L" << __LINE__ << ": " << #x << " -> " << x << "\n"
#else
    #define dr(x)
#endif

//
// Implementation
//

int main() {
    int N = in();
    int A = in();
    int nokori = N % 500;
    if (nokori <= A) {
        output("Yes");
    } else {
        output("No");
    }
}


Compiler output:
a.cc:12:1: error: ISO C++ forbids declaration of 'in' with no type [-fpermissive]
   12 | in() { T x; cin >> x; return x; }
      | ^~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(void){
	int N, A[100];
	int i, j;
	cin >> N;
	for (i = 1;i<2)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before ')' token
    8 |         for (i = 1;i<2)
      |                       ^
      |                       ;
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int n;
cin>>n;
int a;
cin>>a;
int main()
{
  if(n%100<=a){cout<<"yes"<<endl;}
  else{cout<<"no"<<endl;}
}


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

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

int main()
{
  int n;
  cin>>n;
  int a;
  cin>>a;
  if(n%1000<=a){cout<<"yes"<<endl;};
  else{cout<<"no"<<endl;};
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{cout<<"no"<<endl;};
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int n;
  cin>>n;
  int a;
  cin>>a;
  if(n%1000=<a){cout<<"yes"<<endl;};
  else{cout<<"no"<<endl;};
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected primary-expression before '<' token
   10 |   if(n%1000=<a){cout<<"yes"<<endl;};
      |             ^
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{cout<<"no"<<endl;};
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n
  cin>>n
  int a
  cin>>a
  if(n%1000=<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:10:3: error: 'else' without a previous 'if'
   10 |   else{cout<<"no"<<endl;}
      |   ^~~~
Language: C

#include< stdio.h >

int main()
  {
  int a, A, N;
  scanf( "%d", &N );
  scanf( "%d", &A );
  if( N%500 <= A )
     {
       printf( "Yes\n" );
    }
  else
    {
    printf( "No\n" );
    }
  return 0;
  }

Compiler output:
main.c:1:9: fatal error:  stdio.h : No such file or directory
    1 | #include< stdio.h >
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: expected primary-expression before ';' token
   13 | if (N <= A)  {cout <<"Yes"<<;}
      |                             ^
a.cc:14:20: error: expected primary-expression before ';' token
   14 | else {cout <<"No"<<;}
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected primary-expression before ';' token
   13 | if (N <= A)  {cout<<"Yes"<<;}
      |                            ^
a.cc:14:19: error: expected primary-expression before ';' token
   14 | else {cout<<"No"<<;}
      |                   ^
Language: C++

#include<iostream>
using namespace std; 
 
 
int main()
{
int N;
int A;
cin >> N;
cin >> A;

N=N%500;
if (N<=A)  {printf("Yes")};
else {printf("No")};
return 0;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: expected ';' before '}' token
   13 | if (N<=A)  {printf("Yes")};
      |                          ^
      |                          ;
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else {printf("No")};
      | ^~~~
a.cc:14:19: error: expected ';' before '}' token
   14 | else {printf("No")};
      |                   ^
      |                   ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'cin'
    9 | cin >> N
      |         ^
      |         ;
   10 | cin >> A
      | ~~~      
a.cc:13:26: error: expected primary-expression before '}' token
   13 | if(N<=A)  {cout <<"No"<< };
      |                          ^
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else {cout <<"Yes"<< };
      | ^~~~
a.cc:14:22: error: expected primary-expression before '}' token
   14 | else {cout <<"Yes"<< };
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'cin'
    9 | cin >> N
      |         ^
      |         ;
   10 | cin >> A
      | ~~~      
a.cc:13:26: error: expected primary-expression before ';' token
   13 | if(N<=A)  {cout <<"No"<< ;}
      |                          ^
a.cc:14:22: error: expected primary-expression before ';' token
   14 | else {cout <<"Yes"<< ;}
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'cin'
    9 | cin >> N
      |         ^
      |         ;
   10 | cin >> A
      | ~~~      
a.cc:13:26: error: expected primary-expression before ';' token
   13 | if(N<=A)  {cout <<"No"<< ;}
      |                          ^
a.cc:14:7: warning: capture of variable 'std::cout' with non-automatic storage duration
   14 | else [cout <<"Yes"<< ;}
      |       ^~~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:11: error: expected ',' before '<<' token
   14 | else [cout <<"Yes"<< ;}
      |           ^~~
      |           ,
a.cc:14:12: error: expected identifier before '<<' token
   14 | else [cout <<"Yes"<< ;}
      |            ^~
a.cc:14:21: error: expected ']' before ';' token
   14 | else [cout <<"Yes"<< ;}
      |                     ^~
      |                     ]
a.cc: In lambda function:
a.cc:14:22: error: expected '{' before ';' token
   14 | else [cout <<"Yes"<< ;}
      |                      ^
a.cc: At global scope:
a.cc:15:1: error: expected unqualified-id before 'return'
   15 | return 0;
      | ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<iostream>
using namespace std; 
 

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'cin'
    9 | cin >> N
      |         ^
      |         ;
   10 | cin >> A
      | ~~~      
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else [cout <<"Yes"<< endl;}
      | ^~~~
a.cc:14:7: warning: capture of variable 'std::cout' with non-automatic storage duration
   14 | else [cout <<"Yes"<< endl;}
      |       ^~~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:11: error: expected ',' before '<<' token
   14 | else [cout <<"Yes"<< endl;}
      |           ^~~
      |           ,
a.cc:14:12: error: expected identifier before '<<' token
   14 | else [cout <<"Yes"<< endl;}
      |            ^~
a.cc:14:26: error: expected ']' before ';' token
   14 | else [cout <<"Yes"<< endl;}
      |                          ^
      |                          ]
a.cc: In lambda function:
a.cc:14:26: error: expected '{' before ';' token
a.cc: At global scope:
a.cc:15:1: error: expected unqualified-id before 'return'
   15 | return 0;
      | ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected ';' before 'if'
   12 | N = N%500
      |          ^
      |          ;
   13 | if (N<=A)  cout <<"Yes"<<
      | ~~
Language: C++

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

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

#include<iostream>
using namespace std; 
 

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'cin'
    9 | cin >> N
      |         ^
      |         ;
   10 | cin >> A
      | ~~~      
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else cout <<"No"<< endl;
      | ^~~~
Language: C++

#include<iostream>
using namespace std; 
 

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'cin'
    9 | cin >> N
      |         ^
      |         ;
   10 | cin >> A
      | ~~~      
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else cout <<"Yes"<< endl;
      | ^~~~
Language: C++

#include<iostream>
using namespace std; 
 

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'cin'
    9 | cin >> N
      |         ^
      |         ;
   10 | cin >> A
      | ~~~      
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else cout <<"Yes"<<;
      | ^~~~
a.cc:14:20: error: expected primary-expression before ';' token
   14 | else cout <<"Yes"<<;
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before 'cin'
    8 | cin >> N
      |         ^
      |         ;
    9 | cin >> A
      | ~~~      
a.cc:13:1: error: 'else' without a previous 'if'
   13 | else cout <<"Yes"<<;
      | ^~~~
a.cc:13:20: error: expected primary-expression before ';' token
   13 | else cout <<"Yes"<<;
      |                    ^
Language: Java

import java.io.*;

public class Main{
  public static void main(String[] args) {
    try {
      String line;
      int n, a;
      BufferedReader reader = new Bufferedreader(new InputStreamreader(System.in));
      line = reader.readLine();
      n = Integer.parseInt(line);
      line = reader.readLine();
      a = Integer.parseInt(line);

      if(n%500 > a){
        System.out.println("No");
      }else{
        System.out.println("Yes");
      }
    }
    catch (Exception e) {

    }
  }
}


Compiler output:
Main.java:8: error: cannot find symbol
      BufferedReader reader = new Bufferedreader(new InputStreamreader(System.in));
                                  ^
  symbol:   class Bufferedreader
  location: class Main
Main.java:8: error: cannot find symbol
      BufferedReader reader = new Bufferedreader(new InputStreamreader(System.in));
                                                     ^
  symbol:   class InputStreamreader
  location: class Main
2 errors
Language: Java

import java.io.*;

public class Main{
  public static void main(String[] args) {
    try {
      String line;
      int n, a;
      BufferedReader reader = new Bufferedreader(new InputStreamreader(System.in));
      line = reader.readLine();
      n = Integer.parseInt(line);
      line = reader.readLine();
      a = Integer.parseInet(line);

      if(n%500 > a){
        System.out.println("No");
      }else{
        System.out.println("Yes");
      }
    }
    catch (Exception e) {

    }
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
      BufferedReader reader = new Bufferedreader(new InputStreamreader(System.in));
                                  ^
  symbol:   class Bufferedreader
  location: class Main
Main.java:8: error: cannot find symbol
      BufferedReader reader = new Bufferedreader(new InputStreamreader(System.in));
                                                     ^
  symbol:   class InputStreamreader
  location: class Main
Main.java:12: error: cannot find symbol
      a = Integer.parseInet(line);
                 ^
  symbol:   method parseInet(String)
  location: class Integer
3 errors
Language: C++

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

hint N;
int A;

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


Compiler output:
a.cc:5:1: error: 'hint' does not name a type; did you mean 'uint'?
    5 | hint N;
      | ^~~~
      | uint
a.cc: In function 'int main()':
a.cc:9:17: error: 'N' was not declared in this scope
    9 |   while (cin >> N >> A) {
      |                 ^
Language: C++

#include <stdio.h>

int main(void){
    int N;
    int A;
    scanf("%d\n%d",&N,&A);
    
    if(N%500=<A)
        printf("Yes\n");
    
    printf("No");
    return 0;
    
    
}

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

n = int(input())
a = int(input())
print('Yes' if n % 500 <= a else 'No')

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
n = int(input())
^
Main.java:3: error: unclosed character literal
print('Yes' if n % 500 <= a else 'No')
      ^
Main.java:3: error: unclosed character literal
print('Yes' if n % 500 <= a else 'No')
          ^
Main.java:3: error: unclosed character literal
print('Yes' if n % 500 <= a else 'No')
                                 ^
Main.java:3: error: unclosed character literal
print('Yes' if n % 500 <= a else 'No')
                                    ^
5 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ';' before ':' token
   10 |         cout << "Yes":
      |                      ^
      |                      ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before '}' token
    8 |         cout << "No"
      |                     ^
      |                     ;
    9 |     } else {
      |     ~                
a.cc:10:22: error: expected ';' before '}' token
   10 |         cout << "Yes"
      |                      ^
      |                      ;
   11 |     }
      |     ~
Language: C++

n = int(input())
a = int(input())

x = n % 500
if a >= x:
    print('yes')
else:
    print('no')



Compiler output:
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('yes')
      |           ^~~~~
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     print('no')
      |           ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG true
// sort(a.begin(), a.end(), std::greater<int>());

/*
std::vector<std::string> split(const std::string &input, char delimiter)
{
    std::istringstream stream(input);

    std::string field;
    std::vector<std::string> result;
    while (std::getline(stream, field, delimiter))
    {
        result.push_back(field);
    }
    return result;
}
*/

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

Compiler output:
a.cc: In function 'int main()':
a.cc:35:14: error: expected '}' at end of input
   35 |     return 0;
      |              ^
a.cc:27:1: note: to match this '{'
   27 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG true
// sort(a.begin(), a.end(), std::greater<int>());

/*
std::vector<std::string> split(const std::string &input, char delimiter)
{
    std::istringstream stream(input);

    std::string field;
    std::vector<std::string> result;
    while (std::getline(stream, field, delimiter))
    {
        result.push_back(field);
    }
    return result;
}
*/

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

Compiler output:
a.cc: In function 'int main()':
a.cc:30:14: error: expected primary-expression before '<' token
   30 |     if(a%500=<b){
      |              ^
a.cc:35:14: error: expected '}' at end of input
   35 |     return 0;
      |              ^
a.cc:27:1: note: to match this '{'
   27 | {
      | ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
 
#include <stdio.h>
 
int main(void){
int N,A,test;
scanf("%d%d",&N,&A);
 
test = N / 500 ;
A = A - test
if (A>=0) {
  printf("Yes");
} else {
  printf("No");
}
     
}


Compiler output:
main.c: In function 'main':
main.c:10:13: error: expected ';' before 'if'
   10 | A = A - test
      |             ^
      |             ;
   11 | if (A>=0) {
      | ~~
Language: C++

#include <algorithm>
#include <numeric>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;

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

	int r = n % 500;
	if (a >= r)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'cin' was not declared in this scope
   16 |         cin >> n >> a;
      |         ^~~
a.cc:10:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    9 | #include <cstdio>
  +++ |+#include <iostream>
   10 | 
a.cc:20:17: error: 'cout' was not declared in this scope
   20 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:20:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:34: error: 'endl' was not declared in this scope
   20 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:10:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    9 | #include <cstdio>
  +++ |+#include <ostream>
   10 | 
a.cc:22:17: error: 'cout' was not declared in this scope
   22 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:22:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:33: error: 'endl' was not declared in this scope
   22 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:22:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespace std;
int main(void){
	int c[3][3],i=0,count=0;

	for(i=0;i<=2;i++){
		cin >> c[i][0];
		cin >> c[i][1];
		cin >> c[i][2];
	}

	i=0;

	for(i=0;i<=2;i++){
		if((c[i][0]-c[(i+1)%3][0]==c[i][0]-c[(i+1)%3][1])&&(c[i][0]-c[(i+1)%3][0]==c[i][2]-c[(i+1)%3][2])){
			count++;
		}
		if((c[0][i]-c[0][(i+1)%3]==c[1][i]-c[1][(i+1)%3])&&(c[0][i]-c[0][(i+1)%3]==c[2][i]-c[2][(i+1)%3])){
			count++;
		}
	}

	if(count==6){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;

}

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

#include<stdio.h>
int main(){
	int A, N;
	
	scanf("%d"&N);
	scanf("%d"&A);

	if((N%500)<=A){
		print("Yes\n");
    }else{
		printf("No\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:19: error: invalid operands to binary & (have 'char *' and 'int')
    5 |         scanf("%d"&N);
      |               ~~~~^
      |               |
      |               char *
main.c:6:19: error: invalid operands to binary & (have 'char *' and 'int')
    6 |         scanf("%d"&A);
      |               ~~~~^
      |               |
      |               char *
main.c:9:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |                 print("Yes\n");
      |                 ^~~~~
      |                 printf
Language: C++

#include<stdio.h>
int main()
{
	unsigned int A, N;
	
	scanf("%d"&N);
	scanf("%d"&A);

	if((N%500)<A){
		print("Yes\n");
	else{
		printf("No\n");
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: invalid operands of types 'const char [3]' and 'unsigned int' to binary 'operator&'
    6 |         scanf("%d"&N);
      |               ~~~~^~
      |               |    |
      |               |    unsigned int
      |               const char [3]
a.cc:7:19: error: invalid operands of types 'const char [3]' and 'unsigned int' to binary 'operator&'
    7 |         scanf("%d"&A);
      |               ~~~~^~
      |               |    |
      |               |    unsigned int
      |               const char [3]
a.cc:10:17: error: 'print' was not declared in this scope; did you mean 'printf'?
   10 |                 print("Yes\n");
      |                 ^~~~~
      |                 printf
a.cc:11:9: error: expected '}' before 'else'
   11 |         else{
      |         ^~~~
a.cc:9:22: note: to match this '{'
    9 |         if((N%500)<A){
      |                      ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: expected ';' before 'N'
    5 | cin N;
      |    ^~
      |    ;
a.cc:7:4: error: expected ';' before 'A'
    7 | cin A;
      |    ^~
      |    ;
a.cc:8:24: error: 'yes' was not declared in this scope
    8 | if(N % 500 <=A) cout <<yes<<endl;
      |                        ^~~
a.cc:9:14: error: 'no' was not declared in this scope
    9 | else cout << no <<endl;
      |              ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: expected ';' before 'N'
    5 | cin N;
      |    ^~
      |    ;
a.cc:7:4: error: expected ';' before 'A'
    7 | cin A;
      |    ^~
      |    ;
a.cc:8:14: error: expected primary-expression before ')' token
    8 | if(N % 500 <=) cout <<yes<<endl;
      |              ^
a.cc:8:23: error: 'yes' was not declared in this scope
    8 | if(N % 500 <=) cout <<yes<<endl;
      |                       ^~~
a.cc:9:14: error: 'no' was not declared in this scope
    9 | else cout << no <<endl;
      |              ^~
Language: Java



import java.util.Scanner;

public class Abc88a {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("n入力");
		int n = sc.nextInt();
		System.out.println("a入力");
		int a = sc.nextInt();

		int b = n % 500;

		if (a >= b) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}


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

#define _USE_MATH_DEFINES
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<math.h>
#include<map>
#include<iomanip>
#include<functional>
#include<limits>
#include <unordered_map>
#include <numeric>
#include <array>
#include <queue>
#include <chrono>
#include <random>
#include <fstream>


using namespace std;
using  ull = unsigned long long int;

#define rep(i,n,m) for(long long int i=n;i<(long long int)(m);i++)
#define INF (1<<29)
#define MD 1000000007

int main() {
	int H, W;
	cin >> H >> W;
	vector<vector<char>>m(H, vector<char>(W));
	vector<vector<bool>>m_b(H, vector<bool>(W, true));
	vector<vector<int>>m_i(H, vector<int>(W, 0));
	int black = 0;

	rep(i, 0, H) {
		rep(j, 0, W) {
			cin >> m[i][j];
			if (m[i][j] == '#') {
				m_b[i][j] = false;
				m_i[i][j] = -1;
				black++;
			}
		}
	}
	
	list<pair<int, int>>q;
	q.push_front(pair<int,int>(0,0));
	pair<int, int>now;
	pair<int, int>next;
	vector<pair<int, int>>arrow(4);
	arrow[0] = pair<int, int>(-1, 0);
	arrow[1] = pair<int, int>(0, 1);
	arrow[2] = pair<int, int>(1, 0);
	arrow[3] = pair<int, int>(0, -1);
	
	while (q.size() != 0) {
		now = q.front();
		q.pop_front();
		
		rep(i, 0, arrow.size()) {
			next.first = now.first + arrow[i].first;
			next.second = now.second + arrow[i].second;
			
			if (next.first < 0 || next.second < 0)continue;
			if (H <= next.first)continue;
			if (W <= next.second)continue;
			if (m_b[next.first][next.second] == false)continue;
			if (m[next.first][next.second] == '#')continue;
			q.push_back(next);
			m_b[next.first][next.second] = false;
			m_i[next.first][next.second] = m_i[now.first][now.second] + 1;
		}
	}
	if (m_i[H - 1][W - 1] == 0)cout << "-1" << endl;
	else cout << H*W - black - (m_i[H - 1][W - 1] + 1) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:9: error: 'list' was not declared in this scope
   46 |         list<pair<int, int>>q;
      |         ^~~~
a.cc:18:1: note: 'std::list' is defined in header '<list>'; this is probably fixable by adding '#include <list>'
   17 | #include <fstream>
  +++ |+#include <list>
   18 | 
a.cc:46:27: error: expected primary-expression before '>' token
   46 |         list<pair<int, int>>q;
      |                           ^~
a.cc:46:29: error: 'q' was not declared in this scope
   46 |         list<pair<int, int>>q;
      |                             ^
Language: C


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


Compiler output:
main.c:2:9: fatal error: bits/stdc++.h: No such file or directory
    2 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main(){
    int N, A, res;
    
    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:8:9: error: lvalue required as left operand of assignment
    8 |     if(N%500 = A) cout << "Yes" << endl;
      |        ~^~~~
Language: C++

import java.util.Scanner;

public class Main {
    public static void run(int N, int A) {
        int ac = N % 500;

        System.out.println(ac <= A ? "Yes" : "No");
    }

    public static void runInput() {
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int A = scanner.nextInt();
        run(N, A);
    }

    public static void main(String args[]) {

    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~