Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,A;
  cin >> N >> A;
  if(A=N){
    cout << "Yes" << endl;
    }
  else if(A+500=N){
      cout << "Yes" << endl;
  }
  else if(A+1000=N){
    cout << "Yes" << endl;
  }
    else if(A+1500=N){
      cout << "Yes" << endl;
  }
  else if(A+2000=N){
    cout << "Yes" << endl;
  }
    else if(A+2500=N){
      cout << "Yes" << endl;
  }
  else if(A+3000=N){
    cout << "Yes" << endl;
  }
    else if(A+3500=N){
      cout << "Yes" << endl;
  }
  else if(A+4000=N){
    cout << "Yes" << endl;
  }
    else if(A+4500=N){
      cout << "Yes" << endl;
  }
  else if(A+5000=N){
    cout << "Yes" << endl;
  }
    else if(A+5500=N){
      cout << "Yes" << endl;
  }
  else if(A+6000=N){
    cout << "Yes" << endl;
  }
    else if(A+6500=N){
      cout << "Yes" << endl;
  }
  else if(A+7000=N){
    cout << "Yes" << endl;
  }
    else if(A+7500=N){
      cout << "Yes" << endl;
  }
  else if(A+8000=N){
    cout << "Yes" << endl;
  }
      else if(A+8500=N){
      cout << "Yes" << endl;
  }
  else if(A+9000=N){
    cout << "Yes" << endl;
  }
    else if(A+9500=N){
      cout << "Yes" << endl;
  }
  else if(A+10000=N){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: lvalue required as left operand of assignment
   10 |   else if(A+500=N){
      |           ~^~~~
a.cc:13:12: error: lvalue required as left operand of assignment
   13 |   else if(A+1000=N){
      |           ~^~~~~
a.cc:16:14: error: lvalue required as left operand of assignment
   16 |     else if(A+1500=N){
      |             ~^~~~~
a.cc:19:12: error: lvalue required as left operand of assignment
   19 |   else if(A+2000=N){
      |           ~^~~~~
a.cc:22:14: error: lvalue required as left operand of assignment
   22 |     else if(A+2500=N){
      |             ~^~~~~
a.cc:25:12: error: lvalue required as left operand of assignment
   25 |   else if(A+3000=N){
      |           ~^~~~~
a.cc:28:14: error: lvalue required as left operand of assignment
   28 |     else if(A+3500=N){
      |             ~^~~~~
a.cc:31:12: error: lvalue required as left operand of assignment
   31 |   else if(A+4000=N){
      |           ~^~~~~
a.cc:34:14: error: lvalue required as left operand of assignment
   34 |     else if(A+4500=N){
      |             ~^~~~~
a.cc:37:12: error: lvalue required as left operand of assignment
   37 |   else if(A+5000=N){
      |           ~^~~~~
a.cc:40:14: error: lvalue required as left operand of assignment
   40 |     else if(A+5500=N){
      |             ~^~~~~
a.cc:43:12: error: lvalue required as left operand of assignment
   43 |   else if(A+6000=N){
      |           ~^~~~~
a.cc:46:14: error: lvalue required as left operand of assignment
   46 |     else if(A+6500=N){
      |             ~^~~~~
a.cc:49:12: error: lvalue required as left operand of assignment
   49 |   else if(A+7000=N){
      |           ~^~~~~
a.cc:52:14: error: lvalue required as left operand of assignment
   52 |     else if(A+7500=N){
      |             ~^~~~~
a.cc:55:12: error: lvalue required as left operand of assignment
   55 |   else if(A+8000=N){
      |           ~^~~~~
a.cc:58:16: error: lvalue required as left operand of assignment
   58 |       else if(A+8500=N){
      |               ~^~~~~
a.cc:61:12: error: lvalue required as left operand of assignment
   61 |   else if(A+9000=N){
      |           ~^~~~~
a.cc:64:14: error: lvalue required as left operand of assignment
   64 |     else if(A+9500=N){
      |             ~^~~~~
a.cc:67:12: error: lvalue required as left operand of assignment
   67 |   else if(A+10000=N){
      |           ~^~~~~~