Language: C++

#include<iostream>
usingnamespacestd;
longlongN, K, A[1<<18];
intmain(){
  cin>>N>>K;
  for(inti=1; i<=N; i++) cin>>A[i];
  for(inti=K+1; i<=N; i++) {
    if(A[i-K]<A[i]) cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
  return0;
}

Compiler output:
a.cc:2:1: error: 'usingnamespacestd' does not name a type
    2 | usingnamespacestd;
      | ^~~~~~~~~~~~~~~~~
a.cc:3:1: error: 'longlongN' does not name a type
    3 | longlongN, K, A[1<<18];
      | ^~~~~~~~~
a.cc:4:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
    4 | intmain(){
      | ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>N>>K;
      |   ^~~
      |   std::cin
In file included 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:5:8: error: 'N' was not declared in this scope
    5 |   cin>>N>>K;
      |        ^
a.cc:5:11: error: 'K' was not declared in this scope
    5 |   cin>>N>>K;
      |           ^
a.cc:6:7: error: 'inti' was not declared in this scope; did you mean 'int'?
    6 |   for(inti=1; i<=N; i++) cin>>A[i];
      |       ^~~~
      |       int
a.cc:6:15: error: 'i' was not declared in this scope
    6 |   for(inti=1; i<=N; i++) cin>>A[i];
      |               ^
a.cc:6:31: error: 'A' was not declared in this scope
    6 |   for(inti=1; i<=N; i++) cin>>A[i];
      |                               ^
a.cc:7:7: error: 'inti' was not declared in this scope; did you mean 'int'?
    7 |   for(inti=K+1; i<=N; i++) {
      |       ^~~~
      |       int
a.cc:7:17: error: 'i' was not declared in this scope
    7 |   for(inti=K+1; i<=N; i++) {
      |                 ^
a.cc:8:8: error: 'A' was not declared in this scope
    8 |     if(A[i-K]<A[i]) cout<<"Yes"<<endl;
      |        ^
a.cc:8:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     if(A[i-K]<A[i]) 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:8:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     if(A[i-K]<A[i]) cout<<"Yes"<<endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       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:10:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |       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:12:3: error: 'return0' was not declared in this scope
   12 |   return0;
      |   ^~~~~~~
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^