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

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

int main(){
  int n,m;
  cin >> n >> m;
  int sum =0;
  int count =0;
  
  vector<int> a(n);
  for(int i=0; i<n; i++){
    cin >> a[i];
    sum+=a[i];
  }
  long long int q = sum/(4*m);
  reverce sort(a.begin(),a.end());
  if(a[m-1]>=q){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'reverce' was not declared in this scope
   16 |   reverce sort(a.begin(),a.end());
      |   ^~~~~~~
Language: C++

N, M = map(int,input().split())
A = list(map(int,input().split()))
S = sum(A)
cnt = 0
for a in A:
if a >= S / (4*M):
cnt += 1
if cnt >= M:
print("Yes")
 else:
 print("No")

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

int main()
{
  int a,b,c,i,j,ans,ans1;
  cin >> a >> b ;
  int A[a];
  for(i=0;i<a;i++){
  	cin >> A[i] ;
  }

    for(i=0;i<a;i++){
  	if(A[i] >= ans1/(4*b)){
      ans++;} 
  }
  

  
  
  if(ans >= b){
    cout << "Yes" ;
  }
  else{
    cout << "No" ;
  }
  
 
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> a >> b ;
      |   ^~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << "Yes" ;
      |     ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << "No" ;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for((int)(i)=0;(i)<(int)(n);(i)++)
#define ll long long
 
using namespace std;
  
int main(){
  int N,M,sum = 0;
  double div;
  cin >> N >> M;
  vector<int> A(N);
  
  for(int i = 0;i < N;i++){
    cin >> A.at(i);
    sum += A.at(i);
  }
  div = sum / (4 * M);
  
   sort(A.begin(),A.end(),greater<int>());
   
  
   if(A.at(M-1) >= div)){
     cout << "Yes" << endl;
   }else{
     cout << "No" << endl;
   }
  
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:24: error: expected primary-expression before ')' token
   22 |    if(A.at(M-1) >= div)){
      |                        ^
Language: Java

import java.util.Scanner;

class Main{

	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String nums = sc.nextLine();
		String num[] = nums.split(" ");
		int N = Integer.parseInt(num[0]);
		int M = Integer.parseInt(num[1]);
		String inputs = sc.nextLine();
		String input[] = inputs.split(" ");
//		String input = sc.nextLine();
//		System.out.println(input);
//		String As[] = input.split(" ");

		int count = 0;
		int sum = 0;
		for(int i = 0;i < (N - 1);i++){
			sum += Integer.parseInt(input[i]);
		}

		int popular = sum / (4 * M);
		popular = (sum % (4 * M) == 0)?popular1:popular+1;
		for(int i = 0;i < (N - 1);i++){
			if(Integer.parseInt(input[i]) >= popular){
				count++;
			}
		}

		if(count >= M){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}
}


Compiler output:
Main.java:24: error: cannot find symbol
		popular = (sum % (4 * M) == 0)?popular1:popular+1;
		                               ^
  symbol:   variable popular1
  location: class Main
1 error
Language: C++

#include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main(){
	ios_base::sync_with_stdio(false); 
    cin.tie(NULL);  
//	int t;
//	cin>>t;
//	while(t--!=0){
//		//template
//	}  	
	double n,m,sum=0;
	cin>>n>>m;
	int a[n];
	for(int i=0;i<n;i++){
		cin>>a[i];
		sum+=a[i];
	}
	double x=sum/(4*m);
	int count=0;
	for(int i=0;i<n;i++){
		if(x>=a[i])
			count++;
	}
	if(count>m)
		cout<<"Yes"<<"\n";
	else
		cout<<"No"<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
   14 |         int a[n];
      |               ^
a.cc:14:15: error: could not convert 'n' from 'double' to 'long unsigned int'
   14 |         int a[n];
      |               ^
      |               |
      |               double
a.cc:14:15: error: size of array 'a' has non-integral type 'double'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int desc(const void *a, const void *b) {
  return *(int *)b - *(int *)a;
}
int main(){
  double N, M;
  cin >> N >> M;
  double A[N];
  long double all=0;
  double ok;
  for(int i=0;i<N;i++){ 
    cin >> A[i];
    all+=A[i];
  }
  qsort(A , N , sizeof( int ), desc );
  ok=all/(4*M);
  for(int i=0;i<M;i++){
    if(A[i]<ok-1){
      puts("No");
      return 0;
    }
  }
  puts("Yes");
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    9 |   double A[N];
      |            ^
a.cc:9:12: error: could not convert 'N' from 'double' to 'long unsigned int'
    9 |   double A[N];
      |            ^
      |            |
      |            double
a.cc:9:12: error: size of array 'A' has non-integral type 'double'
Language: C++

#include<bits/stdc++.h>
#define mx 100000
#define pb push_back
#define siz(v) v.size();
#define print(a) printf("%d",a)
#define sc1(a) scanf("%d",&a)
using namespace std;

typedef unsigned long  ull;
typedef long long int lli;

int main()
{
 	int n,m;
 	
 	cin>>n>>m;
 	int arr[n+1];
 	int sum=0;
 	for(int i=0;i<n;++i)
 	{
 		cin>>arr[i];
 		sum+=arr[i];
	}
 		
 	int cnt=0;
 	sort(arr,arr+n,greater<int>());
	int chk=(1/4*m))*sum;
	for(int i=0;i<n;++i)
	{
		if (chk<arr[i]) cnt++;
		else
			break;
	}
	if (cnt>=m) cout<<"Yes\n";
	else cout<<"No\n";





 return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:27:24: error: expected ',' or ';' before ')' token
   27 |         int chk=(1/4*m))*sum;
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  double N,M;
  double all;
  cin >> N >> M;

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

  sort(A, A+N,std::greater<int>());

  if(A[M-1] < all/(4*M)){
    cout << "No" <<endl;
  }else{
    cout << "Yes" <<endl; 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    9 |   int A[N];
      |         ^
a.cc:9:9: error: could not convert 'N' from 'double' to 'long unsigned int'
    9 |   int A[N];
      |         ^
      |         |
      |         double
a.cc:9:9: error: size of array 'A' has non-integral type 'double'
a.cc:15:12: error: invalid operands of types 'int [1]' and 'double' to binary 'operator+'
   15 |   sort(A, A+N,std::greater<int>());
      |           ~^~
      |           | |
      |           | double
      |           int [1]
a.cc:17:7: error: invalid types 'int [1][double]' for array subscript
   17 |   if(A[M-1] < all/(4*M)){
      |       ^
Language: Java

import java.util.*;
import java.util.Collections;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    double N = sc.nextDouble();
    double M = sc.nextDouble();
    Double[] A = new Double[N];
    double sum = 0;
    String ret = "Yes";
    for(int i = 0; i < A.length; i++){
      A[i] = sc.nextInt();
      sum += A[i];
    }
    Arrays.sort(A, Collections.reverseOrder());
    for(int i = 0; i < M; i++){
      if(A[i] < sum / (4 * M)){
        ret = "No";
        break;
      }
    }
    System.out.println(ret);
  }
}


Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to int
    Double[] A = new Double[N];
                            ^
Main.java:13: error: incompatible types: int cannot be converted to Double
      A[i] = sc.nextInt();
                       ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  double N,M;
  double all;
  cin >> N >> M;

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

  sort(A, A+N,std::greater<int>());

  if(A[M-1] < all/(4*M)){
    cout << "No" <<endl;
  }else{
    cout << "Yes" <<endl; 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    9 |   double A[N];
      |            ^
a.cc:9:12: error: could not convert 'N' from 'double' to 'long unsigned int'
    9 |   double A[N];
      |            ^
      |            |
      |            double
a.cc:9:12: error: size of array 'A' has non-integral type 'double'
a.cc:15:12: error: invalid operands of types 'double [1]' and 'double' to binary 'operator+'
   15 |   sort(A, A+N,std::greater<int>());
      |           ~^~
      |           | |
      |           | double
      |           double [1]
a.cc:17:7: error: invalid types 'double [1][double]' for array subscript
   17 |   if(A[M-1] < all/(4*M)){
      |       ^
Language: C++

#include <iostream>
#include <vector>
#include <climits>
#include <algorithm>
#include <cmath>
#include <map>
#include <set>
#include <string>
#include <bitset>
#include <utility>
#include <numeric>
#include <queue>
#include <stack>

using ll = long long;
using namespace std;

constexpr int MOD = 1e9 + 7;
constexpr ll MOD_LL = ll(1e9) + 7;

int main(void) {
	int n, m;
	cin >> n >> m;
	
	vector<int> a(n);
	int sum = 0;
	for(int i = 0; i < n; ++i) {
		cin >> a[i];
		sum += a[i];
	}
	
	int ng = 0;
	for(int i = 0; i < n; ++i) {
		if( sum <= 4 * m * a[i] ) res++;
	}
	
	if( m <= res ) cout << "Yes" << endl;
	else cout << "No" << endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:43: error: 'res' was not declared in this scope
   34 |                 if( sum <= 4 * m * a[i] ) res++;
      |                                           ^~~
a.cc:37:18: error: 'res' was not declared in this scope
   37 |         if( m <= res ) cout << "Yes" << endl;
      |                  ^~~
Language: C++

        if (count>=M)
            printf("YES");
        else
            printf("NO");

Compiler output:
a.cc:1:9: error: expected unqualified-id before 'if'
    1 |         if (count>=M)
      |         ^~
a.cc:3:9: error: expected unqualified-id before 'else'
    3 |         else
      |         ^~~~
Language: Java

import java.util.*;
  class Main{
  public static void main(String[] args){
  	int m,n;
    Scanner s=new Scanner(System.in);
    m=s.nextInt();
    n=s.nextInt();
    int[] a=new int[n];
    int sum=0;
    for(int i=0;i<=n;i++){
      a[i]=s.nextInt();
      sum+=a;
  }
    Arrays.sort(a);
    int cnt=0;
    for(int i=0;i<=m;i++){
      if(a[i]>=1/4*m) cnt++;
    }
    if(cnt>=n){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
 }

Compiler output:
Main.java:12: error: bad operand types for binary operator '+'
      sum+=a;
         ^
  first type:  int
  second type: int[]
1 error
Language: Java


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int m = sc.nextInt();
        int[] shohin = new int[num];
        int sum = 0;
        int sumFlg = 0;
        if(m == 0){
            System.out.println("No");
        }
        for (int i = 0; i < num; i++){
            shohin[i] = sc.nextInt();
            sum = sum + shohin[i];
        }
        for (int k = 0; k < num - 1; k++){
            for (int l = k + 1; l < num - 1; l++){
                if(shohin[k] < shohin [l]){
                    int tmp = shohin[k];
                    shohin[k] = shohin[l];
                    shohin[l] = tmp;
                }
            }
        }
        for (int j = 0; j < m; j++){
            if(shohin[j] < (sum / (4 * m))){
                if ((sum % (4 * m) == 0){
                    sumFlg = sumFlg + 1;
                }
            }else {
                sumFlg = sumFlg + 1;
            }
        }
        if (sumFlg == m){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }

    }
}


Compiler output:
Main.java:30: error: ')' expected
                if ((sum % (4 * m) == 0){
                                        ^
1 error
Language: Java

import java.util.*;

public class ABC1612{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);

    int x= 0;
    int N = scan.nextInt();
    int M = scan.nextInt();
    int souhyou = 0;
    int syouhin[] = new int[N];
    for(int i = 0;i<N;i++){
      syouhin[i] = scan.nextInt();
      souhyou += syouhin[i];
    }
    int zyouken = 0;
    zyouken = souhyou/(4*M)+1;

    for(int i = 0;i < N;i++){
      if(syouhin[i] >= zyouken){
        x++;
      }
    }
    if(x >= M){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


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

#include<bits/stdc++.h>
using namespace std;
#define fori(i,a,n) for(i=a;i<=n;i++)
#define ford(i,n,a) for(i=n;i>=a;i--)
typedef long long ll;
typedef double db;
typedef long double ld;
typedef unsigned long long ull;
int n,m,i,ans,a[2000];
double k;
int main()
{
	cin>>n>>m;
	fori(i,1,n)
	{
		scanf("%d",&a[i]);
		ans+=a[i];
	}
	sort(a+1,a+1+n);
	k=(double)(1/4m);
	ford(i,n,n-m+1)
	if (a[i]<k*ans) 
	{
		puts("No");
		return 0;
	}
	puts("Yes");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:22: error: unable to find numeric literal operator 'operator""m'
   20 |         k=(double)(1/4m);
      |                      ^~
Language: C

#include<stdio.h>

int main(){
	int N, i = 0, M, sel;
	unsigned int s = 0;
	scanf("%d %d", &N, &M);
	sel = N;
	int a[N];
	for(i = 0; i < N; i++){	
		scanf("%d", &(a[i]));
	}
	for(i = 0; i < N; i++){
		s += a[i];
	}
	s = s / (4 * M);
	for(i = 0; i < N; i++){	
		if( s => a[i]) sel--;
	}
	if(sel >= M){
		printf("Yes\n");
	}else{
		printf("No\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:24: error: expected expression before '>' token
   17 |                 if( s => a[i]) sel--;
      |                        ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define test int t; cin >> t; while (t--)
#define fast ios::sync_with_stdio(NULL); cin.tie(NULL)
#define mod 1000000007
#define endl "\n"
#define gcd(m,n) __gcd(m,n)
#define lcm(m,n) m*(n/GCD(m,n))
#define all(v) v.begin(),v.end()
#define ll long long
typedef vector<ll> vecll;
typedef vector<int> veci;
typedef vector<char> vecc;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
#define pb push_back
#define mp make_pair
#define time 1.0 * clock() / CLOCKS_PER_SEC
 
 
int main(){
    fast;
    ll n,m,s=0;
    cin >>n>>m;
    vecll ar(n);
    for(auto &x:ar){cin>>x;s+=x;} 
    ll ans=0;
    ll c=s/(4*m);
    for(auto x:ar){
        if(x>=c){
            ans++;
          if(ans==m){
        	cout<<"Yes";
            return 0;
        }
    }
    cout<<"No";
    return 0;
}

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

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

int main() {
  int total,ninki;
  int totalNum = 0;
  doule quarter = 0;
  
  cin >> total >> ninki;
  vector<int> vec(total);
  
  for(int i = 0; i < total; i++){
    cin >> vec.at(i);
    
    totalNum += vec.at(i);
  }
  
  if(totalNum < 4){
    cout << "No";
    return 0;
  }
  
  quarter = totalNum / (4 * vec.at(ninki-1));
  sort(vec.begin(),vec.end(),greater<int>());

  if(vec.at(ninki-1) > quarter) cout << "Yes";
  else cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'doule' was not declared in this scope; did you mean 'double'?
    7 |   doule quarter = 0;
      |   ^~~~~
      |   double
a.cc:23:3: error: 'quarter' was not declared in this scope
   23 |   quarter = totalNum / (4 * vec.at(ninki-1));
      |   ^~~~~~~
Language: Java

import java.util.*;
  class Main{
  public static void main(String[] args){
  	int m,n;
    Scanner s=new Scanner(System.in);
    m=s.nextInt();
    n=s.nextInt();
    int[] a=new int[n];
    int sum=0;
    for(int i=0;i<=n;i++){
      a[i]=s.nextInt();
      sum+=a;
  }
    Arrays.sort(a);
    int cnt=0;
    for(int i=0;i<=m;i++){
      if(a[i]>=4*m) cnt++;
    }
    if(cnt>=n){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
 }

Compiler output:
Main.java:12: error: bad operand types for binary operator '+'
      sum+=a;
         ^
  first type:  int
  second type: int[]
1 error
Language: C++

N, M = map(int,input().split())
A = list(map(int,input().split()))
A.sort(reverse=True)
S = sum(A)
if A[M-1] >= S / (4*M):
print("Yes")
else:
print("No")

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N, M = map(int,input().split())
      | ^
Language: Java

import java.util.*;
  class Main{
  public static void main(String[] args){
  	int m,n;
    Scanner s=new Scanner(System.in);
    m=s.nextInt();
    n=s.nextInt();
    int[] a=new int[n];
    int sum=0;
    for(int i=0;i<=n;i++){
      a[i]=s.nextInt();
      sum+=a;
  }
    Arrays..sort(a);
    int cnt=0;
    for(int i=0;i<=m;i++){
      if(a[i]>=4*m) cnt++;
    }
    if(cnt>=n){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
 }

Compiler output:
Main.java:14: error: illegal '.'
    Arrays..sort(a);
           ^
Main.java:14: error: not a statement
    Arrays..sort(a);
    ^
2 errors
Language: C++

import java.util.*;
  class Main{
  public static void main(String[] args){
  	int m,n;
    Scanner s=new Scanner(System.in);
    m=s.nextInt();
    n=s.nextInt();
    int[] a=new int[n];
    int sum=0;
    for(int i=0;i<=n;i++){
      a[i]=s.nextInt();
      sum+=a;
  }
    Arrays..sort(a);
    int cnt=0;
    for(int i=0;i<=m;i++){
      if(a[i]>=4*m) cnt++;
    }
    if(cnt>=n){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
 }

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:9: error: expected ':' before 'static'
    3 |   public static void main(String[] args){
      |         ^~~~~~~
      |         :
a.cc:3:27: error: 'String' has not been declared
    3 |   public static void main(String[] args){
      |                           ^~~~~~
a.cc:3:36: error: expected ',' or '...' before 'args'
    3 |   public static void main(String[] args){
      |                                    ^~~~
a.cc:25:3: error: expected ';' after class definition
   25 |  }
      |   ^
      |   ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:5: error: 'Scanner' was not declared in this scope
    5 |     Scanner s=new Scanner(System.in);
      |     ^~~~~~~
a.cc:6:7: error: 's' was not declared in this scope
    6 |     m=s.nextInt();
      |       ^
a.cc:8:8: error: structured binding declaration cannot have type 'int'
    8 |     int[] a=new int[n];
      |        ^~
a.cc:8:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:8: error: empty structured binding declaration
a.cc:8:11: error: expected initializer before 'a'
    8 |     int[] a=new int[n];
      |           ^
a.cc:11:7: error: 'a' was not declared in this scope
   11 |       a[i]=s.nextInt();
      |       ^
a.cc:14:5: error: 'Arrays' was not declared in this scope
   14 |     Arrays..sort(a);
      |     ^~~~~~
a.cc:14:12: error: expected unqualified-id before '.' token
   14 |     Arrays..sort(a);
      |            ^
a.cc:14:18: error: 'a' was not declared in this scope
   14 |     Arrays..sort(a);
      |                  ^
a.cc:20:7: error: 'System' was not declared in this scope
   20 |       System.out.println("Yes");
      |       ^~~~~~
a.cc:22:7: error: 'System' was not declared in this scope
   22 |       System.out.println("No");
      |       ^~~~~~
Language: Java

importjava.util.*;
  class Main{
  public static void main(String[] args){
  	int m,n;
    Scanner s=new Scanner(System.in);
    m=s.nextInt();
    n=s.nextInt();
    int[] a=new int[n];
    int sum=0;
    for(int i=0;i<=n;i++){
      a[i]=s.nextInt();
      sum+=a;
  }
    Arrays.sort(a);
    int cnt=0;
    for(int i=0;i<=m;i++){
      if(a[i]>=4*m) cnt++;
    }
    if(cnt>=n){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
 }

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
importjava.util.*;
^
1 error
Language: C++

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

bool isBigthan(int i) {
 return () 
}
int main() {
  int N,M;
  cin >> N;
  cin >> M;
  vector<int> A(N);
  int total = 0;
  for(int i=0;i<N;i++) {
  	int a;
    cin >> a;
    A[i] = a;
    total += a;
  }
  
  int count = count_if(A.begin(), A.end(), 
           [&total, &M](int i)->bool{return (i>=total/4/M);}
  cout << (count >= M ? "Yes":"No") << endl;
}


Compiler output:
a.cc: In function 'bool isBigthan(int)':
a.cc:7:10: error: expected primary-expression before ')' token
    7 |  return ()
      |          ^
a.cc:7:11: error: expected ';' before '}' token
    7 |  return ()
      |           ^
      |           ;
    8 | }
      | ~          
a.cc: In function 'int main()':
a.cc:23:61: error: expected ')' before 'cout'
   23 |            [&total, &M](int i)->bool{return (i>=total/4/M);}
      |                                                             ^
      |                                                             )
   24 |   cout << (count >= M ? "Yes":"No") << endl;
      |   ~~~~                                                       
a.cc:22:23: note: to match this '('
   22 |   int count = count_if(A.begin(), A.end(),
      |                       ^
Language: Java

importjava.util.*;
  class Main{
  public static void main(String[] args){
  	int m,n;
    Scanner s=new Scanner(System.in);
    m=s.nextInt();
    n=s.nextInt();
    int[] a=new int[n];
    int sum=0;
    for(int i=0;i<=n;i++){
      a[i]=s.nextInt();
      sum+=a;
  }
    Arrays..sort(a);
    int cnt=0;
    for(int i=0;i<=m;i++){
      if(a[i]>=4*m) cnt++;
    }
    if(cnt>=n){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
 }

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
importjava.util.*;
^
Main.java:14: error: illegal '.'
    Arrays..sort(a);
           ^
Main.java:14: error: not a statement
    Arrays..sort(a);
    ^
3 errors
Language: C

#include <stdio.h>
int main (void){
  int a=0, b=0,sum=0,c=0;
  int hyou[100]={0};
  
  scanf("%d %d", &a ,&b);
  for(int i = 0;i < a;i++){
    scanf("%d", &hyou[i]); 
    sum+=hyou[i];
  }
  for(int j = 0;j < a;j++){
    if(hyou[j] < sum/(4*b)){
      c++;
    }

    if(c==0){
      printf("Yes\n");
    }else{
      printf("No\n");
    }
    
  
  return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
// type alias
typedef long long LL;
typedef pair<int,int> II;
typedef tuple<int,int,int> III;
typedef vector<int> VI;
typedef vector<string> VS;
typedef unordered_map<int,int> MAPII;
typedef unordered_set<int> SETI;
template<class T> using VV=vector<vector<T>>;
// minmax
template<class T> inline T SMIN(T& a, const T b) { return a=(a>b)?b:a; }
template<class T> inline T SMAX(T& a, const T b) { return a=(a<b)?b:a; }
// repetition
#define FORE(i,a,b) for(int i=(a);i<=(b);++i)
#define REPE(i,n)  for(int i=0;i<=(n);++i)
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  for(int i=0;i<(n);++i)
#define FORR(x,arr) for(auto& x:arr)
#define SZ(a) int((a).size())
// collection
#define ALL(c) (c).begin(),(c).end()
// DP
#define MINUS(dp) memset(dp, -1, sizeof(dp))
#define ZERO(dp) memset(dp, 0, sizeof(dp))
// stdout
#define println(args...) fprintf(stdout, ##args),putchar('\n');
// debug cerr
template<class Iter> void __kumaerrc(Iter begin, Iter end) { for(; begin!=end; ++begin) { cerr<<*begin<<','; } cerr<<endl; }
void __kumaerr(istream_iterator<string> it) { (void)it; cerr<<endl; }
template<typename T, typename... Args> void __kumaerr(istream_iterator<string> it, T a, Args... args) { cerr<<*it<<"="<<a<<", ",__kumaerr(++it, args...); }
template<typename S, typename T> std::ostream& operator<<(std::ostream& _os, const std::pair<S,T>& _p) { return _os<<"{"<<_p.first<<','<<_p.second<<"}"; }
#define __KUMATRACE__ true
#ifdef __KUMATRACE__
#define dump(args...) { string _s = #args; replace(_s.begin(), _s.end(), ',', ' '); stringstream _ss(_s); istream_iterator<string> _it(_ss); __kumaerr(_it, args); }
#define dumpc(ar) { cerr<<#ar<<": "; FORR(x,(ar)) { cerr << x << ','; } cerr << endl; }
#define dumpC(beg,end) { cerr<<"~"<<#end<<": "; __kumaerrc(beg,end); }
#else
#define dump(args...)
#define dumpc(ar)
#define dumpC(beg,end)
#endif

// $ cp-batch PopularVote | diff PopularVote.out -
// $ g++ -std=c++14 -Wall -O2 -D_GLIBCXX_DEBUG -fsanitize=address PopularVote.cpp && ./a.out

/*
 
 4/4/2020
 
 5:02-5:13 WA
 
 */

const int MAX_N=1e6+1;
int A[MAX_N];
int N,M;

void solve() {
  sort(A,A+N),reverse(A,A+N);
  int sum=accumulate(A,A+N,0);
  long double t=1.0*sum/(4*M);
  int cnt=0;
  REP(i,N) if(A[i]>=t) ++cnt;
  cout<<(cnt>=M?"Yes":"No")<<endl;
}

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout<<setprecision(12)<<fixed;
  
  cin>>N>>M;
  REP(i,N) cin>>A[i];
  solve();
  
  return 0;
}


Compiler output:
a.cc:62:15: error: stray '\1' in program
   62 |   int sum=accu<U+0001>mulate(A,A+N,0);
      |               ^~~~~~~~
a.cc: In function 'void solve()':
a.cc:62:11: error: 'accu' was not declared in this scope; did you mean 'acct'?
   62 |   int sum=accumulate(A,A+N,0);
      |           ^~~~
      |           acct
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
                
      int main() {
        int N, M;
        vector<int> A(N);
        int soutoku=0;
        int hantei=0;

        cin >> N >> M;
          for(int i=0; i<N; i++){
            cin >> A.at(i);
          }
                
        sort(A.begin(), A.end());
        reverse(A.begin(), A.end());
         
        for(int i=0; i<N; i++){
          soutoku=soutoku+A.at(i);
        }
        
        for(int i=0; i<M; i++){
          if(A.at(i)>=soutoku/(4*M)){
            hantei++;
          }
        }

        if(N==M&&N=1){cout << "Yes" << endl;}
        else if(hantei<M){
          cout << "No" << endl;
        }
        else{
          cout << "Yes" << endl;
          }
        return 0;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:28:16: error: lvalue required as left operand of assignment
   28 |         if(N==M&&N=1){cout << "Yes" << endl;}
      |            ~~~~^~~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for((int)(i)=0;(i)<(int)(n);(i)++)
#define ll long long
 
using namespace std;
 
int N,M,sum=0;

 
int main(){
  cin >> N >> M;
    int count = M;
  vector<int> A(N);
  
  for(int i = 0;i < N;i++){
    cin >> A.at(i);
    sum += A.at(i);
  }
  
   sort(A.begin(),A.end(),greater<int>());
   
  
  for(int i = 0;i < N;i++){
    
    if((double)A.at(i) >= (sum / (4 * M))){
                count--;
          if(count == 0){
      cout << "Yes" << endl;
      break;
    }

    }else{
            cout << "No" << endl;
            break;
       
  }
  
    return 0;
}


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

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

int main(void){
    int n,m,a[10000],b=0,c;
    scanf("%d%d",&n,&m);
    for (int i=1;i<=n;i++){
        scanf("%d",&a[i]);
        b += a[i];
    }
    c = b/(4*m)
    for (int j=1;j<=n-1;j++){
        for (int k=j+1;k<=n;k++){
            if (a[j] < a[k]){
                int tmp = a[j];
                a[j] = a[k];
                a[k] = tmp;
            }
        }
    }
    if (a[m] >= c){
        printf("Yes");
    }else{
        printf("No");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:16: error: expected ';' before 'for'
   11 |     c = b/(4*m)
      |                ^
      |                ;
   12 |     for (int j=1;j<=n-1;j++){
      |     ~~~
Language: C

#include <stdio.h>

int main() {

    int N;
    int M;
    int A[N];
    int sum;
    double threshold;
    int count;

    sum = 0;
    count = 0;
    
    scanf("%d %d", &N, &M);

    for (i = 0; i < N; i++) {
        scanf("%d", &A[i]);
        sum += A[i];
    }

    threshold = sum / (4 * M);

    for (i = 0; i < N; i++) {
        if(A[i] >= threshold)
                count++;
    }

    if(count >= M) printf("Yes");
    else printf("No");

    return 0;

}

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

import java.util.Scanner;
public class Main
{
	public static void main(String[] args)
    {
     	 Scanner sc = new Scanner(System.in);
      	
     	String[] sep = sc.nextLine().split(" ");
      	int n = Integer.parseInt(sep[0]);
      	int m = Integer.parseInt(sep[1]);
      	int[] bigger = new int[n];
      	String[] sepa = sc.nextLine().split(" ");
      	int sumVote = 0;
      	for(int i = 0; i < n; i++)
        {
         	bigger[i] =  Integer.parseInt(sepa[i]);
          	sumVote += bigger[i];
        }
      	int judge = 0;
      	for(int i = 0; i < n; i++)
        {
          	int amari = sumVote % (4 * m);
            if(bigger[i] > sumVote / (4 * m))
            {
                  judge++;
            }else if(bigger[i] == sumVote / (4 * m) && sumVote % (4 * m)){
             	 judge++;
            }
        }
      
      if(judge >= m)
      {
        	System.out.print("Yes");
      }else{
        	System.out.print("No");
      }
    }
}

Compiler output:
Main.java:26: error: bad operand types for binary operator '&&'
            }else if(bigger[i] == sumVote / (4 * m) && sumVote % (4 * m)){
                                                    ^
  first type:  boolean
  second type: int
1 error
Language: C++

#include <bits/stdc++.h>
#include <vector>
#include <algorithm>
using namespace std;
 
int main() {
    int N,M;
  cin >> N >> M;
  // N要素の配列で初期化
  vector<int> vec(N);
 
  // N個の入力を受け取る
  for (int i = 0; i < N; i++) {
    cin >> vec.at(i);
  }
  
int i;
int sum=0;
for(i=0; i<=N; i++){
sum=sum+vec[i];
}
//cout << sum << endl;
sort(vec.rbegin(),vec.rend());
if(vec.at(M) >= 1/4*M){
  cout << "Yes" << endl;
}
  else{
    cout << "No" << endl;
  }
  

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

#include <stio.h>

int main() {

    int N;
    int M;
    int A[N];
    int sum;
    double threshold;
    int count;

    sum = 0;
    count = 0;
    
    scanf("%d %d", &N, &M);

    for (i = 0; i < N; i++) {
        scanf("%d", &A[i]);
        sum += A[i];
    }

    threshold = sum / (4 * M);

    for (i = 0; i < N; i++) {
        if(A[i] >= threshold)
                count++;
    }

    if(count >= M) printf("Yes");
    else printf("No");

    return 0;

}

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

#include <iostream>
#include <numeric>
#include <vector>

using namespace std;

int main() {
  float n, m;
  float index;
  float sum;
  bool flag = true;
  float<int> v;
  cin >> n >> m;
 
  while(n--){
    float temp;
    cin >> temp;
    v.push_back(temp);
  }
  
  sum = accumulate(v.begin(), v.end(), 0);
  //cout << sum;
  
  for(int i = 0; i < v.size(); i++){
    if( m <= (4*v[i]/sum) ){
      v[i] = 0;
    }
  }
  
  sum = accumulate(v.begin(), v.end(), 0);
  
  sum ? cout << "Yes" << endl : cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'float' is not a template
   12 |   float<int> v;
      |   ^~~~~
a.cc:18:7: error: request for member 'push_back' in 'v', which is of non-class type 'float'
   18 |     v.push_back(temp);
      |       ^~~~~~~~~
a.cc:21:22: error: request for member 'begin' in 'v', which is of non-class type 'float'
   21 |   sum = accumulate(v.begin(), v.end(), 0);
      |                      ^~~~~
a.cc:21:33: error: request for member 'end' in 'v', which is of non-class type 'float'
   21 |   sum = accumulate(v.begin(), v.end(), 0);
      |                                 ^~~
a.cc:24:24: error: request for member 'size' in 'v', which is of non-class type 'float'
   24 |   for(int i = 0; i < v.size(); i++){
      |                        ^~~~
a.cc:25:18: error: invalid types 'float[int]' for array subscript
   25 |     if( m <= (4*v[i]/sum) ){
      |                  ^
a.cc:26:8: error: invalid types 'float[int]' for array subscript
   26 |       v[i] = 0;
      |        ^
a.cc:30:22: error: request for member 'begin' in 'v', which is of non-class type 'float'
   30 |   sum = accumulate(v.begin(), v.end(), 0);
      |                      ^~~~~
a.cc:30:33: error: request for member 'end' in 'v', which is of non-class type 'float'
   30 |   sum = accumulate(v.begin(), v.end(), 0);
      |                                 ^~~
Language: C

#include <stdio.h>
int main (void){
  int a=0, b=0,sum=0,c=0;
  int hyou[100]={0};
  
  scanf("%d %d", &a ,&b);
  for(int i = 0;i < a;i++){
    scanf("%d", &hyou[i]); 
    sum+=hyou[i];
  }
  for(int j = 0;j < a;j++){
    if(hyou[j] < sum/(4*b)){
      c++;
    }

    if(c==0){
      printf("Yes\n");
    }else{
      printf("No\n");
    }

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

#include <iostream>
#include <cmath>
#include <cstdio>

using namespace std;

int main(int argc, char const *argv[])
{
	int sum=0;
	int M=0;

	int n,m;
	cin>>n>>m;
	
	int a[n];
	for(int i=0;i<n;i++){
		cin>>a[i];
		sum+=a[i];
	}
	float t= (float)(1/((float)4*m))*sum; //divison lession

	for(int i=0;i<n;i++){
		if((int)t<=a[i]){
			M+=1;
		}
	}

	if(M>=m){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}



Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:33:10: error: expected '}' at end of input
   33 |         }
      |          ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
Language: C++

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

int main() {
  int M, N;
  cin >> M >> N;
  
  vector<int> vote(N);
  
  for (int i = 0; i < N; i++) {
    cin >> vote.at(i);
  }
  
  int sum = 0;
  
  for (int i = 0; i < N; i++) {
    sum += vote.at(i);
  }
  
  sort(vote.begin(), vote.end());
  reverse(vote.begin(), vote.end());
  
    if (vote.at(N) >= sum / (4 * M)) {
      cout << "Yes" << endl;
    }
    else { cout << "No"; }
  }
}


Compiler output:
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C

#include <stio.h>

int main() {

    int N;
    int A[N];
    int sum;
    double threshold;
    int count;

    sum = 0;
    count = 0;
    
    scanf("%d %d", &N, &M);

    for (i = 0; i < N; i++) {
        scanf("%d", &A[i]);
        sum += A[i];
    }

    threshold = sum / (4 * M);

    for (i = 0; i < N; i++) {
        if(A[i] >= threshold)
                count++;
    }

    if(count >= M) printf("Yes");
    else printf("No");

    return 0;

}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int N,M;
    cin>>N>>M;
    int arr[N];
    int total=0;
    for(int i=0;i<N;i++)
    {
        cin>>arr[i];
        total+=arr[i];
    }
    sort(arr,arr+N,greater<int>());
    if(arr[N-M]<ceil(total/(4*M)))
    {
        cout<<"No";
    }
    else
        court<<"Yes";

}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: 'court' was not declared in this scope
   20 |         court<<"Yes";
      |         ^~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
    unsigned int m,n;
     cin>>n>>m;
     if(m>=1&&m<=100&&n>=1&&n<=100)
     {
         vector<unsigned int>a(n);
         a.resize(n);
         for(int y=0;y<n;y++)
         {
             cin>>a[y];
             if(a[y]<=1000&&a[y]>=1)
              continue;
             else
             exit(0);
         }
         for(int i=0;i<n;i++)
         {
             int k=a[i];
             for(int j=i+1;j<n-1;j++)
                if(k==a[j])
                  exit(1);

         }
         int k=0;
         k=accumulate(a.begin(),a.end(),k);

           int c=0;
          for(int p=0;p<n;p++)
          {
              if(a[p]>=(k/(4*m)))
               if(c<m)
                c++;




          }

         if(m==c)
            cout<<"yes";
          else
            cout<<"no";


     }
     else
        exit(0);



 return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:30:12: error: 'accumulate' was not declared in this scope
   30 |          k=accumulate(a.begin(),a.end(),k);
      |            ^~~~~~~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
 
int main(){
  int N,M,sum=0;
  double k;
  cin>>N>>M;
  int ans=N;
  vector<int> a(N);
    for(int i=0;i<N;i++){
      cin>>a[i];
      sum+=a[i];
    }
  for(int i=0;i<N;i++){
    if(a[i]=<sum/4/M){ans--;}
  }
  if(ans>=M){cout<<"Yes";}
  else{cout<<"No";}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected primary-expression before '<' token
   17 |     if(a[i]=<sum/4/M){ans--;}
      |             ^
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int main(int argc, char const *argv[])
{
	int sum=0;
	int M=0;

	int n,m;
	scanf("%d%d",&n,&m);
	
	int a[n];
	for(int i=0;i<n;i++){
		scanf("%d", &a[i]);
		sum+=a[i];
	}
	float t= (float)(1/((float)4*m))*sum; //divison lession

	for(int i=0;i<n;i++){
		if((int)t<=a[i]){
			M+=1;
		}
	}

	if(M>=m){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}




Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:32:10: error: expected '}' at end of input
   32 |         }
      |          ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    double n,m;
    cin>>n>>m;
    double a[n];
    double count1=0;
    double sum=0;
    for(int i=0;i<n;i++){
        cin>>a[i];
        sum=sum+a[i];
    }
    for(int i=0;i<n;i++){
            double s=(double)(a[i]);
            double d=(double)((1/(4*m))*sum);
       if(s>=d){
            count1++;
       }
    }
     if(count1>=m){
        cout<<"Yes";
       }
       else cout<<"No";


}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    6 |     double a[n];
      |              ^
a.cc:6:14: error: could not convert 'n' from 'double' to 'long unsigned int'
    6 |     double a[n];
      |              ^
      |              |
      |              double
a.cc:6:14: error: size of array 'a' has non-integral type 'double'
Language: C

#include<stdio.h>

int main(void)
{
	long int a, b;
	long int A[100];
	long int sum = 0;
	long int i;
	long int check = 0;

	scanf("%ld %ld", &a, &b);

	for (i = 0; a > i; i++) {
		scanf("%ld", &(A[i]);
		sum = sum + A[i];
	}

	for (i = 0; a > i; i++) {
		if (sum <= 4 * b * A[i]) {
			check++;
		}
	}

	if (b > check) {
		printf("No");
	}

	else {
		printf("Yes");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:37: error: expected ')' before ';' token
   14 |                 scanf("%ld", &(A[i]);
      |                      ~              ^
      |                                     )
main.c:15:34: error: expected ';' before '}' token
   15 |                 sum = sum + A[i];
      |                                  ^
      |                                  ;
   16 |         }
      |         ~
Language: C++

#include <iostream>

using namespace std;

int main() {
    int N,M,i,ans=0,sum=0;
    cin>>N>>M;
    int A[N];
    for(i=0;i<N;i++){
        cin>>A[i];
    }
    for(i=0;i<N;i++){
        sum+=A[i];
    }
    sort(A, A+N);
    int X= (sum/M)*0.25;
    while(M){
        if(A[M]>X){
            ans++;
        }
        M--;
    }
    if(ans==M){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   15 |     sort(A, A+N);
      |     ^~~~
      |     short
Language: C++

#includeclude<bits/stdc++.h>
#define llu unsigned long long
#define ll long long
#define INF 0x3f3f3f3f
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define endl "\n"
 
using namespace std;
 
int main()
{
	fast
	int n,m;
	cin>>n>>m;
	int total=0, arr[n], cnt=0;
	for(int i=0; i<n; i++)
	{
		cin>>arr[i];
		total+=arr[i];
	}
	sort(arr,arr+n);
	int k=ceil(total/(4*m));
	if(arr[n-m]>=k)
		cout<<"Yes";
	else
		cout<<"No";	
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includeclude
    1 | #includeclude<bits/stdc++.h>
      |  ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:14: error: 'ios_base' has not been declared
    5 | #define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |              ^~~~~~~~
a.cc:12:9: note: in expansion of macro 'fast'
   12 |         fast
      |         ^~~~
a.cc:5:47: error: 'cin' was not declared in this scope
    5 | #define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |                                               ^~~
a.cc:12:9: note: in expansion of macro 'fast'
   12 |         fast
      |         ^~~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includeclude<bits/stdc++.h>
a.cc:5:55: error: 'NULL' was not declared in this scope
    5 | #define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |                                                       ^~~~
a.cc:12:9: note: in expansion of macro 'fast'
   12 |         fast
      |         ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | #includeclude<bits/stdc++.h>
a.cc:5:61: error: 'cout' was not declared in this scope
    5 | #define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |                                                             ^~~~
a.cc:12:9: note: in expansion of macro 'fast'
   12 |         fast
      |         ^~~~
a.cc:5:61: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |                                                             ^~~~
a.cc:12:9: note: in expansion of macro 'fast'
   12 |         fast
      |         ^~~~
a.cc:21:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   21 |         sort(arr,arr+n);
      |         ^~~~
      |         short
a.cc:22:15: error: 'ceil' was not declared in this scope
   22 |         int k=ceil(total/(4*m));
      |               ^~~~
Language: C++

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

int main() {
  int N, M, allVote, item;
  cin >> N >> M;
  # include
  allVote = 0;
  vector<int> voteList(N);
  for (int i = 0; i < N; i++) {
    cin >> item;
    voteList.at(i) = item;
    allVote += item;
  }
  sort(voteList.begin(), voteList.end());
  (voteList.begin(), voteList.end());
  
  if (voteList.at(M - 1) > allVote / (4 * M)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc:7:12: error: #include expects "FILENAME" or <FILENAME>
    7 |   # include
      |            ^
a.cc: In function 'int main()':
a.cc:16:18: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::begin() [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator]', declared with attribute 'nodiscard' [-Wunused-result]
   16 |   (voteList.begin(), voteList.end());
      |    ~~~~~~~~~~~~~~^~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:873:7: note: declared here
  873 |       begin() _GLIBCXX_NOEXCEPT
      |       ^~~~~
Language: C++

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

int main() {
  int M, N;
  cin >> M >> N;
  
  vector<int> vote(N);
  
  for (int i = 0; i < N; i++) {
    cin >> vote.at(i);
  }
  
  int sum = 0;
  
  for (int i = 0; i < N; i++) {
    sum += vote.at(i);
  }
  
  for (int i = 0; i < N; i++) {
    if (vote.at(i) < sum / (4 * M)) {
      cout << "Yes" << endl;
    }
    else { cout << "No"; }
  }


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

int N, M, l,i=0,A[1000];
	cin >> N >> M ;
	while (cin >> l) {
		A[i] = l;
	}
	//cin >> A;//Aiの配列
	cout << N << " " << M << " " << A << endl;

Compiler output:
a.cc:2:9: error: 'cin' does not name a type
    2 |         cin >> N >> M ;
      |         ^~~
a.cc:3:9: error: expected unqualified-id before 'while'
    3 |         while (cin >> l) {
      |         ^~~~~
a.cc:7:9: error: 'cout' does not name a type
    7 |         cout << N << " " << M << " " << A << endl;
      |         ^~~~
Language: C++

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

int main(){
	int n,m;
	cin>>n>>m;
	int a[n];
	LL total_votes = 0;
	for(int i=0;i<n;i++){
		cin>>a[i];
		total_votes += a[i];
	}
//	sort(a,a+n);
	LL barrier = total_votes/(4*m);
	int res = 0;
	for(int i=0;i<n;i++){
		if(a[i]>=barrier) res++;
		if(res>=m) break
	}
	if(res>=m) cout<<"Yes";
	else cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:33: error: expected ';' before '}' token
   19 |                 if(res>=m) break
      |                                 ^
      |                                 ;
   20 |         }
      |         ~
Language: C++


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

int main(){
	int n, m;
	cin >> n >> m;
	vector<int> a(n);
	int total = 0;
	for (int i = 0; i < n; ++i){
		cin >> a[i];
		total += a[i];
		}
	
	string res;
	int count = 0;
	//sort(a.begin(), a.end(), greater<int>());
	for (int i = 0; i < n; ++i)
		if (a[i] > total / (4 * m)) 
			++count;
	if (count => m) res = "Yes";
	else res = "No";

	cout << res;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: expected primary-expression before '>' token
   21 |         if (count => m) res = "Yes";
      |                    ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(void){
    // Your code here!
    int N,M,all=0;
    cin>>N>>M;
    vector<double> A(N);
    for(auto &x:A){
        cin>>x;
        all+=x;
    }
    double t = all/M/4;
    sort(A.begin(), A.end(),std::greater<int>());
    for(int i=0;i<M;i++){
        if(A[i]<t){
            cout<<"No"<<endl;
            return 0;
        }
    }
    cout<<"Yes"<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:22:23: error: expected '}' at end of input
   22 |     cout<<"Yes"<<endl;
      |                       ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^