criyle/codenet-compile-errors huggingface dataset:
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/ccjWnpb6.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/ccjWnpb6.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/ccjWnpb6.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/ccjWnpb6.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/ccjWnpb6.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/ccjWnpb6.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/ccjWnpb6.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/ccjWnpb6.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 mod 1000000007

//read question carefully!

int32_t main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t = 1;
    //cin >> t;
    while (t--)
    {
        int n, k;
        cin >> n >> k;
        int a[n];
        for (int i = 0; i < n; ++i)
            cin >> a[i];
        int pro = 1;
        for (int i = 0; i < k; ++i)
            pro *= a[i];
        res[0] = pro;
        for (int i = 1; i <= n - k; ++i)
        {
            int cpro = (pro / a[i - 1]) * a[i + k - 1];
            if (cpro > pro)
                cout << "Yes"
                     << "\n";
            else
            {
                cout << "No"
                     << "\n";
            }

            pro = cpro;
        }
        // for (int i = 0; i < n - k; ++i)
        // {
        //     if (res[i + 1] > res[i])
        //         cout << "Yes"
        //              << "\n";
        //     else
        //     {
        //         cout << "No"
        //              << "\n";
        //     }
        // }
    }
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:24:9: error: 'res' was not declared in this scope
   24 |         res[0] = pro;
      |         ^~~
Language: Java

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
	      Scanner sc = new Scanner(System.in);
	      int N = Integer.parseInt(sc.next());
	      int K = Integer.parseInt(sc.next());
	      List<Integer> scoreList = new ArrayList<>();
	      List<Integer> hyouteiList = new ArrayList<>();
	      
	      for(int i = 0; i < N; i++) {
	    	  scoreList.add(sc.nextInt());
	      }
	      
	      for(int i = K; i <= N; i++) {
	    	  int sum = 1;
	    	  for(int j = 0; j < K; j++) {
	    		  sum *= scoreList.get(i - K + j);
	    	  }
	    	  hyouteiList.add(sum);
	      }
	      
	      boolean ans = (hyouteiList.size() == new HashSet<>(hyouteiList).size());
	      
	      
	      for(int i = 0; i < N - K; i++) {
	    	  if(!ans) {
	    		  System.out.println("No");
	    	  }else if(hyouteiList.get(i + 1) - hyouteiList.get(i) > 0) {
	    		  System.out.println("Yes");
	    	  }else {
	    		  System.out.println("No");
	    	  }
	      }

	      
	}

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

import java.util.Scanner;
 
class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    //学期(総合)
    int n = sc.nextInt();
    //学期(評定を始める基準)
    int k = sc.nextInt();
    //点数
    int[] score = new int[n];
    for(int i = 0; i < n;i++){
      score[i] = sc.nextInt();
    }
    int st = 1;
      //基準
      for(int i = 0;i < k;i++){
        st = st * score[i];
      }
      
      for(int i = 0;i < n - k;i++){
        int 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:28: error: ';' expected
          st = ans 
                  ^
1 error
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);
    int a[200000];
    for (int i = 0; i < n; i++) {
        scanf("%d", &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/ccRvlVy7.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/ccRvlVy7.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/ccRvlVy7.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/ccRvlVy7.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/ccRvlVy7.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/ccRvlVy7.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/ccRvlVy7.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/ccRvlVy7.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++

n,k= map(int, input().split()) 
lst = [] 
lst2 = []
sum=0
j=0
lst = [int(item) for item in input().split()] 
for i in range(n):
	if i==0:
		while i<k-1:
			sum=sum+lst[i]
			i=i+1
	else:
		sum=sum-lst[j]
		sum=sum+lst[i]
		j=j+1
	lst2.append(sum)

x=len(lst2)
for i in range(1,x):
	if lst2[i]>lst2[i-1]:
		print("Yes")
	else:
		print("No")


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n,k= map(int, input().split())
      | ^
Language: C++

#include <stdio.h>
#include <iostream>
#include <string>

using namespace std;

#define MAX 200010
long long A[MAX] = { 0 };

int main(void) {

	int K, N;
	int A[MAX];
	cin >> N >> K;
	int j;
	for (j = 1; j <= N; j++)
		cin >> A[j];

	int old_score = 1, score = 0;
	for (j = 1; j <= K; j++)
		old_score *= A[j];


	for (j = K + 1; j <= N; j++) {
		score = long long(A[j] * (old_score / A[j - K]));

		if (old_score >= score) {
			cout << "No" << endl;
			//cout << "No" << old_score << " " << score << endl;
		}
		else {
			cout << "Yes" << endl;
			//cout << "Yes" << old_score << " " << score << endl;
		}
		old_score = score;
	}


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:25: error: expected primary-expression before 'long'
   25 |                 score = long long(A[j] * (old_score / A[j - K]));
      |                         ^~~~
Language: C++

// include
#include <array>
#include <algorithm>
#include <set>
#include <cstdint>
#include <cmath>
#include <iostream>
#include <vector>
#include <list>
#include <map>
#include <string>
#include <unordered_map>


// pow(10, 15) 10の15乗

//  多倍長整数
#include <boost/multiprecision/cpp_int.hpp>
using big_int = boost::multiprecision::cpp_int;



std::int64_t getScore(std::vector<std::int64_t>& v, int idx, int k) {
  std::int64_t ans = 1;
//  std::cout << idx << " " << k << std::endl;;
  for (int i = 0; i < k; ++i) {
    ans *= v[idx - i];
  }
  return ans;
}

// ============================================
int main() {
int N, K;
  std::cin >> N >> K;
  std::vector<big_int> A(N); 
  
  for (int i = 0; i < N; ++i) {
    std::cin >> A[i];
  }
  
  
  
  std::int64_t lastScore = getScore(A, K-1, K);
  for (int i = K; i < N; ++i) {    
    std::int64_t score = getScore(A, i, K);
    if (lastScore < score) {
      std::cout << "Yes" << std::endl;
    } else {
      std::cout << "No" << std::endl;
    }
    lastScore = score;
  }
  
    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.
Language: C++

#include <string>
#include<vector>
using namespace std;
typedef long long ll;
int main(){
    int n, k; cin >> n >> k;
    vector<ll> a(n);
    for(ll i=0; i<n; ++i){cin >> a[i];}
    bool ok = true;
    for(ll i=0; i<n-k; ++i){
        bool rate = a[k+i] > a[i];
        
        if(rate){cout << "Yes" << endl;}
        else{cout << "No" << endl;}
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'cin' was not declared in this scope
    6 |     int n, k; cin >> n >> k;
      |               ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<vector>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:13:18: error: 'cout' was not declared in this scope
   13 |         if(rate){cout << "Yes" << endl;}
      |                  ^~~~
a.cc:13:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:35: error: 'endl' was not declared in this scope
   13 |         if(rate){cout << "Yes" << endl;}
      |                                   ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<vector>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:14:14: error: 'cout' was not declared in this scope
   14 |         else{cout << "No" << endl;}
      |              ^~~~
a.cc:14:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:30: error: 'endl' was not declared in this scope
   14 |         else{cout << "No" << endl;}
      |                              ^~~~
a.cc:14:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

n, k = map(int, input().split())
a = list(map(int, input().split()))

b = []

ans = 1
prev = 1
once = 1
for i in range(k - 1, n):
    prev = ans
    ans = a[i] * a[i - 1] * a[i - 2]
    if(once):
        once = 0
    else:
        if(ans > prev):
            once = 0
            # b.append("Yes")
            print("Yes")
        else:
            # b.append("No")
            print("No")

# for i in range(1, n - k - 1):
#     print(b[i])

Compiler output:
a.cc:17:15: error: invalid preprocessing directive #b
   17 |             # b.append("Yes")
      |               ^
a.cc:20:15: error: invalid preprocessing directive #b
   20 |             # b.append("No")
      |               ^
a.cc:23:3: error: invalid preprocessing directive #for
   23 | # for i in range(1, n - k - 1):
      |   ^~~
a.cc:24:7: error: invalid preprocessing directive #print
   24 | #     print(b[i])
      |       ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n, k = map(int, input().split())
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  int N,K;
  cin >> N >> K;
  vector<long long> A(N);
  for(int i=0;i<N;i++){
    cin >> A.at(i);
  }
  long long sum=1;
  for(int i=0;i<N;i++){
    sum*=A.at(i);
    if(i<K-1){
      continue;
    }
    if(i==K-1){
      long long B=sum;
      sum/=A.at(0);
      continue;
    }
    else if(B<sum){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
    long long B=sum;
    sum/=A.at(i-K+1);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: 'B' was not declared in this scope
   22 |     else if(B<sum){
      |             ^
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
      	Scanner sc = new Scanner(System.in);
    	int n = Integer.parseInt(sc.next());
      	int k = Integer.parseInt(sc.next());
      	int[] list = new int[n];
      	int[] flag = new int[n - k];
      	for(int cnt = 0;cnt < n;cnt++){
        	list[cnt] = Integer.parseInt(sc.next());
        }
      	long first = list[0];
      	long save = list[1];
      	for(int cnt = 1;cnt < k;cnt++){
        	first += list[cnt];
        }
      	int cnt = 2;
      	int f = 2;
      	int num = n - k;
      	PrintWriter out = new PrintWriter(System.out);
      	for(int i = 0;i < num;i++){
        	for(int j = 1;j < k;j++){
            	save += list[cnt++];
            }
          	if(first < save){
            	out.println("Yes");
            }else{
            	out.println("No");
            }
          	first = save;
          	save = list[f++];
          	cnt = f;
        }
      	out.flush();
    }
}

Compiler output:
Main.java:21: error: cannot find symbol
      	PrintWriter out = new PrintWriter(System.out);
      	^
  symbol:   class PrintWriter
  location: class Main
Main.java:21: error: cannot find symbol
      	PrintWriter out = new PrintWriter(System.out);
      	                      ^
  symbol:   class PrintWriter
  location: class Main
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before ';' token
    9 |   for(ll i=0;i<;i++)
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pb push_back
#define pf push_front
#define mp make_pair
#define pu push
#define pp pop_back
#define in insert
#define forn(low,high,i) for(i=low;i<high;i++)
#define forrev(high,low,i) for(i = high; i>= low;i--)                                 //g++ template.cpp -o template.exe
#define zeroes(x) memset(x,0,sizeof(x))                                        //all elements to 0  |  \
#define all(x) (x).begin(), (x).end()
typedef long long int ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef vector<pii> vpii;
typedef vector<pll> vpll;
const ll mod =1e9+7;
const ll maxn=100000;







bool sortbysec(const pair<int,int> &a,                         //sorting of elements wrt second
              const pair<int,int> &b) 
{ 
    return (a.second < b.second); 
} 

bool sortinrev(const pair<int,int> &a,                   //sorting in descending wrt first 
               const pair<int,int> &b) 
{ 
       return (a.first > b.first); 
} 
bool sortinrevsec(const pair<int,int> &a,                  //sorting in dsc wrt second
               const pair<int,int> &b) 
{ 
       return (a.second > b.second); 
} 




int main()
{
  ll n,k,v;
  string yy="Yes",n="No";
   cin>>n>>k;

   vector<ll>a;
for(ll i=0;i<n;i++)
{

    cin>>v;
    a.push_back(v);
  }


for(ll i=k;i<n;i++){
    if(a[i]>a[i-k])
        cout<<yy<<endl;
    else
        cout<<n<<endl;
}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:57:19: error: conflicting declaration 'std::string n'
   57 |   string yy="Yes",n="No";
      |                   ^
a.cc:56:6: note: previous declaration as 'll n'
   56 |   ll n,k,v;
      |      ^
Language: C++

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

    
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'i' was not declared in this scope
   12 |      while(i<k)
      |            ^
Language: Java

import java.util.Scanner;

public class question3 {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int[] score = new int[n];
        int sum = 1;
        int preSum =1;

        for(int i = 0; i < n; i++){
            score[i] = sc.nextInt();
        }
        sc.close();

        for(int i=0; i<k;i++){
            sum= sum * score[i];
        }
        for(int i = k; i<n; i++){
            preSum = sum;
            sum = 1;
            for(int j=i-k+1; j<k+1; j++){
                sum = sum * score[j];
            }
            if(sum>preSum){
                System.out.println("Yes");
            }
            else{
                System.out.println("No");
            }
        }
    }
}

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

n,k=input().split()
n=int(n)
k=int(k)
a=[int(x) for x in input().split()]
ans=1
for i in range(0,k):
    ans*=a[i]
prev=ans
for i in range(k,n):
    ans/=a[i-k]
    ans*=a[i]
    if(ans>prev):
        print("Yes")
    else:
        print("No")
    prev=ans

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n,k=input().split()
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
 
int main()
{
  ll n,k;
  cin>>n>>k;
  ll arr[n],mul=1,l=0;
  for(ll i=0;i<n;i++)
  {
   cin>>arr[i]; 
  }
  for(ll i=0;i<n;i++)
  {
    ll x=mul;
   mul*=arr[i];
    else
    {
      mul=mul/arr[l];
      l++;
      if(x<mul)
      {
       cout<<"YES"<<endl; 
      }
      else
      {
       cout<<"NO"<<endl; 
      }
      
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'else' without a previous 'if'
   18 |     else
      |     ^~~~
Language: Java

import java.util.Scanner;

public class Marks {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        long[] arr = new long[n+1];
        arr[0] = 1;
        for(int i=1; i<n+1; i++){
            arr[i] = sc.nextInt()*arr[i-1];
        }
        for(int i=k; i<n; i++){
            long n1 = arr[i]/arr[i-k];
            long n2 = arr[i+1]/arr[i-k+1];
            // System.out.println(n1+" "+n2);
            if(n1 < n2)
                System.out.println("Yes");
            else
                System.out.println("No");
        }
        sc.close();
    }
}

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

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

int main() {
  int n,k;
  int A[];
  
 
  cin >> n>> k;
  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];
    if(count >1){
      cout << "Yes" << endl;
  }else{
      cout << "No" <, endl;
    }
 
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: storage size of 'A' isn't known
    6 |   int A[];
      |       ^
a.cc:20:21: error: expected primary-expression before ',' token
   20 |       cout << "No" <, endl;
      |                     ^
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

arr1 = list(map(int, input().split()))
arr2 = list(map(int, input().split()))
#print(arr2)
final=list()
start=0
end=arr1[1]
prod=1
for i in range(arr1[1]):
	prod*=arr2[i]
final.append(prod)
while end<arr1[0]:
	prod/=arr2[start]
	start+=1
	prod*=arr2[end]
	end+=1
	final.append(prod)
	pass

sz=len(final)
for i in range(sz-1):
	if(final[i+1]>final[i]):
		print("Yes")
	else:
		print("No")
#print(final)

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #print
    3 | #print(arr2)
      |  ^~~~~
a.cc:25:2: error: invalid preprocessing directive #print
   25 | #print(final)
      |  ^~~~~
a.cc:1:1: error: 'arr1' does not name a type
    1 | arr1 = list(map(int, input().split()))
      | ^~~~
Language: C++

#pragma GCC optimize ("Ofast")
#pragma GCC target(*sse4.2*)
#pragma GCC optimization ("O3")
#pragma GCC optimization ("unroll-loops")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define PB push_back
#define all(x) x.begin(),x.end()
#define vi vector<int>
#define ii pair<int,int>
#define vii vector<ii>
#define vvii vector<vii>
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define read(x) long long x;cin>>x;
#define FOR(a,b,c,d) for(int a=b;a<=c;a+=d)
#define MP make_pair
#define F first
#define S second
#define debug(x) cout<<("#x)<<": "<<(x)<<"\n"
#define SZ(x) x.size()
#define mod 1000000007
#define lg2(x) 63-(__builtin_ctzll(x))
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update>indexed_set;
typedef unsigned long long ull;
typedef long double d64;




int main(){
    fast
 cin>>n;read(k);
 vector<ull>num(n+1);
 vector<ull>T(n+1);
 T[0]=1;
 for(int i=1;i<=n;i++){
    cin>>num[i];
    T[i]=num[i]*T[i-1];
 }
 ll prev,next;
int a=1;int b=k;
    for(int i=1;i<=n-k+1;i++){
    if(i==1)prev=T[k];
   else{
       a++;
       b++;
       next=T[b]/T[a-1];
      if(b<=n&a<=b)if((next>prev)?cout<<"Yes\n":cout<<"No\n");
       prev=next;
   }
    }
return 0;
}


Compiler output:
a.cc:2:20: warning: '#pragma GCC option' is not a string [-Wpragmas]
    2 | #pragma GCC target(*sse4.2*)
      |                    ^
a.cc:19:45: warning: missing terminating " character
   19 | #define debug(x) cout<<("#x)<<": "<<(x)<<"\n"
      |                                             ^
a.cc:2:20: warning: '#pragma GCC option' is not a string [-Wpragmas]
    2 | #pragma GCC target(*sse4.2*)
      |                    ^
a.cc: In function 'int main()':
a.cc:35:7: error: 'n' was not declared in this scope; did you mean 'yn'?
   35 |  cin>>n;read(k);
      |       ^
      |       yn
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define fi first
#define endl "\n"
#define se second
#define ll long long
#define inf 0x3f3f3f3f
#define fast    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int N = 3e5+5;
const ll mod =   1e9+7;
ll arr[N]
int main()
{  fast
ll n,k;
cin>>n>>k;
arr[0]=1;
for(ll i=1;i<=n;i++)
{
	cin>>arr[i];
	arr[i]=arr[i-1]*arr[i];
}
for(int i=k+1;i<=n;i++) {
	ll x=arr[i-1]/arr[i-1-k];
	ll y=arr[i]/arr[i-k];
	if(y>x) {
		cout<<"Yes\n";
	}
	else {
		cout<<"No\n";
	}
}
}



Compiler output:
a.cc:12:1: error: expected initializer before 'int'
   12 | int main()
      | ^~~
Language: C

#include <stdio.h>
#include <math.h>
int main(){
    int n, k;
    long int a[n + 5] = {0}, b;
    scanf("%d%d", &n, &k);
    a[0] = 1;
    for(int i = 1; i <= n; i++){
        scanf("%ld", &b);
        a[i] = a[i-1] * b;
    }
    for(int i = k + 1; i <= n; i++){
        a[i] = a[i] / a[i - k];
    }
    for(int i = k + 1; i <= n; i++){
        if(a[i] > a[i - 1])printf("Yes\n");
        else printf("No\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:25: error: variable-sized object may not be initialized except with an empty initializer
    5 |     long int a[n + 5] = {0}, b;
      |                         ^
Language: C++

n,k = map(int,input().split())
a = list(map(int,input().split()))
b = []
tmp = 1
for i in range(k):
    tmp *= a[i]
b.append(tmp)
for i in range(k,n):
    tmp /= a[i-k]
    tmp *= a[i]
    b.append(tmp)
for i in range(len(b)):
    if i == len(b)-1:    break
    if b[i+1] > b[i]:
        print("Yes")
    else:
        print("No")

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n,k = map(int,input().split())
      | ^
Language: C++

#include<bits/stdc++.h>
#define ull unsigned long long 
using namespace std;

int main(){
  ull n,k;
  cin>>n>>k;
  vector<unsigned long long> 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]){
      cout<<"Yes"<<endl;
    }
    else{
      cout<<"No"<<endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'll' was not declared in this scope; did you mean 'ull'?
   10 |   for(ll i=0;i<n;i++){
      |       ^~
      |       ull
a.cc:10:14: error: 'i' was not declared in this scope
   10 |   for(ll i=0;i<n;i++){
      |              ^
a.cc:14:7: error: 'll' was not declared in this scope; did you mean 'ull'?
   14 |   for(ll i=k;i<n;i++){
      |       ^~
      |       ull
a.cc:14:14: error: 'i' was not declared in this scope
   14 |   for(ll i=k;i<n;i++){
      |              ^
Language: C++

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

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

#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <set>
#include <algorithm>

using namespace std;

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

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

	long float Average = 0;
	long long int buf = 0;
	for (int i = 0; i < N; ++i)
	{
		if (i < K) {
			buf += A[i];
			if (i == K - 1) Average = buf / K;
		}
		else {
			if (Average < A[i]) cout << "Yes" << endl;
			else cout << "No" << endl;
			Average = (Average + A[i]) / 2;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'long' specified with 'float'
   21 |         long float Average = 0;
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;

#define int long long

int main(void) {
    int n, k, prev = 1, curr = 1;
    cin >> n >> k;
    int a[n];
    for (int i = 0 ; i < n ; i++) cin >> a[i];
    for (int i = k - 1 ; i >= 0 ; i--) {
        prev *= a[i];
    }
    for (int i = k + 1 ; i <= n ; i++) {
        curr = prev / a[i - k - 1] * a[i - 1];
        if (curr > prev) {
            cout << "Yes" <<endl;
        } else {
            cout << "No" << endl;
        }
        prev = curr;
    }
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<iostream>
using namespaces std;

int main()
{
  int n,k;
  cin >> n >> k;
  int ar[n],grad[n];
  for(int i=1;i<=(n-k);i++)
  {
    cin>> ar[i];
  }
  for(int i=1;i<=(n-k);i++)
  {
    grad[i+2]=ar[i]*ar[i+1]*ar[i+2];
  }
   for(int i=1;i<=(n-k);i++)
  {
   	if(grad[k+i]>grad[k+i-1])
       cout<< "Yes" << endl;
    else
       cout << "No" << endl;
  }
   return 0;
 }

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:20:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |        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:20:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |        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:22:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |        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:22:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   22 |        cout << "No" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

# cook your dish here
n, k = list(map(int, input().split()))
l = list(map(int, input().split()))
scores = []
start = k-1
kk = k
i = k-1
while i<n:
    cnt = kk
    temp = 0
    ans = 1
    while cnt>0:
        ans = ans*l[i-temp]
        temp=temp+1
        cnt=cnt-1
    scores.append(ans)
    i=i+1
if len(scores)==1:
    print("Yes")
else:
    i = 1
    while i<len(scores):
        if scores[i]>scores[i-1]:
            print("Yes")
        else:
            print("No")
        i = i+1

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #cook
    1 | # cook your dish here
      |   ^~~~
a.cc:2:1: error: 'n' does not name a type
    2 | n, k = list(map(int, input().split()))
      | ^
Language: C++

#include <iostream>

using namespace std;

int main(){
   int n, k;
   double a[200001];
   double pre = 1;

   cin >> n >> k;

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

   for(int i = 0; i < k; i++){
      pre *= a[i] / 10000;
   }

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

      now = pre / a[i - k] * a[i];

      if(pre < now){
         cout << "Yes" << endl;
      }
      else{
         cout << "No" << endl;
      }
    
      pre = now;
   }

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int N;
  iNT k;
  cin>>N>>K;
  int V[N];
  for(int i = 0;i<N;i++)
  {
    cin>>V[i];
  }
  for(int i = K-2;i<N;i++)
  {
    if(V[i] > V[i-K+2]) cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
  }
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'iNT' was not declared in this scope; did you mean 'int'?
    6 |   iNT k;
      |   ^~~
      |   int
a.cc:7:11: error: 'K' was not declared in this scope
    7 |   cin>>N>>K;
      |           ^
Language: C++

#include <iostream>
#include <math.h>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <iomanip>
using namespace std;
#define ll long long int
#define rep(i,n) for(int i = 0; i < n; i++)
const int INF = 1001001001;

int main() {
	ll n,k;
	cin >> n >> k;
	vector<ll> point(n);
	ll sum = 1;
	rep(i,n){
		cin >> point[i];
		if(i < k) sum *= point[i];
	}
	int x = 0;
	rep(i,n){
		x = 0
		if(i>=k){
			x = sum / point[i-k];
			if(sum < (x*point[i])){
				cout << "Yes" << endl;
			}
			else{
				cout << "No" << endl;
			}
			sum =x * point[i];
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: expected ';' before 'if'
   24 |                 x = 0
      |                      ^
      |                      ;
   25 |                 if(i>=k){
      |                 ~~
Language: C++

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

int main(){
    int N,K;
    cin>>N>>K;
    vector<long long> vec(N);
    for(int i=0;i<N;i++){
        cin>>vec.at(i);
    }
    long long mul=1;
    for(int i=0;i<K;i++){
        mul*=vec.at(i);
    }
    vector<bool> result(N-K);
    for(int i=0;i<N-K;i++){
        if(mul<mul*vec.at(K+i)/vec.at(i)){
            cout<<"Yes"<<endl;
            
        }
        else{
            cout<<"No"<<endl;
        }
        mul=ul*vec.at(K+i)/vec.at(i);
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:13: error: 'ul' was not declared in this scope; did you mean 'mul'?
   24 |         mul=ul*vec.at(K+i)/vec.at(i);
      |             ^~
      |             mul
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){
    	int n = Integer.parseInt(sc.next());
      	int k = Integer.parseInt(sc.next());
      	int[] list = new int[n];
      	long first = 0L;
      	long save = 0L;
      	for(int cnt = 0;cnt < n;cnt++){
        	list[cnt] = Integer.parseInt(sc.next());
        }
      	for(int cnt = 0;cnt < k;cnt++){
        	first *= list[cnt];
        }
      	for(int cnt = 0;cnt < n - k;cnt++){
        	for(int i = cnt + 1;i < n - k;i++){
            	save *= list[cnt];
            }
          	if(first < save){
            	System.out.println("Yes");
            }else{
            	System.out.println("No");
            }
          	first = save;
          	save = 0L;
        }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
    	int n = Integer.parseInt(sc.next());
    	                         ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: cannot find symbol
      	int k = Integer.parseInt(sc.next());
      	                         ^
  symbol:   variable sc
  location: class Main
Main.java:11: error: cannot find symbol
        	list[cnt] = Integer.parseInt(sc.next());
        	                             ^
  symbol:   variable sc
  location: class Main
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,k;
  cin>>n>>k;
  vector<long long int> v(n),vv(n);
  for(int i=0;i<n;++i)
    cin>>v[i];
  unsigned long long int ans=1;
  for(int i=0;i<k-1;++i){
    ans=ans*v[i];
  }
  for(int i=k-1;i<n;++i){
    
    if(i!=k-1){
     	vv[i]=ans*v[i];
    }
    else{
     	vv[i]=(ans/v[i-k])*v[i];
    }
    if(vv[i]>vv[i-1]){
      cout<<"Yes"<<"\n";
    }
    else{
      cout<<"No\n";
    }
  }

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

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

typedef unsigned long long int ULLI;

void input(int *, int);
ULLI first(int *, int);
ULLI work(int *, int , int ,ULLI );

int main()
{
	int n, k;
	int* data;
	ULLI before=0, now;

	scanf("%d %d", &n, &k);

	data = (int*)malloc(n * sizeof(int));
	input(data, n);

	before = first(data, n,k);

	for (int i = k; i < n; i++) {
		now = work(data, i, k,before);
		if (now > before)
			printf("Yes\n");
		else
			printf("No\n");
		before = now;
	}

	return 0;
}

void input(int *data, int n)
{
	for (int i = 0; i < n; i++)
		scanf("%d", &data[i]);
}

ULLI first(int *data, int n,int k)
{
	ULLI sum = 1;
	int count = 0;

	n--;

	for (int i = k-1; i >= 0; i--) {
		if (count == k)
			break;
		sum *= data[i];
		count++;
	}

	return sum;
}

ULLI work(int* data, int i, int k,ULLI before)
{
	ULLI sum=before;

	sum /= data[i - k];
	sum *= data[i];

	return sum;
}

Compiler output:
main.c: In function 'main':
main.c:21:18: error: too many arguments to function 'first'
   21 |         before = first(data, n,k);
      |                  ^~~~~
main.c:7:6: note: declared here
    7 | ULLI first(int *, int);
      |      ^~~~~
main.c: At top level:
main.c:41:6: error: conflicting types for 'first'; have 'ULLI(int *, int,  int)' {aka 'long long unsigned int(int *, int,  int)'}
   41 | ULLI first(int *data, int n,int k)
      |      ^~~~~
main.c:7:6: note: previous declaration of 'first' with type 'ULLI(int *, int)' {aka 'long long unsigned int(int *, int)'}
    7 | ULLI first(int *, int);
      |      ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,k;
  cin>>n>>k;
  vector<long long int> v(n),vv(n);
  for(int i=0;i<n;++i)
    cin>>v[i];
  unsigned long long int ans=1;
  for(int i=0;i<k-1;++i){
    ans=ans*v[i];
  }
  for(int i=k-1;i<n;++i){
    
    if(i!=k-1){
     	vv[i]=ans*v[i];
    }
    else{
     	vv[i]=(ans/v[i-k])*v[i];
    }
    if(vv[i]>vv[i-1]){
      cout<<Yes<<"\n";
    }
    else{
      cout<<"No\n";
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: 'Yes' was not declared in this scope
   22 |       cout<<Yes<<"\n";
      |             ^~~
a.cc:27:4: error: expected '}' at end of input
   27 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

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

typedef unsigned long long int ULLI;

void input(int*, int);
ULLI first(int*, int);
ULLI work(int*, int i, int k,ULLI before);

int main()
{
	int n, k;
	int* data;
	ULLI before=0, now;

	scanf("%d %d", &n, &k);

	data = (int*)malloc(n * sizeof(int));
	input(data, n);

	before = first(data, n,k);

	for (int i = k; i < n; i++) {
		now = work(data, i, k,before);
		if (now > before)
			printf("Yes\n");
		else
			printf("No\n");
		before = now;
	}

	return 0;
}

void input(int* data, int n)
{
	for (int i = 0; i < n; i++)
		scanf("%d", &data[i]);
}

ULLI first(int* data, int n,int k)
{
	ULLI sum = 1;
	int count = 0;

	n--;

	for (int i = k-1; i >= 0; i--) {
		if (count == k)
			break;
		sum *= data[i];
		count++;
	}

	return sum;
}

ULLI work(int* data, int i, int k,ULLI before)
{
	ULLI sum=before;

	sum /= data[i - k];
	sum *= data[i];

	return sum;
}

Compiler output:
main.c: In function 'main':
main.c:21:18: error: too many arguments to function 'first'
   21 |         before = first(data, n,k);
      |                  ^~~~~
main.c:7:6: note: declared here
    7 | ULLI first(int*, int);
      |      ^~~~~
main.c: At top level:
main.c:41:6: error: conflicting types for 'first'; have 'ULLI(int *, int,  int)' {aka 'long long unsigned int(int *, int,  int)'}
   41 | ULLI first(int* data, int n,int k)
      |      ^~~~~
main.c:7:6: note: previous declaration of 'first' with type 'ULLI(int *, int)' {aka 'long long unsigned int(int *, int)'}
    7 | ULLI first(int*, int);
      |      ^~~~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
  int N, K;
  cin >> N >> K;
  vector<int> A;
  
  for (int i=0; i<N; i++){
    int a;
    cin >> a;
    A.push_back(a);
  }
  
  for (int i=0; i<N-K; i++){
    if (A[K+i]>A[i]){cout << "Yes";}
    else {cout << "No";}
}

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

#include<its/stdc++.h>
using namespace std;
int main () {
  int N, K;
  cin >> N >> K;
  vector<int>A(N);
  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:1:9: fatal error: its/stdc++.h: No such file or directory
    1 | #include<its/stdc++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <vector>

int main(){
  int N, K;
  cin >> N >> K;
  vector<int> A;
  
  for (int i=0; i<N; i++){
    int a;
    cin >> a;
    A.push_back(a);
  }
  
  for (int i=0; i<N-K; i++){
    if (A[K+i]>A[i]){cout << "Yes";}
    else {cout << "No";}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> A;
      |   ^~~~~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> A;
      |          ^~~
a.cc:12:5: error: 'A' was not declared in this scope
   12 |     A.push_back(a);
      |     ^
a.cc:16:9: error: 'A' was not declared in this scope
   16 |     if (A[K+i]>A[i]){cout << "Yes";}
      |         ^
a.cc:16:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     if (A[K+i]>A[i]){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:17:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     else {cout << "No";}
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import java.util.PriorityQueue;
import java.util.Scanner;

class Main {
    static final int MOD = 1000000007;
    static final int INF = 1 << 30;
    static final int ALF = 26;

    Main() {
        Scanner sc = new Scanner(System.in);
        long ans = 0;
        int N = sc.nextInt();
        int K = sc.nextInt();
        int[] A = new int[N];
        for(int i=0;i<N;i++)A[i]=sc.nextInt();
        SegmentTree st = new SegmentTree(N);
        
        //for(int i=0;i<N;i++)st.update(i, A[i]);
        //int prev = st.getIn(0, K);
        for(int i=K;i<N;i++){
            //int now = st.getIn(i-K, i);
            //System.out.println(now);
            int prev = A[i-K];
            int now = A[i];
            //System.out.println(prev);
            //System.out.println(now);
            System.out.println(prev<now?"Yes":"No");
        }

    }

    public static void main(String[] args) {
        new Main();
    }
}


Compiler output:
Main.java:25: error: cannot find symbol
        SegmentTree st = new SegmentTree(N);
        ^
  symbol:   class SegmentTree
  location: class Main
Main.java:25: error: cannot find symbol
        SegmentTree st = new SegmentTree(N);
                             ^
  symbol:   class SegmentTree
  location: class Main
2 errors
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 low = 0;
  int hi = k-1;
  for(int i = n-k;i > 0;i--)
  {
    if(A[hi + 1] > A[lo])
      cout<<"Yes"<<"\n";
    else
      cout<<"No"<<"\n";
    lo++;
    hi++;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: 'lo' was not declared in this scope; did you mean 'low'?
   15 |     if(A[hi + 1] > A[lo])
      |                      ^~
      |                      low
a.cc:19:5: error: 'lo' was not declared in this scope; did you mean 'low'?
   19 |     lo++;
      |     ^~
      |     low