Language: C++

int T;
ll A,B,C,D;

void solve() {
	int i,j,k,l,r,x,y; string s;
	
	cin>>T;
	while(T--) {
		cin>>A>>B>>C>>D;
		
		if(D<B || A<B) {
			cout<<"No"<<endl;
			continue;
		}
		if(C>=B-1) {
			cout<<"Yes"<<endl;
			continue;
		}
		
		D=__gcd(D,B);
		ll L=(((C+1)-A);
		ll R=(((B-1)-A);
		if(R>=L) {
			if(L/D == R/D && L%D) {
				cout<<"Yes"<<endl;
			}
			else {
				cout<<"No"<<endl;
			}
		}
		else {
			cout<<"No"<<endl;
		}
		
		
	}
}

Compiler output:
a.cc:2:1: error: 'll' does not name a type
    2 | ll A,B,C,D;
      | ^~
a.cc: In function 'void solve()':
a.cc:5:28: error: 'string' was not declared in this scope
    5 |         int i,j,k,l,r,x,y; string s;
      |                            ^~~~~~
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>T;
      |         ^~~
a.cc:9:22: error: 'A' was not declared in this scope
    9 |                 cin>>A>>B>>C>>D;
      |                      ^
a.cc:9:25: error: 'B' was not declared in this scope
    9 |                 cin>>A>>B>>C>>D;
      |                         ^
a.cc:9:28: error: 'C' was not declared in this scope
    9 |                 cin>>A>>B>>C>>D;
      |                            ^
a.cc:9:31: error: 'D' was not declared in this scope
    9 |                 cin>>A>>B>>C>>D;
      |                               ^
a.cc:12:25: error: 'cout' was not declared in this scope
   12 |                         cout<<"No"<<endl;
      |                         ^~~~
a.cc:12:37: error: 'endl' was not declared in this scope
   12 |                         cout<<"No"<<endl;
      |                                     ^~~~
a.cc:16:25: error: 'cout' was not declared in this scope
   16 |                         cout<<"Yes"<<endl;
      |                         ^~~~
a.cc:16:38: error: 'endl' was not declared in this scope
   16 |                         cout<<"Yes"<<endl;
      |                                      ^~~~
a.cc:20:19: error: '__gcd' was not declared in this scope
   20 |                 D=__gcd(D,B);
      |                   ^~~~~
a.cc:21:17: error: 'll' was not declared in this scope; did you mean 'l'?
   21 |                 ll L=(((C+1)-A);
      |                 ^~
      |                 l
a.cc:22:19: error: expected ';' before 'R'
   22 |                 ll R=(((B-1)-A);
      |                   ^~
      |                   ;
a.cc:23:20: error: 'R' was not declared in this scope
   23 |                 if(R>=L) {
      |                    ^
a.cc:23:23: error: 'L' was not declared in this scope
   23 |                 if(R>=L) {
      |                       ^
a.cc:25:33: error: 'cout' was not declared in this scope
   25 |                                 cout<<"Yes"<<endl;
      |                                 ^~~~
a.cc:25:46: error: 'endl' was not declared in this scope
   25 |                                 cout<<"Yes"<<endl;
      |                                              ^~~~
a.cc:28:33: error: 'cout' was not declared in this scope
   28 |                                 cout<<"No"<<endl;
      |                                 ^~~~
a.cc:28:45: error: 'endl' was not declared in this scope
   28 |                                 cout<<"No"<<endl;
      |                                             ^~~~
a.cc:32:25: error: 'cout' was not declared in this scope
   32 |                         cout<<"No"<<endl;
      |                         ^~~~
a.cc:32:37: error: 'endl' was not declared in this scope
   32 |                         cout<<"No"<<endl;
      |                                     ^~~~