Language: C++

#include <algorithm>
#include <bitset>
#include <cstdio>
#include <functional>
#include <initializer_list>
#include <iostream>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <regex>
#include <set>
#include <sstream>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
#define ull unsigned long long
#define ll long long
#define rep(i, a, n) for (int i = (a); i < (int)(n); i++)
#define repc(i, a, n) for (int i = (a); i <= (int)(n); i++)
#define all(t) t.begin(), t.end()
#define rall(t) t.rbegin(), t.rend()
#define mat(type, row, col, init)                                              \
  vector<vector<type>>(row, vector<type>(col, init));
#define Yes(cond) cout << (cond ? "Yes" : "No") << endl;
#define YES(cond) cout << (cond ? "YES" : "NO") << endl;
#define DBG(str) cerr << (str) << endl;
int main() {
  int a, b, x;
  cin >> a >> b >> x;
  if (a <= x && b >= x - a)
    cout << "YES";
  else
    cout << "NO";

  return 0;
}
#include<bitset>
#include<math.h>
#include<limits.h>
#include<iostream>
#include<string>
#include<vector>
#include<cstdio>
#include<sstream>
#include<list>
#include<queue>#include <algorithm>
#include <bitset>
#include <cstdio>
#include <functional>
#include <initializer_list>
#include <iostream>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <regex>
#include <set>
#include <sstream>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
#define ull unsigned long long
#define ll long long
#define rep(i, a, n) for (int i = (a); i < (int)(n); i++)
#define repc(i, a, n) for (int i = (a); i <= (int)(n); i++)
#define all(t) t.begin(), t.end()
#define rall(t) t.rbegin(), t.rend()
#define mat(type, row, col, init)                                              \
  vector<vector<type>>(row, vector<type>(col, init));
#define Yes(cond) cout << (cond ? "Yes" : "No") << endl;
#define YES(cond) cout << (cond ? "YES" : "NO") << endl;
#define DBG(str) cerr << (str) << endl;
int main() {
  int a, b, x;
  cin >> a >> b >> x;
  if (a <= x && b >= x - a)
    cout << "YES";
  else
    cout << "NO";

  return 0;
}

#include<algorithm>
#include<functional>
#include<map>
#include<set>
#include<utility>
#include<initializer_list>
#include<tuple>
#include<regex>
using namespace std;
#define ull unsigned long long
#define ll long long
#define rep(i, a, n) for(int i=(a);i<(int)(n);i++)
#define repc(i, a, n) for(int i=(a);i<=(int)(n);i++)
#define all(t) t.begin(), t.end()
#define rall(t) t.rbegin(), t.rend()
#define mat(type, row, col, init) vector<vector<type>>(row, vector<type>(col, init));
#define Yes(cond) cout<<(cond? "Yes":"No")<<endl;
#define YES(cond) cout<<(cond? "YES":"NO")<<endl;
#define DBG(str) cerr<<(str)<<endl;
int main() {
    int a,b,x;
    cin>>a,b,x;
    if(a<=x)cout<<"YES";
    else cout<<"NO";
	
	return 0;
}





Compiler output:
a.cc:50:16: warning: extra tokens at end of #include directive
   50 | #include<queue>#include <algorithm>
      |                ^
a.cc:102:9: warning: "rep" redefined
  102 | #define rep(i, a, n) for(int i=(a);i<(int)(n);i++)
      |         ^~~
a.cc:71:9: note: this is the location of the previous definition
   71 | #define rep(i, a, n) for (int i = (a); i < (int)(n); i++)
      |         ^~~
a.cc:103:9: warning: "repc" redefined
  103 | #define repc(i, a, n) for(int i=(a);i<=(int)(n);i++)
      |         ^~~~
a.cc:72:9: note: this is the location of the previous definition
   72 | #define repc(i, a, n) for (int i = (a); i <= (int)(n); i++)
      |         ^~~~
a.cc:107:9: warning: "Yes" redefined
  107 | #define Yes(cond) cout<<(cond? "Yes":"No")<<endl;
      |         ^~~
a.cc:77:9: note: this is the location of the previous definition
   77 | #define Yes(cond) cout << (cond ? "Yes" : "No") << endl;
      |         ^~~
a.cc:108:9: warning: "YES" redefined
  108 | #define YES(cond) cout<<(cond? "YES":"NO")<<endl;
      |         ^~~
a.cc:78:9: note: this is the location of the previous definition
   78 | #define YES(cond) cout << (cond ? "YES" : "NO") << endl;
      |         ^~~
a.cc:109:9: warning: "DBG" redefined
  109 | #define DBG(str) cerr<<(str)<<endl;
      |         ^~~
a.cc:79:9: note: this is the location of the previous definition
   79 | #define DBG(str) cerr << (str) << endl;
      |         ^~~
a.cc:80:5: error: redefinition of 'int main()'
   80 | int main() {
      |     ^~~~
a.cc:31:5: note: 'int main()' previously defined here
   31 | int main() {
      |     ^~~~
a.cc:110:5: error: redefinition of 'int main()'
  110 | int main() {
      |     ^~~~
a.cc:31:5: note: 'int main()' previously defined here
   31 | int main() {
      |     ^~~~