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


    while(c<=b && k>0)
    {
        c*=2;k--;
    }
    if(b>a && c>b)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;



    return 0;
}







Compiler output:
a.cc:2:5: error: expected unqualified-id before 'while'
    2 |     while(c<=b && k>0)
      |     ^~~~~
a.cc:6:5: error: expected unqualified-id before 'if'
    6 |     if(b>a && c>b)cout<<"Yes"<<endl;
      |     ^~
a.cc:7:5: error: expected unqualified-id before 'else'
    7 |     else cout<<"No"<<endl;
      |     ^~~~
a.cc:11:5: 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> //全てのヘッダファイルをインクルード
 
//ループ
#define rep(i, n) for(int i = 0; i < (n); i++) //普通のループ
#define repr(i, n) for(int i = n; i >= 0; i--) //逆ループ
 
//型名省略
typedef long long ll;
//値
static const ll MX = 100005;
static const ll MX_ll = 1e18;
const double PI = acos(-1); //π
 
using namespace std;
 
//ソート
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))
 
//#include "./lib/generic/search.h"

//文字列入力した小数値を小数点なくして返す
int changeDoubleToInt(string decimal){ 
    decimal.erase(1, 1); //小数点削除
    int n_decimal = atoi(decimal.c_str()); //c_strでchar*に変換後、atoiでintに変換
    return n_decimal;
}

//最大公約数
int gcd(int a, int b){
    if(b == 0) return a;
    return gcd(b, a%b);
}

int main(){
   int a, b, c, k;
   cin >> a >> b >> c >> k;
   rep(i,k){
       if(c<=b || c<=){
           c*=2;
       }
       else if(b<=a){
           b*=2;
       }
       if(c>b && b>a){
           cout << "Yes" << endl;
           return 0;
       }
   }
   cout << "No" << endl;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:22: error: expected primary-expression before ')' token
   38 |        if(c<=b || c<=){
      |                      ^
Language: C++

#include<iostream>
#include<string>
#include<map>
#include<algorithm>

using namespace std;

int main()
{
	int a,b,c,k;
	cin >> a >> b >> c;
	cin >> k;

	bool judge = true;

	for(int i=0; i<k; i++){
		if(a > b){
			b *= 2;
		}
		else if(b > c)
			c *= 2
	}
	if(a < b && b < c)
		cout << "Yes" << endl;

	else
		cout << "No" << endl;


}




Compiler output:
a.cc: In function 'int main()':
a.cc:21:31: error: expected ';' before '}' token
   21 |                         c *= 2
      |                               ^
      |                               ;
   22 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    int k;
    cin>>k;
    while(k){
        while(a>=b and k>0){
            b*=2;
            k--
        }
        if(k<1){
            break;
        }
        while(c>=b && k>0){
            c*=2;
            k--;
        }
        
        if(a<b && b<c){
            cout<<"Yes"<<endl;
        }
        else{
            cout<<"No"<<endl;
        }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ';' before '}' token
   11 |             k--
      |                ^
      |                ;
   12 |         }
      |         ~       
a.cc:27:6: error: expected '}' at end of input
   27 |     }
      |      ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main(){
    int a,b,c,k;
    cin>>a>>b>>c>>k;
    int count=0;
    for(b>a){
        b*=2;
        count++;
    }
    for(c>b){
        c*=2;
        count++;
    }
    if(k<=count){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before ')' token
    8 |     for(b>a){
      |            ^
      |            ;
a.cc:12:5: error: expected primary-expression before 'for'
   12 |     for(c>b){
      |     ^~~
a.cc:11:6: error: expected ';' before 'for'
   11 |     }
      |      ^
      |      ;
   12 |     for(c>b){
      |     ~~~
a.cc:12:5: error: expected primary-expression before 'for'
   12 |     for(c>b){
      |     ^~~
a.cc:11:6: error: expected ')' before 'for'
   11 |     }
      |      ^
      |      )
   12 |     for(c>b){
      |     ~~~
a.cc:8:8: note: to match this '('
    8 |     for(b>a){
      |        ^
a.cc:12:12: error: expected ';' before ')' token
   12 |     for(c>b){
      |            ^
      |            ;
a.cc:16:5: error: expected primary-expression before 'if'
   16 |     if(k<=count){
      |     ^~
a.cc:15:6: error: expected ';' before 'if'
   15 |     }
      |      ^
      |      ;
   16 |     if(k<=count){
      |     ~~
a.cc:16:5: error: expected primary-expression before 'if'
   16 |     if(k<=count){
      |     ^~
a.cc:15:6: error: expected ')' before 'if'
   15 |     }
      |      ^
      |      )
   16 |     if(k<=count){
      |     ~~
a.cc:12:8: note: to match this '('
   12 |     for(c>b){
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main()
{
  int R,G,B,K;
  cin>>R>>G>>B>>K;
  int i = 0;
  while(G <= R)
  {
    G *= 2;
    i++;
  }
  while(B <= G)
  {
    B *= 2;
    i++;
  }
  if(i <= k)
    cout<<"Yes"<<"\n";
  else
    cout<<"No"<<"\n";
}

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define int long long
#define all(sdk) sdk.begin(),sdk.end()
#define mll map<int, int>
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define rep(i,a,b) for(ll i=a;i<b;++i)
#define repd(i,a,b) for(ll i=a;i>=b;--i)
#define mp make_pair
#define hell 1000000007
#define endl '\n'
#define vvll vector<vector<int> >
#define vll vector<int>
#define mint map<int,int>
#define sz(x) (int)x.size()
#define sll set<int>
#define pll pair<int,int>
#define F first
#define S second
#define INF 1e18
#define NINF -1e16

#define nax 200005
bool isPrime(ll n) 
{ 
    if (n <= 1) 
        return false; 
    if (n <= 3) 
        return true; 
    if (n % 2 == 0 || n % 3 == 0) 
        return false; 
    for (int i = 5; i * i <= n; i = i + 6) 
        if (n % i == 0 || n % (i + 2) == 0) 
            return false; 
    return true; 
} 
bool isPowerOfTwo (unsigned int x) 
{ 
  return (!(x&(x-1))); 
}
vll prime;
signed main() {
	//freopen("output.txt","w",stdout);
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	srand (static_cast <unsigned> (time(0)));
	int t=1;
	//cin >> t;
	while (t--) 
	{
		int a,b,c;
      cin >>a>>b>>c;
      int k;
      cin>>k;
      if (b>a && c>b)
        cout <<"Yes";
      else
      {
        while(k>0)
        {
          if (b<a)
            b*=2;
          else if (c<b)
            c*=2;
          else
            break;
          k--;
        }
        if (b>a && c>b)
          cout <<"Yes";
        else
          cout <<"No";
	}
	return 0;
}

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

#include <iostream>
using namespace std;

int main() {
 int a,b,c;
 cin>>a>>b>>;
 int k;
 cin>>k;
 if(c>b && b>a)
 cout<<"Yes\n";
 else{
     int p=(2,k);
     c=c*p;
     if(c>b && c>a)
     cout<<"Yes\n";
     else
     cout<<"No\n";
 }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before ';' token
    6 |  cin>>a>>b>>;
      |             ^
Language: C++

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

int main()
{
  int R,G,B,K;
  cin>>R>>G>>B>>K;
  int i = 0;
  while(G <= R)
  {
    G *= 2;
    i++;
  }
  while(B <= G)
  {
    B *= 2;
    i++;
  }
  if(i <= k)
    cout<<"Yes"<<"\n";
  else
    cout<<"No"<<"\n";

Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: 'k' was not declared in this scope
   19 |   if(i <= k)
      |           ^
a.cc:22:22: error: expected '}' at end of input
   22 |     cout<<"No"<<"\n";
      |                      ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
//if(strcmp(s[i],"AC")==0)
//if(s[l]=='#')
int W_Length(char *str){
	int length = 0;
	while(*str++ != '\0')
		length++;
	return length;
}

void swap(int *a, int *b){
  int temp;
  temp=*a;
  *a=*b;
  *b=temp;
}
//swap(&a, &b)

double deg(double theta){//deg to theta
return theta*(2*3.14159265359)/360;
}

int cmp( const void *p, const void *q ) {
    return *(int*)p - *(int*)q;
}//ちいさい順
//qsort(a,n,sizeof(int),cmp);
//char s[n][11]

int cmp_s(const void * left, const void * right)
{
	char *left_char = (char *)left;
  char *right_char = (char *)right;
  return strcmp(left_char, right_char);
}
//qsort(s,n,sizeof(s[0]),cmp_s);


int main (void)
{
	int a,b,c,k,n,i;

scanf("%d%d%d",&a,&b,&c);
  scanf("%d",&k);
  
	for(i=0;i<k;i++){
      
      if(c>b&&b>a){
      print("Yes");
        return 0;
      }
if(b<a){
b=2*b;
}
      else if(c<b){
      c=c*2;
      }
      if(c>b&&b>a){
      print("Yes");
        return 0;
      }
      

	}
	print("No");
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:51:7: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   51 |       print("Yes");
      |       ^~~~~
      |       lrint
Language: C++

#include<bits/stdc++.h>
#define pb push_back
#define ll long long
#define INF 1e18
#define vec vector<int>
#define REP(i,a,b) for(i=a;i<b;i++)
using namespace std;
int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int a,b,c;
  cin>>a>>b>>c;
  while(b<=a&&k>0)
    b*=2,k--;
  while(c<=b&&k>0)
    c*=2,k--;
  if(b>a && c>b)
    cout<<"Yes\n";
  else 
    cout<<"No\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: 'k' was not declared in this scope
   15 |   while(b<=a&&k>0)
      |               ^
a.cc:17:15: error: 'k' was not declared in this scope
   17 |   while(c<=b&&k>0)
      |               ^
Language: C++

#include <bits/stdc++.h>
#define ll long long 
#define f first
#define s second 
#define mod 1000000007
#define N 500043
#define mp(a,b) make_pair(a,b)
#define loop(a,b) for(int i=a;i<b;i++)
#define test int t; cin >> t; while(t--)
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int a,b,c,k;
    cin >> a >> b >> c >> k;
    int i=0;
    while(i<k&&a>b)
    {
        b*=k;
        i++;
    }
    if(i>=k)
    {
        cout << "No"l
        return 0;
    }
    while(i<k&&b>c)
    {
        c*=k;
        i++;
    }
    if(i>=k)
    {
        cout << "No"l
        return 0;
    }
    else
    {
        cout << "Yes";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:17: error: unable to find string literal operator 'operator""l' with 'const char [3]', 'long unsigned int' arguments
   26 |         cout << "No"l
      |                 ^~~~~
a.cc:36:17: error: unable to find string literal operator 'operator""l' with 'const char [3]', 'long unsigned int' arguments
   36 |         cout << "No"l
      |                 ^~~~~
Language: C++

using namespace std;

#define int long long

const int N = 2e5 + 10;

int32_t main() 
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);    
    int a, b, c, k;
    cin >> a >> b >> c >> k;
    int ans = 0;
    while (b <= a) 
    {
        ++ans;
        b <<= 1;
    }
    while (c <= b)
    {
        ++ans;
        c <<= 1;
    }
    if (ans > k) cout << "No";
    else cout << "Yes";
    return 0;
}

Compiler output:
a.cc:7:1: error: 'int32_t' does not name a type
    7 | int32_t main()
      | ^~~~~~~
a.cc:1:1: note: 'int32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | using namespace std;
Language: C++

c++.h>
typedef long long lint;
using namespace std;

int main() {
    int a, b, c, k;
    cin >> a >> b >> c >> k;
    int num = 0;
    while (a >= b) {
        b *= 2;
        num++;
    }
    while (b >= c) {
        c *= 2;
        num++;
    }
    if (num <= k) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
}

Compiler output:
a.cc:1:1: error: 'c' does not name a type
    1 | c++.h>
      | ^
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> a >> b >> c >> k;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | c++.h>
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:26: error: 'endl' was not declared in this scope
   18 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | c++.h>
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout << "No" << endl;
      |         ^~~~
a.cc:20:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:25: error: 'endl' was not declared in this scope
   20 |         cout << "No" << endl;
      |                         ^~~~
a.cc:20:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
static const int64_t mod=1000000007;
int64_t f(int64_t x,int64_t y){
if(y==0)
  return 1;
  else if(y%2==0)
    return (f(x,y/2)*f(x,y/2))%mod;
  else
    return (x*((f(x,y/2)*f(x,y/2))%mod))%mod;
}
int main(){
 int A,B,C,K;cin>>A>>B>>C>>K;
  int64_t sum=0;
  for(int i=0; ;i++){
  if(A<B){sum+=i;break;}
    else
      B*=2;
  } for(int i=0; ;i++){
  if(B<C){sum+=i;break;}
    else
      C*=2;
  }if(sum<=K)
    cout<<"Yes"<<endl;
  else
    coout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: 'coout' was not declared in this scope
   26 |     coout<<"No"<<endl;
      |     ^~~~~
Language: C++

#include <stdio.h>

int main() {
  int t, k;
  scanf ("%d %d", &t, &k);
  int nilai[t];

  for (int i = 0; i < t; i++) {
    scanf("%d", &scores[i]);
  }
    
  for (int i = 0; i < t-k; i++) {
    (scores[i] < scores[i+k]) ? puts("Yes") : puts("No");
  }
    
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'scores' was not declared in this scope
    9 |     scanf("%d", &scores[i]);
      |                  ^~~~~~
a.cc:13:6: error: 'scores' was not declared in this scope
   13 |     (scores[i] < scores[i+k]) ? puts("Yes") : puts("No");
      |      ^~~~~~
Language: C++

#include <stdio.h>

int main() {
  int t, k;
  scanf ("%d %d", &t, &k);
  int nilai[t];

  for (int i = 0; i < t; i++) {
    scanf("%d", &scores[i]);
  }
    
  for (int i = 0; i < N-K; i++) {
    (scores[i] < scores[i+k]) ? puts("Yes") : puts("No");
  }
    
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'scores' was not declared in this scope
    9 |     scanf("%d", &scores[i]);
      |                  ^~~~~~
a.cc:12:23: error: 'N' was not declared in this scope
   12 |   for (int i = 0; i < N-K; i++) {
      |                       ^
a.cc:12:25: error: 'K' was not declared in this scope
   12 |   for (int i = 0; i < N-K; i++) {
      |                         ^
a.cc:13:6: error: 'scores' was not declared in this scope
   13 |     (scores[i] < scores[i+k]) ? puts("Yes") : puts("No");
      |      ^~~~~~
Language: C

#include<stdio.h>

int main(){
	int n, k;
	scanf("%d %d", &n, &k);
	int lt[n];
	for(int i=0; i<n; i++){
		scanf("%d", &lt[i]);
	}
	for(int i=0; i<c; i++){
		int c = n - k;
		if(lt[i]<=lt[i+c]){
			puts("No");
		}
		else{
			puts("Yes");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:24: error: 'c' undeclared (first use in this function)
   10 |         for(int i=0; i<c; i++){
      |                        ^
main.c:10:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
	int n, k;
	scanf("%d %d", &n, &k);
	//printf("%d %d", n, k);
	int lt[n];
	for(int i=0; i<n; i++){
		scanf("%d", &lt[i]);
	}
	printf("%d", c);
	for(int i=0; i<c; i++){
		//printf("%d", lt[i]);
		if(lt[i]<=lt[i+c]){
			puts("No");
		}
		else{
			puts("Yes");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:22: error: 'c' undeclared (first use in this function)
   11 |         printf("%d", c);
      |                      ^
main.c:11:22: note: each undeclared identifier is reported only once for each function it appears in
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: Java

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


Compiler output:
Main.java:2: error: class max is public, should be declared in a file named max.java
public class max
       ^
1 error
Language: Java

import java.util.*;
public class max
{
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        int n = reader.nextInt();
        int k = reader.nextInt();
        int[] cek = new int[n];
        for(int i=0;i<n;i++){
            cek[i] = reader.nextInt();
        }
        for(int i=1;i<k;i++){
            if(cek[i+2]>cek[i]){
                System.out.println("yes");
            }   else{
                    System.out.println("no");
                }   
        }
    }
}


Compiler output:
Main.java:2: error: class max is public, should be declared in a file named max.java
public class max
       ^
1 error
Language: Java

import java.util.*;
public class Marks
{
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        int n = reader.nextInt();
        int k = reader.nextInt();
        int[] cek = new int[n];
        for(int i=0;i<n;i++){
            cek[i] = reader.nextInt();
        }
        for(int i=1;i<k;i++){
            if(cek[i+2]>cek[i]){
                System.out.println("yes");
            }   else{
                    System.out.println("no");
                }   
        }
    }
}


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

#include<stdio.h>
int main(){
	int n, k; cin >> n >> k;
	vector<int> a(n);
	for(auto &x: a) cin >> x;
 
	int j = 0, i = k;
	while(i < n) {
		// cout << a[i] << " " << a[j] << endl;
		if(a[i] > a[j]) cout << "Yes\n";
		else cout << "No\n";
		j++; i++;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:19: error: 'cin' was not declared in this scope
    3 |         int n, k; cin >> n >> k;
      |                   ^~~
a.cc:4:9: error: 'vector' was not declared in this scope
    4 |         vector<int> a(n);
      |         ^~~~~~
a.cc:4:16: error: expected primary-expression before 'int'
    4 |         vector<int> a(n);
      |                ^~~
a.cc:5:22: error: 'a' was not declared in this scope
    5 |         for(auto &x: a) cin >> x;
      |                      ^
a.cc:10:20: error: 'a' was not declared in this scope
   10 |                 if(a[i] > a[j]) cout << "Yes\n";
      |                    ^
a.cc:10:33: error: 'cout' was not declared in this scope
   10 |                 if(a[i] > a[j]) cout << "Yes\n";
      |                                 ^~~~
a.cc:11:22: error: 'cout' was not declared in this scope
   11 |                 else cout << "No\n";
      |                      ^~~~
Language: C++

#include<stdio.h>
typedef long long ll;
typedef long double f80;
typedef pair<ll,ll> pll;
 
int pct(int x) { return __builtin_popcount(x); }
int pct(ll x) { return __builtin_popcountll(x); }
int bt(int x) { return 31 - __builtin_clz(x); } // floor(log2(x))
int bt(ll x) { return 63 - __builtin_clzll(x); } // floor(log2(x))
int cdiv(int a, int b) { return a / b + !(a < 0 || a % b == 0); }
ll cdiv(ll a, ll b) { return a / b + !(a < 0 || a % b == 0); }
int nxt_C(int x) { int c = x & -x, r = x + c; return (((r ^ x) >> 2) / c) | r; }
ll nxt_C(ll x) { ll c = x & -x, r = x + c; return (((r ^ x) >> 2) / c) | r; }
 
vector<int> get_bits(int mask) {
	vector<int> bb;
	while(mask) { int b = bt(mask); bb.pb(b); mask ^= (1 << b); }
	reverse(all(bb));
	return bb;
}

Compiler output:
a.cc:4:9: error: 'pair' does not name a type
    4 | typedef pair<ll,ll> pll;
      |         ^~~~
a.cc:15:1: error: 'vector' does not name a type
   15 | vector<int> get_bits(int mask) {
      | ^~~~~~
Language: C++

#include<stdio.h>
int main(){
	char str(100);
	scanf("%s",str);
	int arr[26];
	for int(i=0;str[i]!='\0';i++);
	arr[str[i]-'a']++;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected '(' before 'int'
    6 |         for int(i=0;str[i]!='\0';i++);
      |             ^~~
      |             (
a.cc:6:17: error: 'i' was not declared in this scope
    6 |         for int(i=0;str[i]!='\0';i++);
      |                 ^
a.cc:7:17: error: 'i' was not declared in this scope
    7 |         arr[str[i]-'a']++;
      |                 ^
Language: C++

#include <stdio.h>
int main()
{
int N,K;
scanf("%d %d",&N,&K);
int arr[N];
for(int i=0;i<N;i++)
{
	scanf("%d",&arr[i]);
	
  }  
  for(int j=0;j<N;j++)
  {
  	if (arr[j]<arr[K])
  	{
  		printf("Yes")
	  }
  	else
  	{
  		printf("No");
	  }
  }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: expected ';' before '}' token
   16 |                 printf("Yes")
      |                              ^
      |                              ;
   17 |           }
      |           ~
Language: C++

#include <stdio.h>
int main()
{

    int X, Y;
    scanf("%d%d", &X, &Y);
    int arr[X];
    for(int i=0;i<X;i++){
        scanf("%d", &arr[i]);
    }

    for(int j=0;j<X-Y;j++){
        if(arr[j]<arr[j+K]){
            printf("Yes\n");
        } else {
            printf("No\n");
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'K' was not declared in this scope
   13 |         if(arr[j]<arr[j+K]){
      |                         ^
Language: C++

#include <stdio.h>
int main(){
	int a, b;
	int nilai[a];
	scanf("%d %d", &a, &b);
	for(int i = 0; i<a; i++){
		scanf("%d", &nilai[i]);
	}
	for(int i=b;i<a;i++){
        if(score[i-b]<score[i]){
            printf("Yes\n");
        }else{
            printf("No\n");
        }
    }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'score' was not declared in this scope
   10 |         if(score[i-b]<score[i]){
      |            ^~~~~
Language: C++

#include <stdio.h>

int main() {
    int n, k;
    long long int ;
    scanf("%d %d", &n, &k);

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: declaration does not declare anything [-fpermissive]
    5 |     long long int ;
      |               ^~~
Language: C++

#include <stdio.h>

int main (){
	long long int n, k;
	scanf("%lld %lld", &n, &k)
	long long int a[n];
	for(long long int i = 0; i < n; i++){
		scanf("%lld", &a[i]);
	}
	for (long long int i = 1; i <= k;i++){
		int sum1 = 1, sum2 = 1;
		for(int j = i-1; j < k; j++){
			sum1 *= a[j];
			sum2 *= a[j+1];
		}
		if(sum1 < sum2){
			puts("Yes");
		}else{
			puts("No");
		}
	}
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:35: error: expected ';' before 'long'
    5 |         scanf("%lld %lld", &n, &k)
      |                                   ^
      |                                   ;
    6 |         long long int a[n];
      |         ~~~~                       
a.cc:8:32: error: 'a' was not declared in this scope
    8 |                 scanf("%lld", &a[i]);
      |                                ^
a.cc:13:33: error: 'a' was not declared in this scope
   13 |                         sum1 *= a[j];
      |                                 ^
Language: C++

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

int main(){
	long long int K, sum1=1, sum2=1;
	scanf("%d %d", &N, &K);
	long long int num[N];
	int lp = N-K;
	
	for (int i=0; i<N; i++){
		scanf ("%lld", &num[i]);
	}
	
	for (int i=0; i<lp; i++){
		sum1 = 1;
		sum2 = 1;
		for (int j=i; j<K+i; j++){
			sum1*=num[j];
		}
		for (int m=i+1; m<K+1+i; m++){
			sum2*=num[m];
		}
		(sum2 > sum1) ? (printf("Yes\n")) : (printf("No\n"));
	}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: 'N' was not declared in this scope
    6 |         scanf("%d %d", &N, &K);
      |                         ^
a.cc:11:33: error: 'num' was not declared in this scope; did you mean 'enum'?
   11 |                 scanf ("%lld", &num[i]);
      |                                 ^~~
      |                                 enum
a.cc:18:31: error: 'num' was not declared in this scope; did you mean 'enum'?
   18 |                         sum1*=num[j];
      |                               ^~~
      |                               enum
a.cc:21:31: error: 'num' was not declared in this scope; did you mean 'enum'?
   21 |                         sum2*=num[m];
      |                               ^~~
      |                               enum
Language: C++

//1 tahun dibagi N semester
//tiap akhir semester ada ujian
//hasilnya dikasi grade gt kan

//utk tiap semester K-1, gadikasi grade
//utk tiap semester K hingga N
//hasil ujian sebelumnnya di semester ke K dan baik itu dikasi nilai atau tidak
//dikalikan dengan nilai ujian N

//M dapet Ai di akhir semester ke i (A itu nilai) di semester i gt
//dengan i >= K+1, kalo ga dikasi grade ga dianggep (K-1 gadikasi grade mksdnya) ini kan dikasi
//dan i <= N, kan tiap N ujiannya (gmn ada nilai kl gaada ujian)

//tentukan nilai dia utk semester ke i lebih gede tidak dengan hasil semester i-1 (sebelumnya

#include <stdio.h>
int main(){
	int N, K;
	scanf("%d %d", &N, &K);
	
	long long int nilai[N];	//nilainya smw
	
	for(int i = 0; i < N; i++)
	{
		scanf("%lld", &nilai[i]);
	}
	
	
	//kan katanya line ke ini, akan muncul hasilnya, yaudah ya hasilnya diitung
	//nah ini gangerti biar apa
	long long int hasil[N-K+1] = {1};
	for(int i =0; i<N-K+1; i++)	//selama dia bukan itu, dia jalan terus
	{
		for(int j =0, g = i; j<k; j++, g++)
		{
			hasil[i] *= nilai[g];	//utk hasil indeks ke i, selama ia lebih dari K
						//isi dari array hasil ke i (yaitu 1 = biar sama), dikalikan nilainya (kan g = i ) jadi sama ujung2nya
						//si j biar loopingnya bener jalannya
		}
	}	//udah ni ngitungnya dapet kan
	
	//skrg print Yes No nya
	for(int i =0; i<N-K; i++)	//kenapa N-K? kan jaraknya dari K ke N, ya jaraknya itu kan dikurangin kan dr titik A ke B
	{
		if(hasil[i] < hasil[i+1])		//kalo hasil semester i < daripada yg i+1, print Yes
		{
			puts("Yes");
		}
		else if(hasil[i] >= grade[i+1])	//kalo dia lebih kecil ya No
		{
			puts("No");
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:40: error: 'k' was not declared in this scope
   34 |                 for(int j =0, g = i; j<k; j++, g++)
      |                                        ^
a.cc:49:37: error: 'grade' was not declared in this scope
   49 |                 else if(hasil[i] >= grade[i+1]) //kalo dia lebih kecil ya No
      |                                     ^~~~~
Language: C++

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

int main() {
	int N, K; cin >> N >> K;
	vector<long long int>score(N);
	for (int i = 0; i < N; i++)cin >> score[i];
	double sum = 0,next;
	for (int i = 0; i < K; i++) {
		sum += log(score[i]);
	}
	next = sum;
	for (int i = K; i < N; i++) {
		next += log(score[i]) - log(score[i - K]);
		if (next > sum) {
			cout << "Yes" << endl;
		}
		else {
			cout << "No" << endl;
		}
		sum = next;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: 'log' was not declared in this scope; did you mean 'long'?
   12 |                 sum += log(score[i]);
      |                        ^~~
      |                        long
a.cc:16:25: error: 'log' was not declared in this scope; did you mean 'long'?
   16 |                 next += log(score[i]) - log(score[i - K]);
      |                         ^~~
      |                         long
Language: C++

z#include <bits/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.at(i);
  for(int j=0;j<N-K;j++){
    if(A.at(j)<A.at(j+K)) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | z#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'z' does not name a type
    1 | z#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:5:11: error: 'cin' was not declared in this scope
    5 |   int N,K;cin>>N>>K;
      |           ^~~
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> A(N);
      |   ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> A(N);
      |          ^~~
a.cc:7:29: error: 'A' was not declared in this scope
    7 |   for(int i=0;i<N;i++) cin>>A.at(i);
      |                             ^
a.cc:9:8: error: 'A' was not declared in this scope
    9 |     if(A.at(j)<A.at(j+K)) cout<<"Yes"<<endl;
      |        ^
a.cc:9:27: error: 'cout' was not declared in this scope
    9 |     if(A.at(j)<A.at(j+K)) cout<<"Yes"<<endl;
      |                           ^~~~
a.cc:9:40: error: 'endl' was not declared in this scope
    9 |     if(A.at(j)<A.at(j+K)) cout<<"Yes"<<endl;
      |                                        ^~~~
a.cc:10:10: error: 'cout' was not declared in this scope
   10 |     else cout<<"No"<<endl;
      |          ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |     else cout<<"No"<<endl;
      |                      ^~~~
Language: C++

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

int main(){
  int N,K;cin>>N>>K;
  vector<vec> A(N);
  for(int i=0;i<N;i++) cin>>A.at(i);
  for(int j=0;j<N-K;j++){
    if(A.at(j)<A.at(j+K)) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'vec' was not declared in this scope
    6 |   vector<vec> A(N);
      |          ^~~
a.cc:6:13: error: template argument 1 is invalid
    6 |   vector<vec> A(N);
      |             ^
a.cc:6:13: error: template argument 2 is invalid
a.cc:7:31: error: request for member 'at' in 'A', which is of non-class type 'int'
    7 |   for(int i=0;i<N;i++) cin>>A.at(i);
      |                               ^~
a.cc:9:10: error: request for member 'at' in 'A', which is of non-class type 'int'
    9 |     if(A.at(j)<A.at(j+K)) cout<<"Yes"<<endl;
      |          ^~
a.cc:9:18: error: request for member 'at' in 'A', which is of non-class type 'int'
    9 |     if(A.at(j)<A.at(j+K)) cout<<"Yes"<<endl;
      |                  ^~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using lint = long int;
using llint = long long int;
using namespace std;

auto trace = [&](auto vi) {
    for (auto n : vi) cout << n << " ";
    cout << endl;
};

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int n, k;
    cin >> n >> k;

    // input
    vector<llint> scores(n);
    rep(i, n) cin >> scores.at(i);

    // pre
    llint sub_total = 1;
    rep(i, k) sub_total *= scores.at(i);

    vector<llint> totals;
    totals.push_back(sub_total);
    for (int i = k; i < n; i++) {
        sub_total *= scores[i];
        sub_total /= scores[i - k];
        totals.push_back(sub_total);
    }

    // trace(totals);

    // output
    for (int i = 0; i < n - k; i++) {
        if (totals.at(i) < totals.at(i + 1))
            cout << "Yes" << endl;
        else
            cout << "No" << endl;
    }
}


Compiler output:
a.cc:9:15: error: non-local lambda expression cannot have a capture-default
    9 | auto trace = [&](auto vi) {
      |               ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using lint = long int;
using llint = long long int;
using namespace std;

auto trace = [&](auto vi) {
    for (auto n : vi) cout << n << " ";
    cout << endl;
};

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int n, k;
    cin >> n >> k;

    // input
    vector<llint> scores(n);
    rep(i, n) cin >> scores.at(i);

    // pre
    llint sub_total = 1;
    rep(i, k) sub_total *= scores.at(i);

    vector<llint> totals;
    totals.push_back(sub_total);
    for (int i = k; i < n; i++) {
        sub_total *= scores[i];
        sub_total /= scores[i - k];
        totals.push_back(sub_total);
    }

    trace(totals);

    // output
    for (int i = 0; i < n - k; i++) {
        if (totals.at(i) < totals.at(i + 1))
            cout << "Yes" << endl;
        else
            cout << "No" << endl;
    }
}

Compiler output:
a.cc:9:15: error: non-local lambda expression cannot have a capture-default
    9 | auto trace = [&](auto vi) {
      |               ^
Language: Java

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

public class MainC {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        MainC m = new MainC(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    int N;
    int K;
    int[] A;
    
    //入力
    MainC(Scanner sc) {
        this.sc = sc;
        this.N = sc.nextInt();
        this.K = sc.nextInt();
        A = new int[N];
        for (int i=0; i<N; i++) {
        	A[i] = sc.nextInt();
        	
        }
    }
    
    //解答処理
    private List<Boolean> solve() {
    	List<Boolean> judge = new ArrayList<Boolean>();
        
        for (int i=K; i<N; i++) {
        	if (A[i] > A[i-K]) {
        		judge.add(true);
        	} else {
        		judge.add(false);
        	}
        }
        
        return judge;
    }
    
    //出力
    public void show(List<Boolean>answer) {
    	for (int i=0; i<answer.size(); i++) {
    		if (answer.get(i)) {
    			System.out.println("Yes");
    		} else {
    			System.out.println("No");
    		}
    	}
        
    }

}


Compiler output:
Main.java:5: 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;
#define ll long long

int main()
{
ll n,k;
cin>>n>>k;
ll 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:14:14: error: expected ']' before ')' token
   14 | if(a[i]>a[i-k))
      |              ^
      |              ]
a.cc:14:15: error: expected primary-expression before ')' token
   14 | if(a[i]>a[i-k))
      |               ^
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];
  }
  for(int i = k;i<n;i++)
  {
    if(a[i] > a[i-k]){cout<<"Yes\n";}
    else{cout<<"No\n";
  }
}

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

#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
  int n,k;
  cin>>n>>k;
  int arr[n];
  for(int i=0;i<n;i++)
    cin>>arr[i];
  int s=0;
  int tar=k;
  while(tar<n)
  {
    if(arr[start]<arr[tar])
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
    s++;
    tar++;


  }

  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'start' was not declared in this scope; did you mean 'tar'?
   15 |     if(arr[start]<arr[tar])
      |            ^~~~~
      |            tar
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int i,n,k;
    cin>>n>>k;
    int ar[n+1];
    for(i=1;i<=n;i++)
    {
        cin>>a[i];
    }
    for(i=1;i<=n-k;i++)
    {
        if(a[i]<a[k+i])
        {
            cout<<"Yes"<<endl;
        }
        else
        {
            cout<<"No"<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'a' was not declared in this scope; did you mean 'ar'?
   10 |         cin>>a[i];
      |              ^
      |              ar
a.cc:14:12: error: 'a' was not declared in this scope; did you mean 'ar'?
   14 |         if(a[i]<a[k+i])
      |            ^
      |            ar
Language: Java

import java.util.*;
import java.io.*;
 
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());
      	PrintWriter out = new PrintWriter(System.out);
      	ArrayList<Integer> list = new ArrayList<>();
      	for(int cnt = 0;cnt < n;cnt++){
        	list.add(Integer.parseInt(sc.next()));
        }
      	for(int cnt = k;cnt < n;cnt++){
        	if(list.get(i - k) < list.get(cnt)){
            	out.println("Yes");
            }else{
            	out.println("No");
            }
        }
      	out.flush();
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
        	if(list.get(i - k) < list.get(cnt)){
        	            ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

import java.util.*;
import java.io.*;
 
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());
      	PrintWriter out = new PrintWriter(System.in);
      	ArrayList<Integer> list = new ArrayList<>();
      	for(int cnt = 0;cnt < n;cnt++){
        	list.add(Integer.parseInt(sc.next()));
        }
      	int i = 0;
      	for(int cnt = k;cnt < n;cnt++){
        	if(list.get(i) < list.get(cnt)){
            	out.println("Yes");
            }else{
            	out.println("No");
            }
        }
      	out.flush();
    }
}

Compiler output:
Main.java:9: error: no suitable constructor found for PrintWriter(InputStream)
      	PrintWriter out = new PrintWriter(System.in);
      	                  ^
    constructor PrintWriter.PrintWriter(Writer) is not applicable
      (argument mismatch; InputStream cannot be converted to Writer)
    constructor PrintWriter.PrintWriter(OutputStream) is not applicable
      (argument mismatch; InputStream cannot be converted to OutputStream)
    constructor PrintWriter.PrintWriter(String) is not applicable
      (argument mismatch; InputStream cannot be converted to String)
    constructor PrintWriter.PrintWriter(File) is not applicable
      (argument mismatch; InputStream cannot be converted to File)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C++

#include<iostream>
usiing namespace std;
void process(int a, int b, int arr[]);
void show(int x, long ar[]);
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])
    {
      cout<<"\nYes";
    }
    else
    {
      cout<<"\nNo";
    }
  }
}
 
int main()
{
  int n,k;
  
  
  cin>>n>>k;
  int g[n];
  for (int i=0; i<n;i++)
  {
    cin>>g[i];
  }
  process(n,k,g);
  return 0;
}

Compiler output:
a.cc:2:1: error: 'usiing' does not name a type
    2 | usiing namespace std;
      | ^~~~~~
a.cc: In function 'void show(int, long int*)':
a.cc:28:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |       cout<<"\nYes";
      |       ^~~~
      |       std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:32:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   32 |       cout<<"\nNo";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:42:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   42 |   cin>>n>>k;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include<iostream.h>
 
void process(int a, int b, int arr[]);
void show(int x, long ar[]);
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])
    {
      cout<<"\nYes";
    }
    else
    {
      cout<<"\nNo";
    }
  }
}
 
int main()
{
  int n,k;
  int g[n];
  
  cin>>n>>k;
  
  for (int i=0; i<n;i++)
  {
    cin>>g[i];
  }
  process(n,k,g);
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;
void process(int a, int b, int arr[]);
void show(int x, long ar[]);
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])
    {
      cout<<"\nYes";
    }
    else
    {
      cout"\nNo";
    }
  }
}
 
int main()
{
  int n,k;
  int g[n];
  
  cin>>n>>k;
  
  for (int i=0; i<n;i++)
  {
    cin>>g[i];
  }
  process(n,k,g);
  return 0;
}

Compiler output:
a.cc: In function 'void show(int, long int*)':
a.cc:32:11: error: expected ';' before string constant
   32 |       cout"\nNo";
      |           ^~~~~~
      |           ;
Language: C++

#include<iostream.h>
using namespace std;
void process(int a, int b, int arr[]);
void show(int x, long ar[]);
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])
    {
      cout<<"\nYes";
    }
    else
    {
      cout"\nNo";
    }
  }
}
 
int main()
{
  int n,k;
  int g[n];
  
  cin>>n>>k;
  
  for (int i=0; i<n;i++)
  {
    cin>>g[i];
  }
  process(n,k,g);
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
 
void process(int a, int b, int arr[]);
void show(int x, long ar[]);
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])
    {
      cout<<"\nYes";
    }
    else
    {
      cout"\nNo";
    }
  }
}
 
int main()
{
  int n,k;
  int g[n];
  
  cin>>n>>k;
  
  for (int i=0; i<n;i++)
  {
    cin>>g[i];
  }
  process(n,k,g);
  return 0;
}

Compiler output:
a.cc: In function 'void show(int, long int*)':
a.cc:28:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |       cout<<"\nYes";
      |       ^~~~
      |       std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:32:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   32 |       cout"\nNo";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:42:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   42 |   cin>>n>>k;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include<iostream.h>
 
void process(int a, int b, int arr[]);
void show(int x, long ar[]);
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])
    {
      cout<<"\nYes";
    }
    else
    {
      cout"\nNo";
    }
  }
}
 
int main()
{
  int n,k;
  int g[n];
  
  cin>>n>>k;
  
  for (int i=0; i<n;i++)
  {
    cin>>g[i];
  }
  process(n,k,g);
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

void process(int a, int b, int arr[]);
void show(int x, long ar[])
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 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;
}

Compiler output:
main.c: In function 'show':
main.c:6:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    6 | {
      | ^
main.c:23:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   23 | {
      | ^
main.c:38:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   38 | {
      | ^
main.c:51: error: expected '{' at end of input