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

import java.io.*;
 
class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int[] iceCount = new int[10];
        int total;
        while (total != 0) {
            total = Integer.parseInt(br.readLine());
            for (int i = 0; i < total; i++) {
                int readValue = Integer.parseInt(br.readLine());
                iceCount[readValue]++;
            }
            
            for (int i = 0; i < iceCount.length; i++) {
                if (iceCount[i] <= 0) {
                    System.out.println("-");
                } else {
                    for (int j = 0; j < iceCount[i]; j++) {
                        System.out.print("*");
                    }
                    System.out.print("\n");
                }
            }
            iceCount = new int[10];
        }
    }
}

Compiler output:
Main.java:9: error: variable total might not have been initialized
        while (total != 0) {
               ^
1 error
Language: C

include<stdio.h>

int main(void)
{
	int n,i,j,temp;
	int ice[10];
	
	while(scanf("%d",&n)!=0)
	{
		if(n==0)
		{
			printf("\n");
			break;
		}
		else
		{
			for(i=0;i<10;i++)
			{
				ice[i]=0;
			}
			for(i=0;i<n;i++)
			{
				scanf("%d",&temp);
				ice[temp]++;
			}
			for(i=0;i<10;i++)
			{
				if(ice[i]==0)
					printf("-\n");
				else
				{
					for(j=0;j<ice[i];j++) printf("*");
					printf("\n");
				}
			}
		}
	}
	return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

\include<stdio.h>
#define NUM 10
void hist(int);
int main()
{
int ice[NUM];
int i;
for(i=0;i<NUM;i++) ice[i]=0;
scanf("%d",&n);
for(;n>0;n--)
{
scanf("%d",&i);
ice[i]++;
}
for(i=0;i<NUM;i++) hist(ice[i]);
return 0;
}
void hist(int x)
{
if(x)
{
for(;x>0;x--) printf("*");
}
else printf("-");
printf("\n");
}

Compiler output:
main.c:1:1: error: stray '\' in program
    1 | \include<stdio.h>
      | ^
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | \include<stdio.h>
      |         ^
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 | scanf("%d",&n);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | \include<stdio.h>
main.c:9:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 | scanf("%d",&n);
      | ^~~~~
main.c:9:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:13: error: 'n' undeclared (first use in this function)
    9 | scanf("%d",&n);
      |             ^
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:20: error: implicit declaration of function 'hist' [-Wimplicit-function-declaration]
   15 | for(i=0;i<NUM;i++) hist(ice[i]);
      |                    ^~~~
main.c: At top level:
main.c:18:6: warning: conflicting types for 'hist'; have 'void(int)'
   18 | void hist(int x)
      |      ^~~~
main.c:15:20: note: previous implicit declaration of 'hist' with type 'void(int)'
   15 | for(i=0;i<NUM;i++) hist(ice[i]);
      |                    ^~~~
main.c: In function 'hist':
main.c:22:15: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   22 | for(;x>0;x--) printf("*");
      |               ^~~~~~
main.c:22:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:22:15: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:22:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:6: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   24 | else printf("-");
      |      ^~~~~~
main.c:24:6: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:25:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   25 | printf("\n");
      | ^~~~~~
main.c:25:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

\include<stdio.h>
#define NUM 10
void hist(int);
int main()
{
int ice[NUM];
int i,n;
for(i=0;i<NUM;i++) ice[i]=0;
scanf("%d",&n);
for(;n>0;n--)
{
scanf("%d",&i);
ice[i]++;
}
for(i=0;i<NUM;i++) hist(ice[i]);
return 0;
}
void hist(int x)
{
if(x)
{
for(;x>0;x--) printf("*");
}
else printf("-");
printf("\n");
}

Compiler output:
main.c:1:1: error: stray '\' in program
    1 | \include<stdio.h>
      | ^
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | \include<stdio.h>
      |         ^
main.c: In function 'main':
main.c:9:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    9 | scanf("%d",&n);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | \include<stdio.h>
main.c:9:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    9 | scanf("%d",&n);
      | ^~~~~
main.c:9:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:20: error: implicit declaration of function 'hist' [-Wimplicit-function-declaration]
   15 | for(i=0;i<NUM;i++) hist(ice[i]);
      |                    ^~~~
main.c: At top level:
main.c:18:6: warning: conflicting types for 'hist'; have 'void(int)'
   18 | void hist(int x)
      |      ^~~~
main.c:15:20: note: previous implicit declaration of 'hist' with type 'void(int)'
   15 | for(i=0;i<NUM;i++) hist(ice[i]);
      |                    ^~~~
main.c: In function 'hist':
main.c:22:15: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   22 | for(;x>0;x--) printf("*");
      |               ^~~~~~
main.c:22:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:22:15: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:22:15: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:6: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   24 | else printf("-");
      |      ^~~~~~
main.c:24:6: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:25:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   25 | printf("\n");
      | ^~~~~~
main.c:25:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>

using namespace std;

int main() {
  while(cin>>n){
  int x,m,n;
  int a[10000];
  for(int i =0;i<n;i++){
    cin >> m;
    a[m] += 1;
  }
  for(int j =0;j<10;j++){
    if(a[j]==0){
      cout << "-";
    }else{
      for(int k =0;k<a[j];k++){
	cout << "*";
      }
    }
    cout << endl;
  }
  }
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'n' was not declared in this scope
    6 |   while(cin>>n){
      |              ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n;
    cin >> n;
    string t[]{0};
    for (int i=0;i<n;++i){
        cin >> t[i]
    }
    for (int i=0;i<1000000000;++i){
        for (int j=0;j<t.find(i);++j){
            cout << '*';
        }
        cout << endl;
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '}' token
    8 |         cin >> t[i]
      |                    ^
      |                    ;
    9 |     }
      |     ~               
a.cc:11:26: error: request for member 'find' in 't', which is of non-class type 'std::string [1]' {aka 'std::__cxx11::basic_string<char> [1]'}
   11 |         for (int j=0;j<t.find(i);++j){
      |                          ^~~~
Language: C++

case 0:
n[0]++;break;

#include<stdio.h>

int main(){

int n[11]={};
int N,x;
while(1){
scanf("%d",&N);

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

for(int i=0;i<10;i++)
{
if(n[i]>0){
for(int j=0;j<n[i];j++)
printf("*");}
else if(n[i]==0)printf("-");
}
printf("\n");
}
return 0;
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'case'
    1 | case 0:
      | ^~~~
a.cc:2:8: error: expected unqualified-id before 'break'
    2 | n[0]++;break;
      |        ^~~~~
Language: C++

#include <iostream>
#include <string>
int ice[10];
int main(){
	int n;
	whlie(std::cin>>n,n){
		for(int i=0;i<10;++i)ice[i]=0;
		for(int i=0;i<n;++i){
			int a;
			std::cin>>a;
			ice[a]++;
		}
		for(int i=0;i<10;i++){
			if(ice[i]==0)std::cout<<'-'<<std::endl;
			else {
				std::string s(ice[i],'*');
				std::cout<<s<<std::endl;
			}
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'whlie' was not declared in this scope
    6 |         whlie(std::cin>>n,n){
      |         ^~~~~
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int n, a[10], x, n;
int main() {
	while (true) {
		cin >> n;
		if (n == 0) { break; }
		memset(a, 0, sizeof(a));
		for (int i = 0; i < n; i++) {
			cin >> x;
			a[x]++;
		}
		for (int i = 0; i < 10; i++) {
			if (a[i] == 0) { cout << '-' << endl; }
			else {
				for (int j = 0; j < a[i]; j++) { cout << '*'; }
				cout << endl;
			}
		}
	}
}

Compiler output:
a.cc:4:18: error: redefinition of 'int n'
    4 | int n, a[10], x, n;
      |                  ^
a.cc:4:5: note: 'int n' previously declared here
    4 | int n, a[10], x, n;
      |     ^
Language: C++

import java.util.Scanner

import scala.collection.Searching._
import scala.annotation.tailrec
import scala.collection.immutable.{NumericRange, Queue}
import scala.collection.mutable
import scala.io.StdIn.readLine

class IUnionFind(val size: Int) {

  private case class Node(var parent: Option[Int], var treeSize: Int)

  private val nodes = Array.fill[Node](size)(new Node(None, 1))

  def union(t1: Int, t2: Int): IUnionFind = {
    if (t1 == t2) return this

    val root1 = root(t1)
    val root2 = root(t2)
    if (root1 == root2) return this

    val node1 = nodes(root1)
    val node2 = nodes(root2)

    if (node1.treeSize < node2.treeSize) {
      node1.parent = Some(t2)
      node2.treeSize += node1.treeSize
    } else {
      node2.parent = Some(t1)
      node1.treeSize += node2.treeSize
    }
    this
  }

  def connected(t1: Int, t2: Int): Boolean = t1 == t2 || root(t1) == root(t2)

  @tailrec
  private def root(t: Int): Int = nodes(t).parent match {
    case None => t
    case Some(p) => root(p)
  }
}


object Main {
  def solve(sc: => Scanner): Unit = {
    val N = sc.nextInt
    if (N != 0) {
      val A = Array.fill(N)(sc.nextInt).groupBy(x => x).map(x => (x._1, "*" * x._2.length))
      for (i <- Range(0, 10)) {
        println(A.getOrElse(i, "-"))
      }
      solve(sc)
    }
  }

  def gcd(i: Long, j: Long): Long = {
    if (i < j) (gcd(j, i)) else (if (j == 0) (i) else (gcd(j, i % j)))
  }

  def main(args: Array[String]): Unit = {
    val sc: Scanner = new Scanner(System.in)
    solve(sc)
  }
}


Compiler output:
a.cc:37:3: error: stray '@' in program
   37 |   @tailrec
      |   ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import scala.collection.mutable
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:45:1: error: 'object' does not name a type
   45 | object Main {
      | ^~~~~~
Language: C++

/* 1 行目に一日に販売されるアイスクリームの総数 n (1 ≤ n ≤ 10000) が与えられます。
 * 続く n 行に第 i のアイスクリームの種類 ci (0 ≤ ci≤ 9) が与えられます。
 * データセットの数は 20 を超えません。*/
#include<iostream>
using namespace std;
int main(){
	while(true){
		int n;
		cin>>n;
		if(n==0)break;
		int sum[10]={};
		for(int i=0;i<n;i++){
			int b;
			cin>>b;
			sum[b]+=1;
		}
		for(int i=0;i<10;i++){
           if(sum[j]==0){
			   cout<<"-"<<endl;
			for(int j=0;j<sum[i];j++){
				cout<<"*"<<endl;
			}
		}
	}
}					



Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: 'j' was not declared in this scope
   18 |            if(sum[j]==0){
      |                   ^
a.cc:25:8: error: expected '}' at end of input
   25 | }
      |  ^      
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include<cstdio>
#include<algoritm>
#include<iostream>
using namespace std;
int main()
{
	int n,c[10]={0},m;
	while(1)
	{	
		for(int i=0;i<10;i++)
		{
			c[i]=0;
		}
		cin>>n;
		if(n==0)
		{
			break;
		}
		for(int i=1;i<=n;i++)
		{
			cin>>m;
			c[m]+=1;
		}
		for(int i=0;i<10;i++)
		{
			if(c[i]==0)
			{
				cout<<"_"<<end;
			}
			else
			{
				for(int j=0;j<c[i];i++)
				{
					cout<<"*";
				}
				cout<<endl;
			}
		}
	}	
	retutn 0;
}


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

#include<cstdio>
#include<cstring>
int main(){
 int a,j,b[10];
 while(1){
  scanf("%d",&a);
 if(a==0) return 0;
 memset(b,0,sizeof(int)*10);
 for(int i=0;i<a;i++){
  scanf("%d",&j);
  b[j]++;
 }
 for(int i=0;i<10;i++){
  if(s==0){
  printf("-\n");
 continue; 
 }
  for(int s=0;s<b[j];s++){
    printf("*");
  }
  printf("\n");
 }
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: 's' was not declared in this scope
   14 |   if(s==0){
      |      ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int n, t;
    while(cin >> n && n) {
        int hist[10];
        memset(hist, 0, sizeof(hist));
        for(int i = 0; i < n; i++) {
            cin >> t;
            hist[t]++;
        }
        for(int i = 0; i < 10; i++) {
            if(hist[i] == 0) {
                cout << "-" << endl;
            } else {
                for(int j = 0; j < hist[i]; j++) 
                    cout << "*";
                cout << endl;
            }
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'memset' was not declared in this scope
    9 |         memset(hist, 0, sizeof(hist));
      |         ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include<cstdio>

int main(){
	int i,j;
	for(int n;scanf("%d",&n),n;){
		int p[10]={};
		for(i=n;i;--i){
			scanf("%d",&j),++p[j];
		for(i=0;i<10;++i,puts("")){
			for(j=0;j<p[i];++j)
				printf("*");
			if(!p[i])printf("-");
		}
	}
}

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

import java.util.Scanner;

public class A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        for (;;) {
            double n = sc.nextDouble()*16;
            if (n < 0)
                break;
            if (n >= 4096 || n != (int) n)
                System.out.println("NA");
            else
                for (int i = 11; i >= 0; i--)
                    System.out.print((((int) n & 1 << i) > 0 ? 1 : 0) + (i == 4 ? "." : i == 0 ? "\n" : ""));
        }
    }
}



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

#include<stdio.h>


#define limit ( 1 << 8 ) - 1




void seisuu( int over_zero )
{
	int len = 0 ;

	char out[] = { "00000000" } ;


	while( over_zero > 1 )
	{
		out[ len ] = ( over_zero % 2 ) + '0' ;

		over_zero /= 2 ;


		++len ;
	}


	out[ len++ ] = over_zero + '0' ;


	while( len-- )
	{
		printf( "%c" ,out[ len ] ) ;
	}


	return ;
}




bool shousuu( char *out ,double under_zero )
{
	int p = 0 ;


	while( p < 4 )
	{
		under_zero *= 2 ;

		out[ p++ ] = ( int )under_zero + '0' ;


		under_zero -= ( ( int )under_zero / 1 ) ;


		if( under_zero == 0 )
		{
			return true ;
		}
	}


	return false ;
}




int main()
{
	double num ;


	while( true )
	{
		char out[] = { "0000\n" } ;


		scanf( "%lf" ,&num ) ;


		if( num > limit || shousuu( out ,num - ( int )num ) == false )
		{
			puts( "NA" ) ;

			continue ;
		}


		if( num < 0 )
		{
			return 0 ;
		}



		seisuu( ( int )num ) ;


		printf( "." ) ;


		printf( out ) ;
	}
}

Compiler output:
main.c:42:1: error: unknown type name 'bool'
   42 | bool shousuu( char *out ,double under_zero )
      | ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c: In function 'shousuu':
main.c:59:32: error: 'true' undeclared (first use in this function)
   59 |                         return true ;
      |                                ^~~~
main.c:59:32: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:59:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:64:16: error: 'false' undeclared (first use in this function)
   64 |         return false ;
      |                ^~~~~
main.c:64:16: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c: In function 'main':
main.c:75:16: error: 'true' undeclared (first use in this function)
   75 |         while( true )
      |                ^~~~
main.c:75:16: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:83:72: error: 'false' undeclared (first use in this function)
   83 |                 if( num > limit || shousuu( out ,num - ( int )num ) == false )
      |                                                                        ^~~~~
main.c:83:72: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

n;char s[14];main(float d){for(s[8]=46;~scanf("%f",&d);d<0||puts(d-n/16.?"NA":s))for(n=d*16,i=12;i--;n/=2)s[i+i/8]=48+n%2;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n;char s[14];main(float d){for(s[8]=46;~scanf("%f",&d);d<0||puts(d-n/16.?"NA":s))for(n=d*16,i=12;i--;n/=2)s[i+i/8]=48+n%2;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:14: error: return type defaults to 'int' [-Wimplicit-int]
    1 | n;char s[14];main(float d){for(s[8]=46;~scanf("%f",&d);d<0||puts(d-n/16.?"NA":s))for(n=d*16,i=12;i--;n/=2)s[i+i/8]=48+n%2;}
      |              ^~~~
main.c: In function 'main':
main.c:1:41: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | n;char s[14];main(float d){for(s[8]=46;~scanf("%f",&d);d<0||puts(d-n/16.?"NA":s))for(n=d*16,i=12;i--;n/=2)s[i+i/8]=48+n%2;}
      |                                         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | n;char s[14];main(float d){for(s[8]=46;~scanf("%f",&d);d<0||puts(d-n/16.?"NA":s))for(n=d*16,i=12;i--;n/=2)s[i+i/8]=48+n%2;}
main.c:1:41: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | n;char s[14];main(float d){for(s[8]=46;~scanf("%f",&d);d<0||puts(d-n/16.?"NA":s))for(n=d*16,i=12;i--;n/=2)s[i+i/8]=48+n%2;}
      |                                         ^~~~~
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:61: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | n;char s[14];main(float d){for(s[8]=46;~scanf("%f",&d);d<0||puts(d-n/16.?"NA":s))for(n=d*16,i=12;i--;n/=2)s[i+i/8]=48+n%2;}
      |                                                             ^~~~
main.c:1:61: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:93: error: 'i' undeclared (first use in this function)
    1 | n;char s[14];main(float d){for(s[8]=46;~scanf("%f",&d);d<0||puts(d-n/16.?"NA":s))for(n=d*16,i=12;i--;n/=2)s[i+i/8]=48+n%2;}
      |                                                                                             ^
main.c:1:93: note: each undeclared identifier is reported only once for each function it appears in
Language: C

/*PCK2010-5 mÌ¤µ½ñi 2011.8.6*/

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

float Seisuu(float m); /*®ª²«oµÖÌÖvg^Cvé¾*/

int main(void) /*mainÖ*/
{
					/*Ïé¾*/
	float num;		/*üÍ·é\i*/
	float seisuu;	/*SeisuuÖÌ¼øãüpÏ(numÌ®i[Ï)*/
	float syousuu;	/*numÌ¬i[Ï*/
	char bin[9]; 	/*oÍ·éñiÌ®*/
	char bind[5];	/*oÍ·éñiÌ¬*/
	int i,j;			/*[vpÏ*/
	
	scanf("%f", &num);
	
	while(num >= 0){
		for(i = 0; i < 9; i++){
			bin[i] = '0';
			if(i < 5){
				bind[i] = '0';
			}
		}
		seisuu = Seisuu(num);
		syousuu = num - seisuu;
		
		i = 0;
		while((int)seisuu != 0){
			bin[i] = (int)seisuu % 2 + '0';
			seisuu /= 2;
			i++;
			if(i >= 9){
				break;
			}
		}	
		
		j = 0;
		while(syousuu != 0){
			syousuu *= 2;
			bind[j] = Seisuu(syousuu) + '0';
			syousuu -= Seisuu(syousuu);
			j++;
			if(j >= 5) {
				break;
			}
		}
		if (i < 9 && j < 5){
			printf("%s.%s\n",strrev(bin),bind);
		}
		else{
			printf("NA\n");
		}
		scanf("%f", &num);
	}
	
	return (0);
}

float Seisuu(float m) {
	float i;
	
	i = m;
	
	while(!(0<= m && m < 1)){
		m--;
	}
	
	return(i - m);
}

Compiler output:
main.c: In function 'main':
main.c:51:42: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration]
   51 |                         printf("%s.%s\n",strrev(bin),bind);
      |                                          ^~~~~~
      |                                          strsep
Language: C++

// AOJ 0220
#include <iostream>
#include <string>
#include <map>

using namespace std;

int main()
{
	double n;
	while (cin >> n, n >= 0){
		string ret;
		int a = (int)n;
		while (a != 0){
			if (a == 1){
				ret += '1';
				break;
			}
			if (a % 2 == 0){
				a /= 2;
				ret += '0';
			}
			else {
				a /= 2;
				ret += '1';
			}
		}
		// cout << ret.length() << endl;
		for (int i = ret.length(); i < 8; i++) ret += '0';
		// cout << ret.length() << endl;
		reverse(ret.begin(), ret.end());
		ret += '.';

		string ret2;
		map <double, bool> memo;
		bool f = true;
		n -= (int)n;
		while (n != 0){
			if (memo[n]){
				f = false;
				break;
			}
			n *= 2.0;
			if (n >= 1.0){
				ret2 += '1';
				n -= 1.0;
			}
			else {
				ret2 += '0';
			}
			// cout << n << endl;
			memo[n] = true;
		}
		for (int i = ret2.length(); i < 4; i++) ret2 += '0';
		// reverse(ret2.begin(), ret2.end());

		if (!f){
			cout << "NA" << endl;
		}
		else {
			cout << ret << ret2 << endl;
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:17: error: 'reverse' was not declared in this scope
   31 |                 reverse(ret.begin(), ret.end());
      |                 ^~~~~~~
Language: C++

	while(cin>>n,n>=0){
	vector<bool>ans(0);
	queue< vector<bool> >bfs;
	bfs.push(ans);
	while(!bfs.empty()){
		vector<bool>tmp=bfs.front();
		bfs.pop();
		if(tmp.size()>12){
		cout<<"NA"<<endl;
		break;
		}
		double sum=0;
		for(int i=0;i<min(8,(int)tmp.size());i++)if(tmp[i])sum+=pow(2,7-i);
		for(int i=0;i<min(4,(int)tmp.size()-5);i++)if(tmp[8+i])sum+=pow(2,-1*(i+1));
		if(sum==n){
		int cnt=0;
		for(int i=0;i<tmp.size();i++){
		cout<<tmp[i];
		if(cnt==7)cout<<'.';
		cnt++;
		}
		for(int i=0;i<12-tmp.size();i++){
		cout<<'0';
		if(cnt==7)cout<<'.';
		cnt++;
		}
		cout<<endl;
		break;
		}
		tmp.push_back(0);
		bfs.push(tmp);
		tmp.erase(tmp.begin()+(tmp.size()-1));
		tmp.push_back(1);
		bfs.push(tmp);
	}
	}
}

Compiler output:
a.cc:1:9: error: expected unqualified-id before 'while'
    1 |         while(cin>>n,n>=0){
      |         ^~~~~
a.cc:37:1: error: expected declaration before '}' token
   37 | }
      | ^
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<queue>
using namespace std;
int main(){
	double n;
	ios::sync_with_stdio(false);
		//for(int i=0;i<ans.size();i++)cout<<ans[i]<<" ";cout<<endl;
	while(cin>>n){
	if(n<0)break;
	vector<bool>ans(0);
	queue< vector<bool> >bfs;
	bfs.push(ans);
	while(!bfs.empty()){
		vector<bool>tmp=bfs.front();
		bfs.pop();
		if(tmp.size()>12){
		cout<<"NA"<<endl;
		break;
		}
		double sum=0;
		for(int i=0;i<min(8,(int)tmp.size());i++)if(tmp[i])sum+=pow(2,7-i);
		for(int i=0;i<min(4,(int)tmp.size()-5);i++)if(tmp[8+i])sum+=pow(2,-1*(i+1));
		if(sum==n){
		int cnt=0;
		for(int i=0;i<tmp.size();i++){
		cout<<tmp[i];
		if(cnt==7)cout<<'.';
		cnt++;
		}
		for(int i=0;i<12-tmp.size();i++){
		cout<<'0';
		if(cnt==7)cout<<'.';
		cnt++;
		}
		cout<<endl;
		break;
		}
		tmp.push_back(0);
		bfs.push(tmp);
		tmp.erase(tmp.begin()+(tmp.size()-1));
		tmp.push_back(1);
		bfs.push(tmp);
	}
	}

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

#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<queue>
using namespace std;
	ios::sync_with_stdio(false);
int main(){
	double n;

		//for(int i=0;i<ans.size();i++)cout<<ans[i]<<" ";cout<<endl;
	while(cin>>n){
	if(n<0)break;
	vector<bool>ans(0);
	queue< vector<bool> >bfs;
	bfs.push(ans);
	while(!bfs.empty()){
		vector<bool>tmp=bfs.front();
		bfs.pop();
		if(tmp.size()>12){
		cout<<"NA"<<endl;
		break;
		}
		double sum=0;
		for(int i=0;i<min(8,(int)tmp.size());i++)if(tmp[i])sum+=pow(2,7-i);
		for(int i=0;i<min(4,(int)tmp.size()-5);i++)if(tmp[8+i])sum+=pow(2,-1*(i+1));
		if(sum==n){
		int cnt=0;
		for(int i=0;i<tmp.size();i++){
		cout<<tmp[i];
		if(cnt==7)cout<<'.';
		cnt++;
		}
		for(int i=0;i<12-tmp.size();i++){
		cout<<'0';
		if(cnt==7)cout<<'.';
		cnt++;
		}
		cout<<endl;
		break;
		}
		tmp.push_back(0);
		bfs.push(tmp);
		tmp.erase(tmp.begin()+(tmp.size()-1));
		tmp.push_back(1);
		bfs.push(tmp);
	}
	}
}

Compiler output:
a.cc:7:9: error: specializing member 'std::basic_ios<char>::sync_with_stdio' requires 'template<>' syntax
    7 |         ios::sync_with_stdio(false);
      |         ^~~
Language: C++

#include <iostream>
#define rep2(x,from,to) for(int x=(from);(x)<(to);(x)++)
#define rep(x,to) rep2(x,0,to)
using namespace std;
const double EPS = 1e-10;
int main(){
	double d;
	while(cin >> d) {
		if(d == -1) break;
		int ret[13] = {};
		for(int i = 7; i >= -4; --i) {
			if(d>=pow(2,i)) {
				d-=pow(2,i);
				ret[7-i] = 1;
			}
			if(d<EPS) break;
		}
		if(d>=EPS) cout << "NA" << endl;
		else {
			rep(i,8) cout << ret[i];
			cout << ".";
			rep2(i,8,12) cout << ret[i];
			cout << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: 'pow' was not declared in this scope
   12 |                         if(d>=pow(2,i)) {
      |                               ^~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>
#include <set>
#include <math.h>
#include <utility>
#include <stack>
#include <string.h>
#include <complex>
using namespace std;

const int INF = 1<<29;
const double EPS = 1e-8;
typedef vector<int> vec;
typedef pair<int,int> P;


int main(){
    while(1){
        double n;
        scanf("%lf",&n);
        if(n<0)break;
        int a = (int)(n * 16);
        if(a>=(1<<12) || a=<(n*16)){
            cout << "NA" << endl;
        }else{
            for(int i=11;i>=0;i--){
                if(i==3) cout << ".";
                cout << ((a>>i)&1);
            }
            cout << endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:28: error: expected primary-expression before '<' token
   29 |         if(a>=(1<<12) || a=<(n*16)){
      |                            ^
Language: C++

#include<vector>
#include<list>
#include<algorithm>
#include<iostream>
#include<string>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
using namespace std;
int main(){
  int i;
  int n;
  string s,t,u;
  while(cin>>s&&s[0]!='-'){
    n=atoi(s.substr(0,s.find(".")).c_str());
    if(n>255){
      cout<<"NA"<<endl;
      continue;
    }
    t=u="0000";
    for(i=1;i<(int)(s.length()-s.find("."));i++)
      t[i-1]=s[s.find(".")+i];
    if(t[0]>'4'){
      t[0]-=5;
      u[0]++;
    }
    if(t[0]>'1'&&t[1]>'4'){
      t[0]-=2;
      t[1]-=5;
      u[1]++;
    }else if(t[0]>'2'){
      t[0]-=3;
      t[1]+=5;
      u[1x]++;
    }
    if(t[0]>'0'&&t[1]>'1'&&t[2]>'4'){
      t[0]-=1;
      t[1]-=2;
      t[2]-=5;
      u[2]++;
    }
    if(t[1]>'5'&&t[2]>'1'&&t[3]>'4'){
      t[1]-=6;
      t[2]-=2;
      t[3]-=5;
      u[3]++;
    }
    if(t!="0000"){
      cout<<"NA"<<endl;
      continue;
    }
    for(i=0;i<8;i++){
      cout<<n/(int)pow(2,7-i);
      n%=(int)pow(2,7-i);
    }
    cout<<"."<<u<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:9: error: unable to find numeric literal operator 'operator""x'
   35 |       u[1x]++;
      |         ^~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

#define EPS (1e-10)
#define EQ(a,b) (abs((-(b))+((a)))<EPS)

int main(){

	double d;
	while(cin>>d&&!EQ(d,-1)){
		int r = (int)d;
		double im=d-r;
		if(r>=256){
			cout<<"NA"<<endl;
			continue;
		}
		else{
			vector<int> v;
			while(r>0){
				v.push_back(r%2);
				r/=2;
			}
			// ÀÌZ
			bool match=false;
			int s;
			for(int i = 0; i < 16; i++){
				double d=0;
				for(int j = 0; j < 4; j++){
					if((i>>j)&1){
						d+=pow(0.5,j+1);
					}
				}
				if(EQ(d,im)){
					match=true;
					s=i;
					break;
				}
			}
			if(match){
				for(int i = 0; i < 8-v.size(); i++){
					cout<<0;
				}
				for(int i = 0; i < v.size(); i++){
					cout<<v[v.size()-1-i];
				}
				cout<<'.';
				// ¬_Ì\¦
				for(int i = 0; i < 4; i++){
					if((s>>i)&1)
						cout<<1;
					else
						cout<<0;
				}
				cout<<endl;
			}
			else
				cout<<"NA"<<endl;
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:52: error: 'pow' was not declared in this scope
   33 |                                                 d+=pow(0.5,j+1);
      |                                                    ^~~
Language: C++

#include <iostream>

using namespace std;


void solve()
{
	double a[16];
	for(int i = 0; i < 16; ++i)
	{
		a[i] = i / 16.0;
	}
	double n;
	while(cin >> n, n >= 0)
	{
		char c[13];
		bool flag =true;
		for(int i = 0; i < 16; ++i)
		{
			if(n - (int)n == a[i])
			{
				flag = false;
				for(int j = 12; j >= 9; --j)
				{
					c[j] = i % 2 + '0';
					i /= 2;
				}
				break;
			}
		}
		if(flag)
		{
			cout << "NA" << endl;
			goto NEXT;
		}
		c[8] = '.';
		int num = (int)n;
		for(int i = 7; i >= 0; --i)
		{
			c[i] = num % 2 + '0';
			num /= 2;
		}
		for(int i = 0; i < 13; ++i)
		{
			cout << c[i];
		}
		cout << endl;
NEXT:
		;
	}
}

int main()
{
	solve();
	return(0);
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:48:1: error: jump to label 'NEXT'
   48 | NEXT:
      | ^~~~
a.cc:34:30: note:   from here
   34 |                         goto NEXT;
      |                              ^~~~
a.cc:37:21: note:   crosses initialization of 'int num'
   37 |                 int num = (int)n;
      |                     ^~~
Language: C++

#include <cstdio>
#include <cmath>

using namespace std;

int main()
{
	for(char buf[80];gets(buf),buf[0]!='-';){
		double x; sscanf(buf,"%lf",&x);
		
		if(x>=256){
			puts("NA");
			continue;
		}
		if(fmod(x*16,1)>0){
			puts("NA");
			continue;
		}
		int a=x,b=fmod(x,1)*16;
		for(int i=0;i<8;i++)
			putchar('0'+(a>>7-i&1));
		putchar('.');
		for(int i=0;i<4;i++)
			putchar('0'+(b>>3-i&1));
		putchar('\n');
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |         for(char buf[80];gets(buf),buf[0]!='-';){
      |                          ^~~~
      |                          getw
Language: C

import java.util.*;

class Main{
    public static void main(String[] args){
    	Scanner scn = new Scanner(System.in);
    	int m,n;
    	boolean[] players = new boolean[1000];
    	
    	for(m=scn.nextInt(), n=scn.nextInt(); n!=0 || m != 0; m=scn.nextInt(), n=scn.nextInt()){
    		int num = m;
    		
    		for(int i=0; i<m; i++)
    			players[i] = true;
    		
    		for(int i=1,id=0; i<=n; i++){
    			String word = scn.next();
    			String correct;
    			
    			if(i%15 == 0){
    				correct = "FizzBuzz";
    			}else if(i%3 == 0){
    				correct = "Fizz";
    			}else if(i%5 == 0){
    				correct = "Buzz";
    			}else{
    				correct = Integer.toString(i);
    			}
    			
    			if(!word.equals(correct)){
    				players[id] = false;
    				
    				if(--num==1)
    					break;	
    			}
    			
    			while(true){
    				id = (id+1)%m;
    				if(players[id])
    					break;
    			}
    		}
    		
    		for(int i=0; i<m; i++)
    			if(players[i])
    				System.out.print(""+(i+1)+" ");
    		
    		System.out.println();
    	}
    }
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.*;
      |            ^
main.c:3:1: error: unknown type name 'class'
    3 | class Main{
      | ^~~~~
main.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | class Main{
      |           ^
Language: C

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

int main(void)
{
	int m,n;
	int i,j=0,k,ans = 1,num,c = 0;
	bool player[1001] = { 0 },flag = 0,fl2 = 0;
	char str[10],coll[10];
	
	for(;;){
		scanf("%d %d", &m, &n);
		if(m==0)break;
		for(i=0;i<m;i++){
			player[i]=1;
		}
		for(i=0;i<n;i++){
			scanf("%s",str);
			if(fl2==0){
				if(ans%3==0 && ans%5==0){
					strcpy(coll,"FizzBuzz");
					if(strcmp(coll,str)){
						flag=1;
					}
				}
				else if(ans%3==0){
					strcpy(coll,"Fizz");
					if(strcmp(coll,str)){
						flag=1;
					}
				}
				else if(ans%5==0){
					strcpy(coll,"Buzz");
					if(strcmp(coll,str)){
						flag=1;
					}
				}
				else {
					num=atoi(str);
					if(num!=ans){
						flag=1;
					}
				}
				for(;j<m;j++){
					if(player[j]==1){
						if(flag==1){
							player[j]=0;
							flag=0;
						}
						break;
					}
				}
			}
			for(k=0;k<m;k++){
				if(player[k]==1){
					c++;
				}
			}
			if(c==1)fl2=1;
			c=0;
			j++;
			if(j==m)j=0;
			ans++;
		}
		flag=0;
		for(i=0;i<m;i++){
			if(player[i]==1){
				if(flag==1)printf(" ");
				printf("%d",i+1);
				flag=1;
			}
		}
		printf("\n");
		j=0;
		ans=1;
		flag=0;
		fl2=0;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: unknown type name 'bool'
    9 |         bool player[1001] = { 0 },flag = 0,fl2 = 0;
      |         ^~~~
main.c:4:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    3 | #include<stdlib.h>
  +++ |+#include <stdbool.h>
    4 |
Language: C++

#include <stdio.h>

int main()
{
    int n, m;
    char str[16];
    int x;
    int i, j;
    

    
    scanf("%d %d", &m, &n);
    while (n != 0 && m != 0) {
        int p = 1, q = m;
        int players[1005] = {};
        int print[1005];
        int size = 0;
        
        for (i = 1; i <= n; i++) {
            scanf("%s", str);
            
            if ( q > 1) {
                if ( i % 3 == 0 && i % 5 == 0) {
                    if (strcmp(str, "FizzBuzz") != 0) {
                        players[p] = 1;
                    }
                } else if (i % 3 == 0) {
                    if (strcmp(str, "Fizz") != 0) {
                        players[p] = 1;
                    }
                } else if (i % 5 == 0) {
                    if (strcmp(str, "Buzz") != 0) {
                        players[p] = 1;
                    }
                } else {
                    x = 0;
                    for (j = 0; j < strlen(str); j++) {
                        x *= 10;
                        x += str[j] - '0';
                    }
                }
            }

            if (players[p] == 1) q--;
            if (p == m) p = 0;
            do {
                p++;
            } while(players[p] == 1);
        }

        for (i = 1; i <= m; i++) {
            if (players[i] == 0) {
                print[size] = i;
                size++;
            }
        }

        for (i = 0; i < size; i++) {
            if (i) printf(" ");
            printf("%d", print[i]);
        }
        putchar('\n');

        scanf("%d %d", &m, &n);
    }

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:24:25: error: 'strcmp' was not declared in this scope
   24 |                     if (strcmp(str, "FizzBuzz") != 0) {
      |                         ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 | 
a.cc:28:25: error: 'strcmp' was not declared in this scope
   28 |                     if (strcmp(str, "Fizz") != 0) {
      |                         ^~~~~~
a.cc:28:25: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:32:25: error: 'strcmp' was not declared in this scope
   32 |                     if (strcmp(str, "Buzz") != 0) {
      |                         ^~~~~~
a.cc:32:25: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:37:37: error: 'strlen' was not declared in this scope
   37 |                     for (j = 0; j < strlen(str); j++) {
      |                                     ^~~~~~
a.cc:37:37: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include <bits/stc++.h>

using namespace std;

inline int prev(int idx, int size) { idx--; if(idx < 0) idx = size-1; return idx; }
inline void advance(int& idx, int size) { idx++; if(idx == size) idx = 0; }


inline bool isNumber(const string& s, int& ret) {
  ret = -1;
  int tmp = 0;
  int const size=s.size();
  for(int i=0; i<size; i++) {
    if(!isdigit(s[i])) return false;
    (tmp *= 10) += s[i]-'0';
  }
  ret = tmp;
  return true;
}

void remove(vector<int>& player, int& idx) {
  advance(idx, player.size());
  player.erase(player.begin()+prev(idx, player.size()));
  if(idx!=0) idx--;
}

int main() {
  
  int M, N;
  while(cin >> M >> N && (M|N)) {
    int idx = 0;
    vector<int> player(M);
    for(int i=0; i<N; i++) player[i] = i+1;
    for(int fcnt=1; fcnt<=N; fcnt++) {
      string s; cin >> s;
      if(player.size() == 1) continue;
      int num;
      if(s == "Fizz" && fcnt % 3 != 0) remove(player, idx);
      else if(s == "Buzz" && fcnt % 5 != 0) remove(player, idx);
      else if(s == "FizzBuzz" && fcnt % 15 != 0) remove(player, idx);
      else if(isNumber(s, num)) {
        if(num != fcnt) remove(player, idx);
        else if(num % 3 == 0) remove(player, idx);
        else if(num % 5 == 0) remove(player, idx);
        else if(num % 15 == 0) remove(player, idx);
        else advance(idx, player.size());
      }
      else advance(idx, player.size());
    }
    for(int i=0; i<player.size(); i++) {
      if(i) cout << " ";
      cout << player[i];
    }
    cout << endl;
  }
  
  return 0;
}

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

var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var Arr=(input.trim()).split("\n");
while(true){
   var mn=(Arr.shift()).split(" ").map(Number);
   if(mn[0]==0 && mn[1]==0)break;
   var player=[];
   for(var i=0;i<mn[0];i++)player[i]=i+1;
   var arr=[];
   for(var i=0;i<mn[1];i++){
      var v=Arr.shift();
      arr.push(v);
   }
   var i=1;
   var k=0;
   var len=mn[0];
   for(var I=0;I<arr.length;I++){
      var v=arr[I];
      var str="";
      if(i%3==0)str+="Fizz";
      if(i%5==0)str+="Buzz";
      if(str=="")str=i;
      if(v!=str){
         player[k]=false;
         len++;
         if(len==1)break;
      }
      i++;
      do{
      k++;
      if(k>=player.length){
         player=player.filter(function(v){return v!=false;});
         k=0;
      }
      }while(player[k]==false);
   }
   player=player.filter(function(v){return v!=false;});
   console.log(player.join(" "));
}

Compiler output:
a.cc:1:21: warning: multi-character character constant [-Wmultichar]
    1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8');
      |                     ^~~~
a.cc:1:40: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8');
      |                                        ^~~~~~~~~~~~
a.cc:1:54: warning: multi-character character constant [-Wmultichar]
    1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8');
      |                                                      ^~~~~~
a.cc:1:1: error: 'var' does not name a type
    1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8');
      | ^~~
a.cc:2:1: error: 'var' does not name a type
    2 | var Arr=(input.trim()).split("\n");
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'while'
    3 | while(true){
      | ^~~~~
Language: C++

#include<iostream>
#include<string>
#include<sstream>
#include<vector>
#define INF (1 << 18);
using namespace std;

void rist_hen(int hu);
vector<int> batu;
int rist[1111];
int n;

int main(){
  string str[3] = {"Fizz" , "Buzz" , "FizzBuzz" };
  int m;
  string s;
  while(cin >> n >> m && n && m){
    for(int i=0;i<n;i++){
      rist[i] = i+1;
    }
    rist[n-1] = 0;
    batu.clear();
    int now = 0;
    for(int i=1;i<=m;i++){
      cin >> s;
      if(i%3 == 0 && i%5 == 0){
	if(s != str[2]) rist_hen(now);
      }
      else if(i%3 == 0){
	if(s != str[0]) rist_hen(now);
      }
      else if(i%5 == 0){
	if(s != str[1]) rist_hen(now);
      }
      else {
	/*
	string tmp;
	tmp = to_string(i);
	*/
	stringstream ss;
	ss << i;
	string tmp = ss.str();
	if(s != tmp) rist_hen(now);
      }
      now = rist[now];
    }
    int ans[111111];
    int cou = 0;
    for(int i=1;i<=n;i++){
      vector<int>::iterator it;
      it = find(batu.begin(),batu.end(),i);
      if(it != batu.end());
      else{
	ans[cou] = i;
	cou++;
      }
    }
    for(int i=0;i<cou;i++){
      cout << ans[i];
      if(cou-1 == i) cout << endl;
      else cout << " ";
    }
  }
}

void rist_hen(int hu){
  //cout << "HU = " << hu << endl;
  if(hu == 0){
    rist[n-1] = rist[hu];
  }
  else{
    rist[hu-1] = rist[hu];
  }
  batu.push_back(hu+1);
  return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:16: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   51 |       it = find(batu.begin(),batu.end(),i);
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:51:16: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   51 |       it = find(batu.begin(),batu.end(),i);
      |            ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

void rist_hen(int hu);
vector<int> batu;
int rist[1111];
int n,flag;

int main(){
  string str[3] = {"Fizz" , "Buzz" , "FizzBuzz" };
  int m;
  string s;
  while(cin >> n >> m && n && m){
    flag = n;
    for(int i=0;i<n;i++){
      rist[i] = i+1;
    }
    rist[n-1] = 0;
    batu.clear();
    int now = 0;
    for(int i=1;i<=m;i++){
      cin >> s;
      if(flag == 1) continue;
      if(i%3 == 0 && i%5 == 0){
	if(s != str[2]) rist_hen(now);
      }
      else if(i%3 == 0){
	if(s != str[0]) rist_hen(now);
      }
      else if(i%5 == 0){
	if(s != str[1]) rist_hen(now);
      }
      else {
	stringstream ss;
	ss << i;
	string tmp = ss.str();
	if(s != tmp) rist_hen(now);
      }
      now = rist[now];
    }
    int ans[111111];
    int cou = 0;
    for(int i=1;i<=n;i++){
      vector<int>::iterator it;
      it = find(batu.begin(),batu.end(),i);
      if(it != batu.end());
      else{
	ans[cou] = i;
	cou++;
      }
    }
    for(int i=0;i<cou;i++){
      cout << ans[i];
      if(cou-1 == i) cout << endl;
      else cout << " ";
    }
  }
}

Compiler output:
/usr/bin/ld: /tmp/cck51WqP.o: in function `main':
a.cc:(.text+0x1d1): undefined reference to `rist_hen(int)'
/usr/bin/ld: a.cc:(.text+0x22a): undefined reference to `rist_hen(int)'
/usr/bin/ld: a.cc:(.text+0x289): undefined reference to `rist_hen(int)'
/usr/bin/ld: a.cc:(.text+0x2f5): undefined reference to `rist_hen(int)'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using namespace std;
int m,n;

void solve(){
    int x=m;
    int cur=0;

    bool no[10000]={0};
    for(int i=1;i<=n;i++){
        while(no[cur])cur=(cur+1)%m;
        string s;
        cin>>s;
        if(x<=1)continue;

        bool ok=true;
        if(i%3==0&&i%5==0){
            if(s!="FizzBuzz")ok=false;
        }
        else if(i%3==0){
            if(s!="Fizz")ok=false;
        }
        else if(i%5==0){
            if(s!="Buzz")ok=false;
        }
        else{
            stringstream ss;
            string d;
            ss<<i;
            ss>>d;
            if(s!=d)ok=false;
        }
        if(!ok){
            no[cur]=true;
            x--;
        }
        cur=(cur+1)%m;
    }

    bool flag=false;
    for(int i=0;i<m;i++)if(!no[i]){
        if(flag)cout<<" ";
        else flag=true;
        cout<<i+1;
    }
    cout<<endl;
}

int main(){
    while(cin>>m>>n,m||n)solve();
    return 0;
}
#include<bits/stdc++.h>
using namespace std;
int m,n;

void solve(){
    int x=m;
    int cur=0;

    bool no[10000]={0};
    for(int i=1;i<=n;i++){
        while(no[cur])cur=(cur+1)%m;
        string s;
        cin>>s;
        if(x<=1)continue;

        bool ok=true;
        if(i%3==0&&i%5==0){
            if(s!="FizzBuzz")ok=false;
        }
        else if(i%3==0){
            if(s!="Fizz")ok=false;
        }
        else if(i%5==0){
            if(s!="Buzz")ok=false;
        }
        else{
            stringstream ss;
            string d;
            ss<<i;
            ss>>d;
            if(s!=d)ok=false;
        }
        if(!ok){
            no[cur]=true;
            x--;
        }
        cur=(cur+1)%m;
    }

    bool flag=false;
    for(int i=0;i<m;i++)if(!no[i]){
        if(flag)cout<<" ";
        else flag=true;
        cout<<i+1;
    }
    cout<<endl;
}

int main(){
    while(cin>>m>>n,m||n)solve();
    return 0;
}

Compiler output:
a.cc:55:5: error: redefinition of 'int m'
   55 | int m,n;
      |     ^
a.cc:3:5: note: 'int m' previously declared here
    3 | int m,n;
      |     ^
a.cc:55:7: error: redefinition of 'int n'
   55 | int m,n;
      |       ^
a.cc:3:7: note: 'int n' previously declared here
    3 | int m,n;
      |       ^
a.cc:57:6: error: redefinition of 'void solve()'
   57 | void solve(){
      |      ^~~~~
a.cc:5:6: note: 'void solve()' previously defined here
    5 | void solve(){
      |      ^~~~~
a.cc:101:5: error: redefinition of 'int main()'
  101 | int main(){
      |     ^~~~
a.cc:49:5: note: 'int main()' previously defined here
   49 | int main(){
      |     ^~~~