criyle/codenet-compile-errors huggingface dataset:
Language: C

#include<stdio.h>
#include<conio.h>
 
void process(int a, int b, int arr[]);
void show(int x, long ar[]);
 

 
int main()
{
  int n,k;
  int g[n];
  
  scanf("%d %d\n",&n,&k);
  
  for(int i=0;i<n;i++)
  {
    scanf("%d ",&g[i]);
  }
  process(n,k,g);
  return 0;
}
void process(int a, int b, int arr[])
{
  long ar[a-b+1];
  for(int i=0; i<a-b+1; i++)
  {
    int k=i;
    int mult=1;
    for(int j=0; j<b; j++)
    {
      mult*=arr[k];
      k++;
    }
    ar[i]=mult;
  }
  show(a-b,ar);
}
 
void show(int x, long ar[])
{
  for (int i=0; i<x; i++)
  {
    if(ar[i]<ar[i+1])
    {
      printf("\nYes");
    }
    else
    {
      printf("\nNo");
    }
  }
}

Compiler output:
main.c:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

void process(int a, int b, int arr[])
{
  long ar[a-b+1];
  for(int i =0; i<a-b+1; i++)
  {
    int k = i;
    int mult = 1;
    for(int j = 0; j<b; j++)
    {
      mult *= arr[k];
      k++;
    }
    ar[i] = mult;
  }
  show(a-b, ar);
}

void show(int x, long ar[])
{
  for (int i =0; i<x; i++)
  {
   if (ar[i] < ar(i+1))
   {
     printf("\nYes");
   }
    else
    {
      printf("\nNo");
    }
  }
}

int main()
{
  int n,k;
  int grade[n];
  scanf("%d %d\n", &n, &k);
  for(int i = 0; i<n; i++)
  {
    scanf("%d ",&grade[i]);
  }
  if((n>=2) && (n<=200000))
  {
    if((k>=1) && (k<=n-1))
    {
      process(n,k,grade);
    }
  }
  return 0;
}


Compiler output:
main.c: In function 'process':
main.c:17:3: error: implicit declaration of function 'show' [-Wimplicit-function-declaration]
   17 |   show(a-b, ar);
      |   ^~~~
main.c: At top level:
main.c:20:6: warning: conflicting types for 'show'; have 'void(int,  long int *)'
   20 | void show(int x, long ar[])
      |      ^~~~
main.c:17:3: note: previous implicit declaration of 'show' with type 'void(int,  long int *)'
   17 |   show(a-b, ar);
      |   ^~~~
main.c: In function 'show':
main.c:24:16: error: called object 'ar' is not a function or function pointer
   24 |    if (ar[i] < ar(i+1))
      |                ^~
main.c:20:23: note: declared here
   20 | void show(int x, long ar[])
      |                  ~~~~~^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n;
  int k;
  cin>>n>>k;
  int* score=new int[n];
  for(int i=0;i<n;i++){
    cin>>score[i];
  }
  int cur=1;
  int prev=1;
  for(int j=0;j<k;j++){
    prev*=score[j];
  }
  for(int i=1;i<n-k;i++){
    cur=1;
    for(int j=0;j<k;j++){
      cur*=score[i-1+k-j];
    }
    if(prev<cur){
      cout<<"Yes"<<endl;
    }else{
      cout<<"No"<<endl;
    }
    prev=cur;
  }
  
  delete[] n;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:12: error: type 'int' argument given to 'delete', expected pointer
   30 |   delete[] n;
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n;
  int k;
  cin>>n>>k;
  int* score=new int[n];
  for(int i=0;i<n;i++){
    cin>>score[i];
  }
  int cur=1;
  int prev=1;
  for(int j=0;j<k;j++){
    prev*=score[j];
  }
  for(int i=1;i<n-k;i++){
    cur=1;
    for(int j=0;j<k;j++){
      cur*=score[i-1+k-j]
    }
    if(prev<cur){
      cout<<"Yes"<<endl;
    }else{
      cout<<"No"<<endl;
    }
    prev=cur;
  }
  
  delete[] n;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: expected ';' before '}' token
   20 |       cur*=score[i-1+k-j]
      |                          ^
      |                          ;
   21 |     }
      |     ~                     
a.cc:30:12: error: type 'int' argument given to 'delete', expected pointer
   30 |   delete[] n;
      |            ^
Language: Java

import java.io.*;
import java.util.StringTokenizer;
public class Main {
    public static void main(String[] args) {
        FastScanner sc = new FastScanner(System.in);
        long n = sc.nextInt();
        long k = sc.nextInt();
        long[] array = new int[n];
        for (int i = 0; i < n; i++) {
            array[i] = sc.nextInt();
        }
        int plus = 0;
        int count = 0;
        while (count < n - k) {
            int first_group = 0;
            int second_group = 0;
            for (int i = 0; i < k; i++) {
                first_group += array[i + plus];
                second_group += array[i + plus + 1];
            }
            plus++;
            if (second_group - first_group > 0) {
                System.out.println("Yes");
                count++;
            } else {
                System.out.println("No");
                count++;
            }

        }
    }

    static class FastScanner {
        private BufferedReader reader = null;
        private StringTokenizer tokenizer = null;

        public FastScanner(InputStream in) {
            reader = new BufferedReader(new InputStreamReader(in));
            tokenizer = null;
        }

        public long nextInt() {
            return Integer.parseInt(next());
        }

    }
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from long to int
        long[] array = new int[n];
                               ^
Main.java:8: error: incompatible types: int[] cannot be converted to long[]
        long[] array = new int[n];
                       ^
Main.java:43: error: cannot find symbol
            return Integer.parseInt(next());
                                    ^
  symbol:   method next()
  location: class FastScanner
3 errors
Language: C++

import sys
read = sys.stdin.readline
import time
import math
import itertools as it
def inpl():
    return list(map(int, input().split()))
st = time.perf_counter()
# ------------------------------

N, K = inpl()
A = inpl()
ls = [1] * (N+10)
for i in range(K):
    ls[K-1] *= A[i]
for i in range(K, N):
    # ls[i] = ls[i-1]//A[i-K] * A[i]
    # if ls[i] > ls[i-1]:
    if A[i] > A[i-K]:
        print('Yes')
    else:
        print('No')

# -----------------------------
ed = time.perf_counter()
print('time:', ed-st, file=sys.stderr)


Compiler output:
a.cc:9:3: error: invalid preprocessing directive #--
    9 | # ------------------------------
      |   ^~
a.cc:17:7: error: invalid preprocessing directive #ls
   17 |     # ls[i] = ls[i-1]//A[i-K] * A[i]
      |       ^~
a.cc:18:12: error: token "[" is not valid in preprocessor expressions
   18 |     # if ls[i] > ls[i-1]:
      |            ^
a.cc:18: error: unterminated #if
   18 |     # if ls[i] > ls[i-1]:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();int k=sc.nextInt();int[] array = new int[n];
        for(int i=0;i<n;i++){
            array[i] = sc.nextInt();
        }
        boolean flag=true;int plus=0;int count=0;
        while (flag){
            int first_group = 0; int second_group =0;
            for(int i=0;i<k;i++){
                first_group+=array[i+plus];
            }
            for(int i=0;i<k;i++){
                second_group+=array[i+plus+1];
            }plus++;
            if(second_group-first_group>0) {
                System.out.println("Yes");
                count++;
            }
            else{
                System.out.println("No");
                count++;
            }
            if(count==n-k)
                flag=false;

        }



Compiler output:
Main.java:29: error: reached end of file while parsing
        }
         ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();int k=sc.nextInt();int[] array = new int[n];
        for(int i=0;i<n;i++){
            array[i] = sc.nextInt();
        }
        boolean flag=true;int plus=0;int count=0;
        while (flag){
            int first_group = 0; int second_group =0;
            for(int i=0;i<k;i++){
                first_group+=array[i+plus];
            }
            for(int i=0;i<k;i++){
                second_group+=array[i+plus+1];
            }plus++;
            if(second_group-first_group>0) {
                System.out.println("Yes");
                count++;
            }
            else{
                System.out.println("No");count++;}
            if(count==n-k)
                flag=false;

        }

Compiler output:
Main.java:27: error: reached end of file while parsing
        }
         ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
ll a[200020];
int main()
{
    ll n,k;
    cin>>n>>k;
    for(int i=0;i<n;i++)
    {
        cin>>a[i];
    }
    for(int i=k;i<n;i++)
    {
        if(a[i]>a[i-k])
        {
            cout<<"Yes"<<endl;
        }
        else
        {
            cout<<"No"<<endl;
        }
    }
    return 0;
}

Compiler output:
a.cc:3:1: error: 'll' does not name a type
    3 | ll a[200020];
      | ^~
a.cc: In function 'int main()':
a.cc:6:5: error: 'll' was not declared in this scope
    6 |     ll n,k;
      |     ^~
a.cc:7:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |     cin>>n>>k;
      |          ^
      |          yn
a.cc:7:13: error: 'k' was not declared in this scope
    7 |     cin>>n>>k;
      |             ^
a.cc:10:14: error: 'a' was not declared in this scope
   10 |         cin>>a[i];
      |              ^
a.cc:14:12: error: 'a' was not declared in this scope
   14 |         if(a[i]>a[i-k])
      |            ^
Language: Java

package contest;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class P3 {
    public static void main(String[] args)throws Exception{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String[] s=br.readLine().split(" ");
        int n=Integer.parseInt(s[0].trim());
        int k=Integer.parseInt(s[1].trim());
        String[] s2=br.readLine().split(" ");
        long[] a=new long[n];
        for(int i=0;i<n;i++){
            a[i]=Long.parseLong(s2[i].trim());
        }
        algo(a,k);
    }

    public static void algo(long[] a,int k){
        long mul=0;
        for(int i=0;i<k;i++){
            mul+=a[i];
        }

        for(int i=k;i<a.length;i++){
            long r=(mul)-a[i-k];
            r=r+a[i];
            if(r>mul){
                System.out.println("Yes");
            }
            else{
                System.out.println("No");
            }
            mul=r;
        }
    }



}


Compiler output:
Main.java:6: error: class P3 is public, should be declared in a file named P3.java
public class P3 {
       ^
1 error
Language: C++

#include <iostream>

int main()
{
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
    
  int n, k;
  cin >> n >> k;
  
  int *a = new int[n];
  
  for (int i = 0; i < n; i++)
    cin >> *(a + i);
  
  for (int i = 0; i < n - k; i++)
    if (*(a + i) <= *(a + i + k))
      cout << "Yes";
    else
      cout << "No";
      
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'ios' has not been declared
    5 |   ios::sync_with_stdio(false);
      |   ^~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin.tie(nullptr);
      |   ^~~
      |   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:18:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |       cout << "Yes";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |       cout << "No";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.*;
public class MainC{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int[] test = new int[n];
		
		for(int i = 0; i < n; i++){
			test[i] = sc.nextInt();
		}
		
		for(int i = k; i < n; i++){
			if(test[i-k] < test[i]){
				System.out.println("Yes");
			}else{
				System.out.println("No");
			}
		}
	}
}


Compiler output:
Main.java:2: error: class MainC is public, should be declared in a file named MainC.java
public class MainC{
       ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;

long long N, K, A[1<<18];

int main(){
  cin >> N >> K;
  for(int i = 1; i <= N; i++){
    cin >> A[i];
  }
  for(int i = K+1; i <=N; i++){
    if(A[i-K] < A[i]) cout << "Yes" << '\n';
    else cout << "No" << '\n';
  }
  return 0;
}
'  

Compiler output:
a.cc:17:1: warning: missing terminating ' character
   17 | '
      | ^
a.cc:17:1: error: missing terminating ' character
   17 | '
      | ^
Language: C++

#include <iostream>
2 using namespace std;
3
4 long long N, K, A[1 << 18];
5
6 int main() {
7 cin >> N >> K;
8 for (int i = 1; i <= N; i++) cin >> A[i];
9 for (int i = K + 1; i <= N; i++) {
10 if (A[i - K] < A[i]) cout << "Yes" << endl;
11 else cout << "No" << endl;
12 }
13 return 0;
14 }

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2 using namespace std;
      | ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3
      | ^
a.cc:5:1: error: expected unqualified-id before numeric constant
    5 | 5
      | ^
Language: C++

#include<iostream>
using namespace std;
long long N, K, A[1<<18];
int main(){
  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: In function 'int main()':
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: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:12:3: error: 'return0' was not declared in this scope
   12 |   return0;
      |   ^~~~~~~
Language: C

#include<stdio.h>

int main(void){
  int n,k,i,j;
  scanf("%d %d",&n,&k);
  int a[n],x[2];
  x[0]=1;x[1]=1;
  for (i=0;i<n;i++){
    scanf("%d",&a[i]);
  }

Compiler output:
main.c: In function 'main':
main.c:10:3: error: expected declaration or statement at end of input
   10 |   }
      |   ^
Language: C++

#include <iostream>

int main() {
  int N, K;
  cin >> N >> K;

  int A[200000+5];
  for(int i = 0; i < N; i++){
    cin >> A[i];
  }

  for(int i = 0; i < N - K; i++) {
    cout << (A[i] < A[i+K] ? "Yes" : "No") << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout << (A[i] < A[i+K] ? "Yes" : "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:13:47: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout << (A[i] < A[i+K] ? "Yes" : "No") << 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)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int N,K;
  cin>>N>>K;
  int a[200001];
  for(int i=0;i<N;i++){
    cin>>a[i];
    if(i>=K && a[i]>a[i-K])
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
    return 0;
  }
      
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include <bits/stdc++.h>
using namespace std;

// ABCテンプレート

#define rep(i,n) for (int i = 0; i<(n); i++)
#define in(n) cin >> (n)
#define out(ans) cout << (ans) << endl;
#define keta(n) cout << fixed << setprecision((n));
using ll = int64_t;
using v = vector<int>;


int main() {
  int N, K;
  cin >> N >> K;
  vector<ll> aklist(N, 1), alist(N);
  rep(i,N) {
    ll A;
    cin >> A;
    alist.at(i) = A;
    if(i==0) {
      aklist.at(i) = A;
    }
    else if(i<K) {
      aklist.at(i) = A*aklist.at(i-1);
    }
    else {
      aklist.at(i) = aklist.at(i-1)/alist.at(i-K)*A;
    }
  }
  /*
  for(int i=K-1; i<N; i++) {
    if(i==K-1) continue;
    else aklist.at(i) = aklist.at(i)/aklist.at(i-K);
  }
  */
  for (int i=K; i<N; i++) {
    if(aklist.at(i)>aklist.at(i-1)) {
      cout << "Yes" << endl;
    }
    else {
      cout << "No" << endl;
    }
  }
  
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

//Abhinav ---IIIT_A
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define pb push_back
#define ff first
#define ss second
#define f(i,x,n) for(int i=x;i<(int)n;++i)
#define vpii vector<pair<int,int>> 
#define vi vector<int>
#define vpii vector<pair<int,int>> 
#define mpii map<pair<int,int>,int>
#define mpivpii map<int,vector<pair<int,int>>> 
#define pii pair<int,int> 
#define all(x) x.begin(),x.end()
#define sz(x) x.size()
#define mpi map<int,int>
#define vvi vector<vector<int>>
#define vvvi vector<vvi>

ld pie=3.141592653589793238462643383279;
int mod=1e9+7;

vvi mat_mul(vvi mat1,vvi mat2){
  vvi ret;
  f(i,0,2){
    vi xx;
    f(j,0,2){
      int r=0;
      f(k,0,2) r=(r+(mat1[i][k]*mat2[k][j])%mod)%mod;
      xx.pb(r%mod);
    }
    ret.pb(xx);\
  }
  return ret;
}

vvi mat_exp(vvi mat,int p){
  vvi iden={{1,0},{0,1}};
  while(p!=0){
    if(p&1) iden=mat_mul(iden,mat);
    p/=2; 
    mat=mat_mul(mat,mat);
  }
  return iden;
}


int32_t main(){ 
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  #ifndef ONLINE_JUDGE
  freopen("input.txt","r",stdin);
  freopen("output.txt","w",stdout);
  #endif
  int n,k;  cin>>n>>k;
  vi vt;
  f(i,0,n){
    int x; cin>>x;
    vt.pb(x);
  }
  vt ans;
  int mul=1;
  f(i,0,n){
    if(i<(k-1)) mul*=vt[i];
    else if(i==(k-1)){
      mul*=vt[i];
      ans.pb(mul);
    }else{
      mul*=vt[i];
      mul/=vt[i-k];
      ans.pb(mul);
    }
  }
  f(i,1,sz(ans)) if(ans[i]>ans[i-1]) cout<<"Yes\n";
  else cout<<"No\n";
  return 0; 
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:63:5: error: expected ';' before 'ans'
   63 |   vt ans;
      |     ^~~~
      |     ;
a.cc:69:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   69 |       ans.pb(mul);
      |       ^~~
      |       abs
a.cc:73:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   73 |       ans.pb(mul);
      |       ^~~
      |       abs
a.cc:76:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   76 |   f(i,1,sz(ans)) if(ans[i]>ans[i-1]) cout<<"Yes\n";
      |            ^~~
a.cc:9:37: note: in definition of macro 'f'
    9 | #define f(i,x,n) for(int i=x;i<(int)n;++i)
      |                                     ^
a.cc:76:9: note: in expansion of macro 'sz'
   76 |   f(i,1,sz(ans)) if(ans[i]>ans[i-1]) cout<<"Yes\n";
      |         ^~
Language: C++

#include <iostream>
using namespace std;
long long N, K, A[1 << 18];
int main() 
cin >> N >> K;
for (int i = 1; i <= N; i++) cin >> A[i];
for (int i = K + 1; i <= N; i++) {
if (A[i - K] < A[i]) cout << "Yes" << endl;
else cout << "No" << endl;
}
return 0;
}

Compiler output:
a.cc:5:1: error: expected initializer before 'cin'
    5 | cin >> N >> K;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'for'
    6 | for (int i = 1; i <= N; i++) cin >> A[i];
      | ^~~
a.cc:6:17: error: 'i' does not name a type
    6 | for (int i = 1; i <= N; i++) cin >> A[i];
      |                 ^
a.cc:6:25: error: 'i' does not name a type
    6 | for (int i = 1; i <= N; i++) cin >> A[i];
      |                         ^
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for (int i = K + 1; i <= N; i++) {
      | ^~~
a.cc:7:21: error: 'i' does not name a type
    7 | for (int i = K + 1; i <= N; i++) {
      |                     ^
a.cc:7:29: error: 'i' does not name a type
    7 | for (int i = K + 1; i <= N; i++) {
      |                             ^
a.cc:11:1: error: expected unqualified-id before 'return'
   11 | return 0;
      | ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for 9 int i = 0; i < (n) ; ++i)


int main(){
 int n,k;
 cin >> n>> k;
 vector<int> a(n);
  rep(i,n) cin >> a[i];
  for(int r = k; r < n; r++){
  int l =r - k;
    if(a[l] < a[r]) cout << "Yes" << endl;
    else cout <<"No" << endl;
  }
  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:23: error: expected '(' before numeric constant
    3 | #define rep(i, n) for 9 int i = 0; i < (n) ; ++i)
      |                       ^
a.cc:10:3: note: in expansion of macro 'rep'
   10 |   rep(i,n) cin >> a[i];
      |   ^~~
a.cc:3:25: error: expected ';' before 'int'
    3 | #define rep(i, n) for 9 int i = 0; i < (n) ; ++i)
      |                         ^~~
a.cc:10:3: note: in expansion of macro 'rep'
   10 |   rep(i,n) cin >> a[i];
      |   ^~~
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   rep(i,n) cin >> a[i];
      |       ^
a.cc:3:36: note: in definition of macro 'rep'
    3 | #define rep(i, n) for 9 int i = 0; i < (n) ; ++i)
      |                                    ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;

#define ll long long

int main()
{
  int N, K;
  int A[200000];
  
	cin >> N >> K;
	for(int i = 0; i < N; i++){
		cin >> A[i];
	}

	ll v = 1;
	for(int i = 0; i < K; i++){
		v *= A[i];
	}
	
	for(int i = K; i < N; i++){
      	ll last = v;
		v *= A[i];
		v /= A[i-K];
//      cout << v << endl;
		cout << ((A[i-K] < A[i]) ? "Yes" : "No") << endl;
	}
  
  return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:31:12: error: expected '}' at end of input
   31 |   return 0;
      |            ^
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main(){
  ll n,k;
  cin >> n >> k;
  vector<ll> a(n);
  for(ll i=0;i<n;i++){
    cin >> a.at(i);
  }
  
  ll cnt=1,dnt;
  for(ll i=0;i<k;i++){
    cnt *= a.at(i);
  }
  dnt = cnt;
  
  for(i=k;i<n;i++){
    cnt /= a.at(i-k);
    cnt *= a.at(i);
    if(dnt < cnt) cout << "Yes" << endl;
    else cout << "No" << endl;
    dnt = cnt;
  }
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:7: error: 'i' was not declared in this scope
   19 |   for(i=k;i<n;i++){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

bool result(int n, int k, int i, vector<int> score){

  int s1 = 1, s2 = 1;
  for(int j = i - k; j < k; j++){
  s2 *= score.at(j);
  }
  for(int l = i - k -1; l < k-1; l++){
  s1 *= score.at(l);
  }
  if(s1 <= s2 ){
    return false;
  }
  else{
    return true;
  }
  
}

int main(){
 int k=0, n=0;

  cin >> n >> k;
   vector<int> score(n,0)
  for(int i =0; i < n ; i++){
  cin >> score.at(i);
  }
  for(int i = k; i < n; i++){
  if(result(n, k, i, score)){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
  }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: expected ',' or ';' before 'for'
   27 |   for(int i =0; i < n ; i++){
      |   ^~~
a.cc:27:17: error: 'i' was not declared in this scope
   27 |   for(int i =0; i < n ; i++){
      |                 ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

int main(void) {
    int N,K,i,A[210000],sum=1,temp=0;
    scanf("%d %d" ,&N,&K);
    for (i=1; i<=N; i++) {
        scanf("%d" ,&A[i]);
    }
    for (i=1; i<=K; i++) {
        sum*=A[i];
    }
    for (i=1; i<=N-K; i++) {
        temp=sum;
        sum = double(sum/A[i]*A[K+i]);
        if(sum > temp) printf("Yes\n");
        else printf("No\n");
    }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:15: error: expected expression before 'double'
   16 |         sum = double(sum/A[i]*A[K+i]);
      |               ^~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define pb push_back
#define fi first
#define se second
#define all(container) container.begin(),container.end()
#define fast ios::sync_with_stdio(0); cin.tie(0)
#ifndef ONLINE_JUDGE
#include "debug.cpp"
#endif
#define int unsigned long long
const int mod = 1e9+7;  
int power(int a,int b) { if(b==0) return 1; int res = power(a,b/2); if(b&1) return res * res * a; else return res * res; }


int32_t main(){
    
  fast;
  int n,k; cin >> n >> k;
  int ar[n];
  for(int i=0;i<n;i++) cin >> ar[i];

  for(int i=k;i<n;i++){
    if(ans[i]>ans[i-k]) cout << "Yes\n";
    else cout << "No\n";
  }

  return 0;
}

Compiler output:
a.cc:9:10: fatal error: debug.cpp: No such file or directory
    9 | #include "debug.cpp"
      |          ^~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

# define N 200050

int main(void){
    // Your code here!
    
    int n,k; // all input n , one range k 
    int a[N]={0};
    int isl=0; //int flag=0;
    // is larget true or false i > i-1
    int j,k;
    int prev=1;
    
    
    int s=1; //syakutori tanigen
    
    scanf("%d %d",&n,&k);
    
    for(int i=0; i<n; i++ ){
        
        scanf("%d",&a[i]);
        
    }
    
    //not 2 it is k
    /*
    for(int i=k; i<n; i++ ){
     for(int j=i; j<i+k; j++ )    
     
    }
    */
    
    j=0,k=0;
    while(1){
        s*=a[j];
        j++;
        
        if( j % (k-1) ==0 ){
        if( j==(k-1) ) prev=s;
        else if( s>prev ) puts("Yes");
        else puts("No");
        
        prev=s;
        s=1;
        }
        
        
    }
    
    
    
    return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:12:11: error: redeclaration of 'k' with no linkage
   12 |     int j,k;
      |           ^
main.c:8:11: note: previous declaration of 'k' with type 'int'
    8 |     int n,k; // all input n , one range k
      |           ^
Language: C++

#include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
int32_t main(){
	#ifndef ONLINE_JUDGE
    	// for getting input from input.txt
    	freopen("input.txt", "r", stdin);
    	// for writing output to output.txt
    	freopen("output.txt", "w", stdout);
    	// for debug in error.txt
    	freopen("error.txt", "w", stderr);
	#endif
	int t =1;
	while(t--) {
		ll n, k;
		cin >> n >> k;
		std::vector<ll> v(n);
		for(int i = 0; i < n; i++) {
			cin >> v[i];
		}
		for(int i = k; i < n; i++) {
			if(v[i] > v[i-k]) {a
				cout << "Yes" << '\n';
			}else{
				cout << "No" << '\n';
			}
		}
	}
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:22:44: error: 'a' was not declared in this scope
   22 |                         if(v[i] > v[i-k]) {a
      |                                            ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define FOR(i,a,b) for(ll i=a;i<b;i++)

int main(){
   long long N,K;
   cin >> N >> K;
   vector<long long> A(N+1000);
   FOR(i,1,n+1){
        cin>>a[i];
    }
    
   FOR(i,k+1,n+1){
        if(a[i]>a[i-k]){
            cout<<"Yes"<<endl;
        }else{
            cout<<"No"<<endl;
        }
    }


}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: 'll' was not declared in this scope
    6 | #define FOR(i,a,b) for(ll i=a;i<b;i++)
      |                        ^~
a.cc:12:4: note: in expansion of macro 'FOR'
   12 |    FOR(i,1,n+1){
      |    ^~~
a.cc:12:8: error: 'i' was not declared in this scope
   12 |    FOR(i,1,n+1){
      |        ^
a.cc:6:31: note: in definition of macro 'FOR'
    6 | #define FOR(i,a,b) for(ll i=a;i<b;i++)
      |                               ^
a.cc:12:12: error: 'n' was not declared in this scope
   12 |    FOR(i,1,n+1){
      |            ^
a.cc:6:33: note: in definition of macro 'FOR'
    6 | #define FOR(i,a,b) for(ll i=a;i<b;i++)
      |                                 ^
a.cc:13:14: error: 'a' was not declared in this scope
   13 |         cin>>a[i];
      |              ^
a.cc:6:24: error: 'll' was not declared in this scope
    6 | #define FOR(i,a,b) for(ll i=a;i<b;i++)
      |                        ^~
a.cc:16:4: note: in expansion of macro 'FOR'
   16 |    FOR(i,k+1,n+1){
      |    ^~~
a.cc:16:8: error: 'i' was not declared in this scope
   16 |    FOR(i,k+1,n+1){
      |        ^
a.cc:6:31: note: in definition of macro 'FOR'
    6 | #define FOR(i,a,b) for(ll i=a;i<b;i++)
      |                               ^
a.cc:16:14: error: 'n' was not declared in this scope
   16 |    FOR(i,k+1,n+1){
      |              ^
a.cc:6:33: note: in definition of macro 'FOR'
    6 | #define FOR(i,a,b) for(ll i=a;i<b;i++)
      |                                 ^
a.cc:17:12: error: 'a' was not declared in this scope
   17 |         if(a[i]>a[i-k]){
      |            ^
a.cc:17:21: error: 'k' was not declared in this scope
   17 |         if(a[i]>a[i-k]){
      |                     ^
Language: C++

#include <bits/stdc++.h>
#include<boost/multiprecision/cpp_int.hpp> 

using namespace std;
using namespace boost::multiprecision;

int main(void) {

  long long N, K;
  cin >> N >> K;
  vector<long long> A(N);
  long long S;
  for (long long i = 0; i < N; i++) {
    cin >> A.at(i);
  }
  S = 1;
  for (long long  i = 0; i <= K - 1; i++) {
    S *= A.at(i);
  }
  //cout << S.at(K-1) << endl;
  for (long long i = 0; i < N - K; i++) {

    //cout << S.at(K+i) << endl;
    if (A.at(K+i) > A.at(i)) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
    S = newS;
  }

}


Compiler output:
a.cc:2:9: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    2 | #include<boost/multiprecision/cpp_int.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#include<boost/multiprecision/cpp_int.hpp> 

using namespace std;
using namespace boost::multiprecision;

int main(void) {

  long long N, K;
  cin >> N >> K;
  vector<long long> A(N);
  long long S;
  for (long long i = 0; i < N; i++) {
    cin >> A.at(i);
  }
  S = 1;
  for (long long  i = 0; i <= K - 1; i++) {
    S *= A.at(i);
  }
  //cout << S.at(K-1) << endl;
  for (long long i = 0; i < N - K; i++) {

    //cout << S.at(K+i) << endl;
    if (A.at(K+i) > S.at(i)) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
    S = newS;
  }

}


Compiler output:
a.cc:2:9: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    2 | #include<boost/multiprecision/cpp_int.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  double n,k;
  cin >> n>> k; 
  double A[n];
  for(int i=0;i<n;i++){
  cin >> A[i];
  }
  double count =0;
  
  for(int i=k;i<n;i++){
    count = A[i]/A[i-k];
    double per = A[i]%A[i-k];
    if(count >= 1 && per!=0 ){
      cout << "Yes" << endl;
  }else{
      cout << "No" << endl;
    }
 
  }   
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    7 |   double A[n];
      |            ^
a.cc:7:12: error: could not convert 'n' from 'double' to 'long unsigned int'
    7 |   double A[n];
      |            ^
      |            |
      |            double
a.cc:7:12: error: size of array 'A' has non-integral type 'double'
a.cc:14:19: error: invalid types 'double [1][double]' for array subscript
   14 |     count = A[i]/A[i-k];
      |                   ^
a.cc:15:24: error: invalid types 'double [1][double]' for array subscript
   15 |     double per = A[i]%A[i-k];
      |                        ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main (void){
  int N,K;
  cin >> N >> K;
  vector<int> A(N+1);
  
  for(int i=1; i <= N; i++){
    cin >> A[i];
  }
  
  int p_sum = A[1];
  for(int i=2; i <= K; i++){
    p_sum = p_sum * A[i];
  }A
  for(int i = 2; i <= N-K+1; i++){
    int sum = p_sum / A[i-1] ;
    sum = sum * A[i+K-1];
    if(sum > p_sum){
      cout << "Yes" << endl;
    }else{
      cout << "No" << endl;
    }
    p_sum=sum;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected ';' before 'for'
   16 |   }A
      |     ^
      |     ;
   17 |   for(int i = 2; i <= N-K+1; i++){
      |   ~~~
a.cc:17:18: error: 'i' was not declared in this scope
   17 |   for(int i = 2; i <= N-K+1; i++){
      |                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int unsigned long long
int vec[2000005];

int32_t main()
{
   int n,k;
   cin>>n>>k;


   vec[0]=1;
   vector<int>res;

   int a, ans=1;

   for(int i=1; i<=n; i++){
       cin>>a;
       vec[i]=vec[i-1]*a;
   }


   for(int i=k; i<=n; i++){

      //cout<<i<<" "<<i-k<<endl;
      if(i-k>=0)
      int temp  = vec[i]/vec[i-k];
      else temp = vec[i];
      //cout<<temp<<endl;
      res.push_back(temp);
   }

    for(int i=1; i<res.size(); i++){

      if(res[i-1]<res[i]) cout<<"Yes"<<endl;
      else cout<<"No"<<endl;
   }



    return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:28:12: error: 'temp' was not declared in this scope; did you mean 'tm'?
   28 |       else temp = vec[i];
      |            ^~~~
      |            tm
a.cc:30:21: error: 'temp' was not declared in this scope; did you mean 'tm'?
   30 |       res.push_back(temp);
      |                     ^~~~
      |                     tm
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
  ll n,k;
  cin>>n>>k;
  vector<ll>v;
  ll prod = 1;
  for(ll i=0;i<n;i++){
    cin>>x;
    v.push_back(x);
    if(i<k)
      prod*=x;
    else{
      ll prev = prod;
      prod/=v[i-k];
      prod*=v[i];
      if(prod>prev)
        cout<<"Yes"<<endl;
      else
        cout<<"No"<<endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'x' was not declared in this scope
   11 |     cin>>x;
      |          ^
Language: C++

//omajinai c++ atcoder
#include <iostream> 
#include <string> 
#include <vector> 
#include <algorithm> 
#include <utility> 
#include <tuple> 
#include <cstdint> 
#include <cstdio> 
#include <map> 
#include <queue> 
#include <set> 
#include <stack> 
#include <deque> 
#include <unordered_map> 
#include <unordered_set> 
#include <bitset> 
#include <cctype> 
#include<cmath>
#include<iomanip>
#include<type_traits>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define itn int
#define yes() printf("Yes\n")
#define no() printf("No\n")
typedef long long ll;
constexpr auto mod = 1000000007;
using namespace std;

int main() {
    int n,k;
   cin>>n>>k;
   vector<long int> a(n);
   rep(i,n){
       cin>>a[i];
   }
/*
  //logsum=0;

   long double p=1;
     long double  now;
   for(int i=k;i<n;i++){
      now=a[i]/a[i-k];
       if(p<now){
           yes();
       }
       else{
           no();
       }
       p=now;
   }
}
*/
  
  for(int i=k;i<n;i++){
    if(a[i-k]<a[i]){
      yes();
    }
    else{
      no();
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:63:4: error: expected '}' at end of input
   63 |   }
      |    ^
a.cc:31:12: note: to match this '{'
   31 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
long int n,k;
unsigned long long int a[200002]={1};
unsigned long long int sum[200002];
int main()
{
    cin>>n>>k;
    for(int i=1;i<=n;i++)
    {
        cin>>a[i];
    }
    sum[k]=1;
    for(long long int i=1;i<=k;i++)
    {
        sum[k]*=a[i];
    }
    for(int i=k+1;i<=n;i++)
    {
        //sum[i]=(sum[i-1]/a[i-k])*a[i];
        if(a[i>a[i-k])
        {
             cout<<"Yes \n";
        }
        else
        {
            cout<<"No \n";
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:22: error: expected ']' before ')' token
   22 |         if(a[i>a[i-k])
      |                      ^
      |                      ]
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
int main()
{
    int n, k;
    cin >> n >> k;
    int a[n];
    ll h[n];
    rep(i, n)
    {
        h[i] = 1;
        cin >> a[i];
    }
    for (int i = n - 1; i >= k - 1; i--)
    {
        for (int j = i; j > i - k; j--)
        {
            h[i] = a[j] * h[i];
        }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:22:6: error: expected '}' at end of input
   22 |     }
      |      ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
long int n,k;
unsigned long long int a[200002]={1};
unsigned long long int sum[200002];
int main()
{
    cin>>n>>k;
    for(long int i=1;i<=n;i++)
    {
        cin>>a[i];
    }
    sum[k]=1;
    for(long long int i=1;i<=k;i++)
    {
        sum[k]*=a[i];
    }
    for(long int i=k+1;i<=n;i++)
    {
        sum[i]=(sum[i-1]*(a[i]/a[i-k]);
    }
    for(long int i=1;i<=n-k;i++)
    {
        if(sum[k+i]>sum[k+i-1])
        {
            cout<<"Yes \n";
        }
        else
        {
            cout<<"No \n";
        }
    }


}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:39: error: expected ')' before ';' token
   21 |         sum[i]=(sum[i-1]*(a[i]/a[i-k]);
      |                ~                      ^
      |                                       )
Language: C

#include<bits/stdc++.h>
using namespace std;
long long num[200009];
int main()
{
	int n,k;
	scanf("%d%d",&n,&k);
	for(int i=1;i<=n;i++)
	{
		scanf("%d",&num[i]);
	}
	for(int i=1;i<n-k+1;i++)
	{
		float te2=(num[k+i]*1.0)/(num[i]*1.0);
		if(te2>1)
		{
			printf("Yes\n");
		}
		else
		{
			printf("No\n");
		}
	}	
	return 0;
 } 

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
	int n,k,arr[100],marks[100];
	cin>>n>>k;
	for(int i=0;i<n;i++)
	{
		cin>>arr[i];
	}
	int p=0;
	for(int i=0;i<n;i++)
	{
		int mul=1;
		for(int j=i;j<i+k;j++)
		{
			mul=mul*arr[j];
		}
		marks[p]=mul;
		p++;
		if(i+k==n)
		{
			break;
		}
	}
	for(int i=1;i<marks.size();i++)
	{
	
		if(marks[i]>marks[i-1])
		{
			cout<<"Yes"<<"\n";
		}
		else
		{
			cout<<"No"<<"\n";
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:29: error: request for member 'size' in 'marks', which is of non-class type 'int [100]'
   27 |         for(int i=1;i<marks.size();i++)
      |                             ^~~~
Language: C++

#include<iostream>
#include<list>
#include<vector>

#define ll unsigned long long

using namespace std;


int main(){

	ll n,k,x;
	cin >> n >> k;

	vector<ll>vs;
	// ll prev=1,curr=1;

	for(ll i=0;i<k;i++){
		cin >> x;
		vs.push_back(x);
		curr*=x;
	}

	// prev = curr;

	for(ll i=k;i<n;i++){
		cin >> x;
		vs.push_back(x);
		if(x>vs[i-k])
			cout << "Yes" << endl;
		else
			cout << "No" << endl;
		// prev=curr;
	}



	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: 'curr' was not declared in this scope
   21 |                 curr*=x;
      |                 ^~~~
Language: Java

import java.util.Scanner;
 
class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    //学期(総合)
    long n = sc.nextLong();
    //学期(評定を始める基準)
    long k = sc.nextLong();
    //点数
    long[] score = new long[n];
    for(int i = 0; i < n;i++){
      score[i] = sc.nextInt();
    }
    long st = 1;
      //基準
      for(int i = 0;i < k;i++){
        st = st * score[i];
      }
      
      for(int i = 0;i < n - k;i++){
        long ans = 1;
        for(int j = 1 + i;j <= k + i;j++){
          ans = ans * score[j];
        }
        if(ans > st){
          System.out.println("Yes");
          st = ans;
        }else{
          System.out.println("No");
          st = ans;
        }
      }
  }
}


Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from long to int
    long[] score = new long[n];
                            ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int n,k;
  cin >> n>> k; 
  int A[n];
  for(int i=0;i<n;i++){
  cin >> A[i];
  }
  int count =0;
  
  for(int i=k;i<n;i++){
    count = A[i]/A[i-k];
    per = A[i]%A[i-k];
    if(count >=1 && per != 0){
      cout << "Yes" << endl;
  }else{
      cout << "No" << endl;
    }
 
  }   
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'per' was not declared in this scope
   15 |     per = A[i]%A[i-k];
      |     ^~~
Language: C++

//omajinai c++ atcoder
#include <iostream> 
#include <string> 
#include <vector> 
#include <algorithm> 
#include <utility> 
#include <tuple> 
#include <cstdint> 
#include <cstdio> 
#include <map> 
#include <queue> 
#include <set> 
#include <stack> 
#include <deque> 
#include <unordered_map> 
#include <unordered_set> 
#include <bitset> 
#include <cctype> 
#include<cmath>
#include<iomanip>
#include<type_traits>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define itn int
#define yes() printf("Yes\n")
#define no() printf("No\n")
typedef long long ll;
constexpr auto mod = 1000000007;
using namespace std;

int main() {
   long int n,k;
   cin>>n>>k;
   vector<long int> a(n);
   rep(i,n){
       cin>>a[i];
   }
  // long int p=1;
  long double logsum=0;

   for(int i=0;i<k;i++){
       //p*=a[i];
     logsum+=logl(a[i]);
   }
    //long int  now;
  long double lognow;
   for(int i=k;i<n;i++){
      //now=p*a[i]/a[i-k];
     lognow=logsum+logl(a[i])-logl(a[i-k])
       if(logsum<lognow){
           yes();
       }
       else{
           no();
       }
       logsum=lognow;
   }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:49:43: error: expected ';' before 'if'
   49 |      lognow=logsum+logl(a[i])-logl(a[i-k])
      |                                           ^
      |                                           ;
   50 |        if(logsum<lognow){
      |        ~~                                  
a.cc:53:8: error: 'else' without a previous 'if'
   53 |        else{
      |        ^~~~
Language: C++

#include <gmpxx.h>
#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

#include <iostream>
// int => mpz_class
// scanf("%d", &x); => cin >> x;
// printf("%d\n", x); => std::cout << x << "\n";

// コンパイル時に -lgmpxx -lgmp

int main() {
    int n, k;
    // scanf("%d%d", &n, &k);
    std::cin >> n >> k;
    int a[200000];
    for (int i = 0; i < n; i++) {
        // scanf("%d", &a[i]);
        std::cin >> a[i];
    }

	/* ここまで値の読み込み */

	mpz_class score = 1;
    for (int i = 0; i < k; i++) {
        score *= a[i];/* kでの評点を求めて，scoreとした */
    }
	mpz_class score1 = score;
    for (int i = 0; i < (n - k); i++) {
		score /= a[i];
		score *= a[i + k];
        if (score > score1) {
            puts("Yes");
        } else {
            puts("No");
        }
		// printf("score:%d\n",score);
		score1 = score;
    }

    return 0;
}


Compiler output:
/usr/bin/ld: /tmp/ccwhTM5P.o: in function `__gmp_binary_multiplies::eval(__mpz_struct*, __mpz_struct const*, long)':
a.cc:(.text._ZN23__gmp_binary_multiplies4evalEP12__mpz_structPKS0_l[_ZN23__gmp_binary_multiplies4evalEP12__mpz_structPKS0_l]+0x27): undefined reference to `__gmpz_mul_si'
/usr/bin/ld: /tmp/ccwhTM5P.o: in function `__gmp_binary_divides::eval(__mpz_struct*, __mpz_struct const*, unsigned long)':
a.cc:(.text._ZN20__gmp_binary_divides4evalEP12__mpz_structPKS0_m[_ZN20__gmp_binary_divides4evalEP12__mpz_structPKS0_m]+0x27): undefined reference to `__gmpz_tdiv_q_ui'
/usr/bin/ld: /tmp/ccwhTM5P.o: in function `__gmp_binary_divides::eval(__mpz_struct*, __mpz_struct const*, long)':
a.cc:(.text._ZN20__gmp_binary_divides4evalEP12__mpz_structPKS0_l[_ZN20__gmp_binary_divides4evalEP12__mpz_structPKS0_l]+0x60): undefined reference to `__gmpz_neg'
/usr/bin/ld: /tmp/ccwhTM5P.o: in function `__gmp_binary_less::eval(__mpz_struct const*, __mpz_struct const*)':
a.cc:(.text._ZN17__gmp_binary_less4evalEPK12__mpz_structS2_[_ZN17__gmp_binary_less4evalEPK12__mpz_structS2_]+0x1f): undefined reference to `__gmpz_cmp'
/usr/bin/ld: /tmp/ccwhTM5P.o: in function `__gmp_expr<__mpz_struct [1], __mpz_struct [1]>::init_si(long)':
a.cc:(.text._ZN10__gmp_exprIA1_12__mpz_structS1_E7init_siEl[_ZN10__gmp_exprIA1_12__mpz_structS1_E7init_siEl]+0x1f): undefined reference to `__gmpz_init_set_si'
/usr/bin/ld: /tmp/ccwhTM5P.o: in function `__gmp_expr<__mpz_struct [1], __mpz_struct [1]>::__gmp_expr(__gmp_expr<__mpz_struct [1], __mpz_struct [1]> const&)':
a.cc:(.text._ZN10__gmp_exprIA1_12__mpz_structS1_EC2ERKS2_[_ZN10__gmp_exprIA1_12__mpz_structS1_EC5ERKS2_]+0x1f): undefined reference to `__gmpz_init_set'
/usr/bin/ld: /tmp/ccwhTM5P.o: in function `__gmp_expr<__mpz_struct [1], __mpz_struct [1]>::~__gmp_expr()':
a.cc:(.text._ZN10__gmp_exprIA1_12__mpz_structS1_ED2Ev[_ZN10__gmp_exprIA1_12__mpz_structS1_ED5Ev]+0x14): undefined reference to `__gmpz_clear'
/usr/bin/ld: /tmp/ccwhTM5P.o: in function `__gmp_expr<__mpz_struct [1], __mpz_struct [1]>::operator=(__gmp_expr<__mpz_struct [1], __mpz_struct [1]> const&)':
a.cc:(.text._ZN10__gmp_exprIA1_12__mpz_structS1_EaSERKS2_[_ZN10__gmp_exprIA1_12__mpz_structS1_EaSERKS2_]+0x1f): undefined reference to `__gmpz_set'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;

#define int long long
#define endl '\n'
#define ff first
#define ss second
#define pb push_back
#define all(x) x.begin(), x.end()
#define allr(x) x.rbegin(), x.rend()
#define DESYNC ios::sync_with_stdio(0); cin.tie(0);
#define deb(x) cerr << ">> " << #x << " : " << x << "\n";
#define print(a) for(auto &x : a) cout << x << " "; cout << "\n";

const int inf = 1e18 + 5;
const int N = 55;

#include <boost/multiprecision/cpp_int.hpp> 
using namespace boost::multiprecision; 

// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

void solve()
{
    int n, k;
    cin >> n >> k;
    vector<int> a(n);
    cpp_int ans = 1;
    cpp_int prev = 1;

    for(int i = 0; i < n; i++)
        cin >> a[i];

    bool once = 1;

    for(int i = k - 1; i < n; i++)
    {
        prev = ans;
        ans = 1;
        for(int j = i - k + 1; j < i + 1; j++)
            ans = ans * a[j];
        if(once) once = 0;
        else 
        {
            if(ans > prev) cout << "Yes\n";
            else cout << "No\n";
        }
    }
}

int32_t main()
{
    // freopen("output.txt", "w", stdout);
    DESYNC
    int t = 1;
    cin >> t;
    for(int i = 1; i <= t; i++)
    {
        // cout << "Case #" << i << ":\n";
        solve();
    }
    return 0;
}

Compiler output:
a.cc:18:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
   18 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.