Language: C++

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

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


Compiler output:
a.cc:2:17: error: expected identifier before ';' token
    2 | using namespace ;
      |                 ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> N >> A  ;
      |   ^~~
      |   std::cin
In file included from /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:13:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   if(A>=N) 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:13:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   if(A>=N) 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:14:26: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   else if(N-500*kaisu>A) 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:14:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   else if(N-500*kaisu>A) cout << "No" << endl;
      |                                          ^~~~
      |                                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:27: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   else if(N-500*kaisu<=A) cout << "Yes" << endl;
      |                           ^~~~
      |                           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |   else if(N-500*kaisu<=A) cout << "Yes" << endl;
      |                                            ^~~~
      |                                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~