Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
using namespace std;
using namespace __gnu_pbds;

template<class T> ostream& operator<<(ostream &os, vector<T> V){os << "[ "; for(auto v  : V) os << v << " "; return os << " ]";}
template<class T> ostream& operator<<(ostream &os, set<T> V){os << "[ "; for(auto v  : V) os << v << " "; return os << " ]";}
template<class T , class R > ostream& operator<<(ostream &os, map<T , R> V){os << "[ "; for(auto v  : V) os << "(" << v.first << ":" << v.second << ")"; return os << " ]";}
template<class T , class R > ostream& operator<<(ostream &os, pair<T , R> V){return os << "(" << V.first << "," << V.second << ")";}

#define cerr cout
#ifdef LOCAL
    #define TRACE
#endif
#ifdef TRACE
    #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
    template <typename Arg1>
    void __f(const char* name, Arg1&& arg1){cerr << "T->";cerr << name << " : " << arg1 << endl;}
    template <typename Arg1, typename... Args>
    void __f(const char* names, Arg1&& arg1, Args&&... args){cerr << "T->";const char* comma = strchr(names + 1, ','); cerr.write(names, comma - names) << " : " << arg1<<" | "; __f(comma+1, args...);}
    clock_t clk=clock();
    #define checktime() cout<<"\nTime Elapsed : "<<float(clock()-clk)/CLOCKS_PER_SEC<<endl
#else
    #define trace(...);
    #define checktime();
#endif
/*---------------------------Defines----------------------*/
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
// find_by_order(k)  returns iterator to kth element starting from 0;
// order_of_key(k) returns count of elements strictly smaller than k;
typedef long long int ll;
typedef long double ld;

#define d0(x) cout<<(x)<<" "
#define d1(x) cout<<(x)<<"\n"
#define d2(x,y) cout<<(x)<<" "<<(y)<<"\n"
#define d3(x,y,z) cout<<(x)<<" "<<(y)<<" "<<(z)<<"\n"
#define d4(a,b,c,d) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<"\n"
#define d5(a,b,c,d,e) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<" "<<(e)<<"\n"
#define d6(a,b,c,d,e,f) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<" "<<(e)<<" "<<(f)<<"\n"
// Use max({a,b,c,d,....}) instead
// #define max3(a,b,c) max(max((a),(b)),(c))
// #define max4(a,b,c,d) max(max((a),(b)),max((c),(d)))

#define pll pair<ll,ll>
#define pb push_back
#define F first
#define S second
#define I insert
#define vll vector<ll>
#define vbl vector<bool>
#define vvll vector<vll>
#define vld vector<ld>
#define vb vector<bool>
#define vc vector<char>
#define vpll vector<pll>
#define all(x) (x).begin(), (x).end()
/*-----------------------Modular Arithmetic---------------*/
inline ll add(ll x,ll y,ll mod){x+=y; if(x>=mod) return x-mod; return x;}
inline ll sub(ll x,ll y,ll mod){x-=y; if(x<0) return x+mod; return x;}
inline ll mul(ll x,ll y,ll mod){return (x*1ll*y)%mod;}
inline ll power(ll x,ll y,ll mod){ll ans=1; while(y){if(y&1) ans=mul(ans,x,mod); x=mul(x,x,mod); y>>=1;} return ans;}
inline ll inv(ll x,ll mod){return power(x,mod-2,mod);}
/*-----------------------------Code begins----------------------------------*/

const ll M1=1e9+7,M2=998244353;
const ll N=1e5+100;

void pre(){
    
}

void solve(){
    ll n,k;cin>>n>>k;
    vll a(n);
    for(ll i=0;i<n;i++){
        cin>>a[i];
    }
    for(ll i=k;i<n;i++){
        if(a[i]>a[i-k]) d1("Yes");
        else d1("No");
    }
}

int main(){
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    cout<<fixed<<setprecision(25);
    pre();
    ll t=1;
    // cin>>t;
    for(ll tt=1;tt<=t;tt++){
        // cout<<"Test Case #"<<tt<<" :\n";
        solve();
    }
    return 0;
}#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
using namespace std;
using namespace __gnu_pbds;

template<class T> ostream& operator<<(ostream &os, vector<T> V){os << "[ "; for(auto v  : V) os << v << " "; return os << " ]";}
template<class T> ostream& operator<<(ostream &os, set<T> V){os << "[ "; for(auto v  : V) os << v << " "; return os << " ]";}
template<class T , class R > ostream& operator<<(ostream &os, map<T , R> V){os << "[ "; for(auto v  : V) os << "(" << v.first << ":" << v.second << ")"; return os << " ]";}
template<class T , class R > ostream& operator<<(ostream &os, pair<T , R> V){return os << "(" << V.first << "," << V.second << ")";}

#define cerr cout
#ifdef LOCAL
    #define TRACE
#endif
#ifdef TRACE
    #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
    template <typename Arg1>
    void __f(const char* name, Arg1&& arg1){cerr << "T->";cerr << name << " : " << arg1 << endl;}
    template <typename Arg1, typename... Args>
    void __f(const char* names, Arg1&& arg1, Args&&... args){cerr << "T->";const char* comma = strchr(names + 1, ','); cerr.write(names, comma - names) << " : " << arg1<<" | "; __f(comma+1, args...);}
    clock_t clk=clock();
    #define checktime() cout<<"\nTime Elapsed : "<<float(clock()-clk)/CLOCKS_PER_SEC<<endl
#else
    #define trace(...);
    #define checktime();
#endif
/*---------------------------Defines----------------------*/
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
// find_by_order(k)  returns iterator to kth element starting from 0;
// order_of_key(k) returns count of elements strictly smaller than k;
typedef long long int ll;
typedef long double ld;

#define d0(x) cout<<(x)<<" "
#define d1(x) cout<<(x)<<"\n"
#define d2(x,y) cout<<(x)<<" "<<(y)<<"\n"
#define d3(x,y,z) cout<<(x)<<" "<<(y)<<" "<<(z)<<"\n"
#define d4(a,b,c,d) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<"\n"
#define d5(a,b,c,d,e) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<" "<<(e)<<"\n"
#define d6(a,b,c,d,e,f) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<" "<<(e)<<" "<<(f)<<"\n"
// Use max({a,b,c,d,....}) instead
// #define max3(a,b,c) max(max((a),(b)),(c))
// #define max4(a,b,c,d) max(max((a),(b)),max((c),(d)))

#define pll pair<ll,ll>
#define pb push_back
#define F first
#define S second
#define I insert
#define vll vector<ll>
#define vbl vector<bool>
#define vvll vector<vll>
#define vld vector<ld>
#define vb vector<bool>
#define vc vector<char>
#define vpll vector<pll>
#define all(x) (x).begin(), (x).end()
/*-----------------------Modular Arithmetic---------------*/
inline ll add(ll x,ll y,ll mod){x+=y; if(x>=mod) return x-mod; return x;}
inline ll sub(ll x,ll y,ll mod){x-=y; if(x<0) return x+mod; return x;}
inline ll mul(ll x,ll y,ll mod){return (x*1ll*y)%mod;}
inline ll power(ll x,ll y,ll mod){ll ans=1; while(y){if(y&1) ans=mul(ans,x,mod); x=mul(x,x,mod); y>>=1;} return ans;}
inline ll inv(ll x,ll mod){return power(x,mod-2,mod);}
/*-----------------------------Code begins----------------------------------*/

const ll M1=1e9+7,M2=998244353;
const ll N=1e5+100;

void pre(){
    
}

void solve(){
    ll n,k;cin>>n>>k;
    vll a(n);
    for(ll i=0;i<n;i++){
        cin>>a[i];
    }
    for(ll i=k;i<n;i++){
        if(a[i]>a[i-k]) d1("Yes");
        else d1("No");
    }
}

int main(){
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    cout<<fixed<<setprecision(25);
    pre();
    ll t=1;
    // cin>>t;
    for(ll tt=1;tt<=t;tt++){
        // cout<<"Test Case #"<<tt<<" :\n";
        solve();
    }
    return 0;
}

Compiler output:
a.cc:97:2: error: stray '#' in program
   97 | }#include <bits/stdc++.h>
      |  ^
a.cc:97:3: error: 'include' does not name a type
   97 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:103:28: error: redefinition of 'template<class T> std::ostream& operator<<(std::ostream&, std::vector<_Tp>)'
  103 | template<class T> ostream& operator<<(ostream &os, vector<T> V){os << "[ "; for(auto v  : V) os << v << " "; return os << " ]";}
      |                            ^~~~~~~~
a.cc:7:28: note: 'template<class T> std::ostream& operator<<(std::ostream&, std::vector<_Tp>)' previously declared here
    7 | template<class T> ostream& operator<<(ostream &os, vector<T> V){os << "[ "; for(auto v  : V) os << v << " "; return os << " ]";}
      |                            ^~~~~~~~
a.cc:104:28: error: redefinition of 'template<class T> std::ostream& operator<<(std::ostream&, std::set<T>)'
  104 | template<class T> ostream& operator<<(ostream &os, set<T> V){os << "[ "; for(auto v  : V) os << v << " "; return os << " ]";}
      |                            ^~~~~~~~
a.cc:8:28: note: 'template<class T> std::ostream& operator<<(std::ostream&, std::set<T>)' previously declared here
    8 | template<class T> ostream& operator<<(ostream &os, set<T> V){os << "[ "; for(auto v  : V) os << v << " "; return os << " ]";}
      |                            ^~~~~~~~
a.cc:105:39: error: redefinition of 'template<class T, class R> std::ostream& operator<<(std::ostream&, std::map<T, R>)'
  105 | template<class T , class R > ostream& operator<<(ostream &os, map<T , R> V){os << "[ "; for(auto v  : V) os << "(" << v.first << ":" << v.second << ")"; return os << " ]";}
      |                                       ^~~~~~~~
a.cc:9:39: note: 'template<class T, class R> std::ostream& operator<<(std::ostream&, std::map<T, R>)' previously declared here
    9 | template<class T , class R > ostream& operator<<(ostream &os, map<T , R> V){os << "[ "; for(auto v  : V) os << "(" << v.first << ":" << v.second << ")"; return os << " ]";}
      |                                       ^~~~~~~~
a.cc:106:39: error: redefinition of 'template<class T, class R> std::ostream& operator<<(std::ostream&, std::pair<_T1, _T2>)'
  106 | template<class T , class R > ostream& operator<<(ostream &os, pair<T , R> V){return os << "(" << V.first << "," << V.second << ")";}
      |                                       ^~~~~~~~
a.cc:10:39: note: 'template<class T, class R> std::ostream& operator<<(std::ostream&, std::pair<_T1, _T2>)' previously declared here
   10 | template<class T , class R > ostream& operator<<(ostream &os, pair<T , R> V){return os << "(" << V.first << "," << V.second << ")";}
      |                                       ^~~~~~~~
a.cc:156:11: error: redefinition of 'll add(ll, ll, ll)'
  156 | inline ll add(ll x,ll y,ll mod){x+=y; if(x>=mod) return x-mod; return x;}
      |           ^~~
a.cc:60:11: note: 'll add(ll, ll, ll)' previously defined here
   60 | inline ll add(ll x,ll y,ll mod){x+=y; if(x>=mod) return x-mod; return x;}
      |           ^~~
a.cc:157:11: error: redefinition of 'll sub(ll, ll, ll)'
  157 | inline ll sub(ll x,ll y,ll mod){x-=y; if(x<0) return x+mod; return x;}
      |           ^~~
a.cc:61:11: note: 'll sub(ll, ll, ll)' previously defined here
   61 | inline ll sub(ll x,ll y,ll mod){x-=y; if(x<0) return x+mod; return x;}
      |           ^~~
a.cc:158:11: error: redefinition of 'll mul(ll, ll, ll)'
  158 | inline ll mul(ll x,ll y,ll mod){return (x*1ll*y)%mod;}
      |           ^~~
a.cc:62:11: note: 'll mul(ll, ll, ll)' previously defined here
   62 | inline ll mul(ll x,ll y,ll mod){return (x*1ll*y)%mod;}
      |           ^~~
a.cc:159:11: error: redefinition of 'll power(ll, ll, ll)'
  159 | inline ll power(ll x,ll y,ll mod){ll ans=1; while(y){if(y&1) ans=mul(ans,x,mod); x=mul(x,x,mod); y>>=1;} return ans;}
      |           ^~~~~
a.cc:63:11: note: 'll power(ll, ll, ll)' previously defined here
   63 | inline ll power(ll x,ll y,ll mod){ll ans=1; while(y){if(y&1) ans=mul(ans,x,mod); x=mul(x,x,mod); y>>=1;} return ans;}
      |           ^~~~~
a.cc:160:11: error: redefinition of 'll inv(ll, ll)'
  160 | inline ll inv(ll x,ll mod){return power(x,mod-2,mod);}
      |           ^~~
a.cc:64:11: note: 'll inv(ll, ll)' previously defined here
   64 | inline ll inv(ll x,ll mod){return power(x,mod-2,mod);}
      |           ^~~
a.cc:163:10: error: redefinition of 'const ll M1'
  163 | const ll M1=1e9+7,M2=998244353;
      |          ^~
a.cc:67:10: note: 'const ll M1' previously defined here
   67 | const ll M1=1e9+7,M2=998244353;
      |          ^~
a.cc:163:19: error: redefinition of 'const ll M2'
  163 | const ll M1=1e9+7,M2=998244353;
      |                   ^~
a.cc:67:19: note: 'const ll M2' previously defined here
   67 | const ll M1=1e9+7,M2=998244353;
      |                   ^~
a.cc:164:10: error: redefinition of 'const ll N'
  164 | const ll N=1e5+100;
      |          ^
a.cc:68:10: note: 'const ll N' previously defined here
   68 | const ll N=1e5+100;
      |          ^
a.cc:166:6: error: redefinition of 'void pre()'
  166 | void pre(){
      |      ^~~
a.cc:70:6: note: 'void pre()' previously defined here
   70 | void pre(){
      |      ^~~
a.cc:170:6: error: redefinition of 'void solve()'
  170 | void solve(){
      |      ^~~~~
a.cc:74:6: note: 'void solve()' previously defined here
   74 | void solve(){
      |      ^~~~~
a.cc:182:5: error: redefinition of 'int main()'
  182 | int main(){
      |     ^~~~
a.cc:86:5: note: 'int main()' previously defined here
   86 | int main(){
      |     ^~~~