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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define MP make_pair
#define PB push_back
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define REP(i,n) for (int i=0;i<(n);i++)
using namespace std;
int main(){
  int m, n;
  char s[9];
  while(scanf("%d%d", &m, &n) && m && n){
      vector<bool>mem(m);
      rep(i, m) mem[i] = false;
      int p = 0, c = 1;
      FOR(i, 1, n+1){
    scanf("%s", s);
    if(c < m){
      int f = 0;
      if(i % 15 == 0){
        if(strcmp(s, "FizzBuzz")) f = 1;
      }else if(i % 5 == 0){
        if(strcmp(s, "Buzz")) f = 1;
      }else if(i % 3 == 0){
        if(strcmp(s, "Fizz")) f = 1;
      }else{
        if(i != atoi(s)) f = 1;
      }
     
      if(f) mem[p] = 1, ++c;
      do{
        p = (p+1)%m;
      }while(mem[p]);
    }
      }
      int f = 0;
      rep(i, m){
    if(!mem[i]){
      printf(f ? " %d":"%d", i + 1);
      f = 1;
    }
      }
      puts("");
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: 'i' was not declared in this scope
   14 |       rep(i, m) mem[i] = false;
      |           ^
a.cc:14:7: error: 'rep' was not declared in this scope
   14 |       rep(i, m) mem[i] = false;
      |       ^~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

bool isCorrect(int n, string s)
{
    string solution;
    if (n % 3 == 0 && n % 5 == 0) solution = "FizzBuzz";
    else if (n % 3 == 0) solution = "Fizz";
    else if (n % 5 == 0) solution = "Buzz";
    else solution = to_stirng(n);
    return solution == s;
}

int main()
{
    int M, N;
    while (cin >> M >> N, N || M)
    {
        bool isExist[1000] = {};
        fill_n(isExist, M, true);
        int cnt = M, p = 0;
        for (int i = 1; i <= N; i++, p = (p + 1) % M)
        {
            while (!isExist[p]) p = (p + 1) % M;
            string s;
            cin >> s;
            if (!isCorrect(i, s))
            {
                isExist[p] = false;
                if (--cnt == 1) break;
            }
        }

        vector<int> ans;
        for (int i = 0; i < M; i++)
        {
            if (isExist[i]) ans.push_back(i);
        }
        printf("%d", ans[0] + 1);
        for (int i = 1; i < ans.size(); i++)
        {
            printf(" %d", ans[i] + 1);
        }
        puts("");
    }
    return 0;
}

Compiler output:
a.cc: In function 'bool isCorrect(int, std::string)':
a.cc:11:21: error: 'to_stirng' was not declared in this scope
   11 |     else solution = to_stirng(n);
      |                     ^~~~~~~~~
Language: C++

#include<iostream>
#include<queue>
#include<string>
#include<algorithm>
#include<vector>

using namespace std;

int main(){
  int m, n, s, i;
  while(cin >> m >> n, m != 0 || n != 0) {
    queue<int> q;
    for(int j = 0; j < m; j++) q.push(j+1);
    i = 1;
    while(n--) {
      if(q.size() != 1) {
	string no;
	cin >> no;
	int p = q.front(); q.pop();
	if(p%3 == 0 && p% 5 == 0) {
	  if(no == "FizzBuzz") q.push(p);
	}
	else if(i % 3 == 0 && no == "Fizz") q.push(p);
	else if(i % 5 == 0 && no == "Buzz")  q.push(p);
	else if(i % 3 != 0 && i % 5 != 0 && '0' <= no[0] && no[0] <= '9') q.push(p);
	i++;
      }
      else cin >> no;
    }
    
    vector<int> v(1050);
    while(q.size()) {
      v.push_back(q.front());
      q.pop();
    }
    sort(v.begin(), v.end());
    while(v.size()) {
      if(v[0]) {
	cout << v[0];
	if(v.size() - 1) cout << ' ';
      }
      v.erase(v.begin());
    }
    cout << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:19: error: 'no' was not declared in this scope; did you mean 'n'?
   28 |       else cin >> no;
      |                   ^~
      |                   n
Language: C++

#include <iostream>
#include <sstream>
#include<string>
using namespace std;
string IntToString(int number)
{
    stringstream ss;
    ss << number;
    return ss.str();
}

int main(){
    int NumPlayer,NumRepeats;
    while(cin >> NumPlayer >> NumRepeats && (NumPlayer|NumRepeats) ){
        int alive = NumPlayer;
        char *player;
        player = new char[NumPlayer];
        for(int i=0;i<NumPlayer;i++){
            player[i] = '1';
        }
        int point=0;
        for(int i=0;i<NumRepeats;i++){
            string str;
            cin >> str;
            string correct;
            if((i+1)%15==0){
                correct = "FizzBuzz"
            }else if((i+1)%3==0){
                correct = "Fizz";
            }else if((i+1)%15==0){
                correct = "Buzz";
            }else{
                correct = IntToString(i+1);
            }
            if(str != correct){
                player[point] = '0';
                alive--;
            }
            if(alive==1){
                for(int j=i;j<NumRepeats;j++){
                    cin >>str;
                }
                break;
            }
            if(point==NumPlayer-1){
                point=0;
            }else{
                point++;
            }
            while(player[point]=='0'){
                if(point==NumPlayer-1){
                    point=0;
                }else{
                    point++;
                }
            }
        }
        int isfirst=0;
        for(int i=0;i<NumPlayer;i++){
            if(player[i]=='1'){
                if(isfirst!=0){
                    cout << ' ' << (i+1);
                }else{
                    cout << (i+1);
                    isfirst = 1;
                }
            }
        }
        cout << endl;
        delete player;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:37: error: expected ';' before '}' token
   27 |                 correct = "FizzBuzz"
      |                                     ^
      |                                     ;
   28 |             }else if((i+1)%3==0){
      |             ~
Language: C++

#include<iostream> #include<string> using namespace std; bool l[1000]; int main(){ int n,m; string s; while(true){ cin>>m>>n; if(n+m==0) break; for(int i=0;i<m;i++) l[i]=true; int h=0; int ans=m,keep=0; for(int i=1;i<=n;i++){ cin>>s; while(true){ if(l[h]==true){if(i%15==0&&s!="FizzBuzz"){ l[h]=false; ans--; } if((i%15!=0&&i%5==0&&s!="Buzz")||(i%15!=0&&i%3==0&&s!="Fizz")){ l[h]=false; ans--; } if(i%3!=0&&i%5!=0){ int a=1,b=0; for(int j=0;j<s.size();j++){ b+=a*s[s.size()-1-j]; a*=10; } if(b!=i){ l[h]=false; ans--; } } break; } h++; h%=m; } if(ans==1){ keep=n-i; break; } h++; h%=m; } for(int i=0;i<keep;i++) cin>>s; bool first=true; for(int i=0;i<m;i++){ if(l[i]==true){ if(first==false) cout<<" "; cout<<i+1; first=false; } } cout<<endl; } return 0;}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<iostream> #include<string> using namespace std; bool l[1000]; int main(){ int n,m; string s; while(true){ cin>>m>>n; if(n+m==0) break; for(int i=0;i<m;i++) l[i]=true; int h=0; int ans=m,keep=0; for(int i=1;i<=n;i++){ cin>>s; while(true){ if(l[h]==true){if(i%15==0&&s!="FizzBuzz"){ l[h]=false; ans--; } if((i%15!=0&&i%5==0&&s!="Buzz")||(i%15!=0&&i%3==0&&s!="Fizz")){ l[h]=false; ans--; } if(i%3!=0&&i%5!=0){ int a=1,b=0; for(int j=0;j<s.size();j++){ b+=a*s[s.size()-1-j]; a*=10; } if(b!=i){ l[h]=false; ans--; } } break; } h++; h%=m; } if(ans==1){ keep=n-i; break; } h++; h%=m; } for(int i=0;i<keep;i++) cin>>s; bool first=true; for(int i=0;i<m;i++){ if(l[i]==true){ if(first==false) cout<<" "; cout<<i+1; first=false; } } cout<<endl; } return 0;}
      |                    ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<string>
using namespace std;
int main(){
	int flag[1002] = { 0 };
	int n, m;
	int count=1;// ????¨????
	char s[10];
	cin >> m >> n;//????????°??¨?????°
	while (n != 0 || m != 0){ // ?¶??¶??????¶
		for (int i = 1; i<=n; i++){//????¨??????°??°?????????
			while (flag[count] != 0){//????¨???????????????????
				count++;
				if (count > m) count = 1;
			}cin >> s;
			if (i % 3 == 0 && i % 5 == 0){
				if (strcmp(s, "FizzBuzz") != 0) flag[count] = 1;
			}
			else if (i % 3 == 0){
				if (strcmp(s, "Fizz") != 0) flag[count] = 1;
			}
			else if (i % 5 == 0){
				if (strcmp(s, "Buzz") != 0) flag[count] = 1;
			}
			count++;
			if (count > m) count = 1;
		}
		//?????????????????????
		for (int i = 1; i <= m; i++){
			if (flag[i] == 0) cout << i;
		}count = 0; cout << endl;
		for (int i = 0; i < 1002; i++)flag[i] = 0;
		cin >> m >> n;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> m >> n;//????????°??¨?????°
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:16:37: error: 'strcmp' was not declared in this scope
   16 |                                 if (strcmp(s, "FizzBuzz") != 0) flag[count] = 1;
      |                                     ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<string>
  +++ |+#include <cstring>
    2 | using namespace std;
a.cc:19:37: error: 'strcmp' was not declared in this scope
   19 |                                 if (strcmp(s, "Fizz") != 0) flag[count] = 1;
      |                                     ^~~~~~
a.cc:19:37: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:22:37: error: 'strcmp' was not declared in this scope
   22 |                                 if (strcmp(s, "Buzz") != 0) flag[count] = 1;
      |                                     ^~~~~~
a.cc:22:37: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:29:43: error: 'cout' was not declared in this scope
   29 |                         if (flag[i] == 0) cout << i;
      |                                           ^~~~
a.cc:29:43: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:29: error: 'cout' was not declared in this scope
   30 |                 }count = 0; cout << endl;
      |                             ^~~~
a.cc:30:29: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:37: error: 'endl' was not declared in this scope
   30 |                 }count = 0; cout << endl;
      |                                     ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<string>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
	int flag[1002] = { 0 };
	int n, m, a[1002] = { 0 };
	int count=1;// ????¨????
	char s[10];
	cin >> m >> n;//????????°??¨?????°
	while (n != 0 || m != 0){ // ?¶??¶??????¶
		for (int i = 1; i<=n; i++){//????¨??????°??°?????????
			while (flag[count] != 0){//????¨???????????????????
				count++;
				if (count > m) count = 1;
			}cin >> s;
			if (i % 3 == 0 && i % 5 == 0){
				if (strcmp(s, "FizzBuzz") != 0) flag[count] = 1;
			}
			else if (i % 3 == 0){
				if (strcmp(s, "Fizz") != 0) flag[count] = 1;
			}
			else if (i % 5 == 0){
				if (strcmp(s, "Buzz") != 0) flag[count] = 1;
			}
			count++;
			if (count > m) count = 1;
		}count = 0;
		//?????????????????????
		for (int i = 1; i <= m; i++){
			if (flag[i] == 0){
				a[count] = i;
				count++;
			}
		}
		for (int i = 0; i < count-1; i++) cout << a[i] << " ";
		cout << a[count-1] << endl;
 		count = 1; 
		for (int i = 0; i < 1002; i++)a[i] = 0;
		for (int i = 0; i < 1002; i++)flag[i] = 0;
		cin >> m >> n;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:37: error: 'strcmp' was not declared in this scope
   17 |                                 if (strcmp(s, "FizzBuzz") != 0) flag[count] = 1;
      |                                     ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<string>
a.cc:20:37: error: 'strcmp' was not declared in this scope
   20 |                                 if (strcmp(s, "Fizz") != 0) flag[count] = 1;
      |                                     ^~~~~~
a.cc:20:37: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:23:37: error: 'strcmp' was not declared in this scope
   23 |                                 if (strcmp(s, "Buzz") != 0) flag[count] = 1;
      |                                     ^~~~~~
a.cc:23:37: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
	int flag[1002] = { 0 };
	int n, m, a[1002] = { 0 };
	int count=1;// ????¨????
	char s[10];
	cin >> m >> n;//????????°??¨?????°
	while (n != 0 && m != 0){ // ?¶??¶??????¶
		for (int i = 1; i<=n; i++){//????¨??????°??°?????????
			while (flag[count] != 0){//????¨???????????????????
				count++;
				if (count > m) count = 1;
			}cin >> s;
			if (i % 3 == 0 && i % 5 == 0){
				if (strcmp(s, "FizzBuzz") != 0) flag[count] = 1;
			}
			else if (i % 3 == 0){
				if (strcmp(s, "Fizz") != 0) flag[count] = 1;
			}
			else if (i % 5 == 0){
				if (strcmp(s, "Buzz") != 0) flag[count] = 1;
			}
			count++;
			if (count > m) count = 1;
		}count = 0;
		//?????????????????????
		for (int i = 1; i <= m; i++){
			if (flag[i] == 0){
				a[count] = i;
				count++;
			}
		}
		for (int i = 0; i < count-1; i++) cout << a[i] << " ";
		cout << a[count-1] << endl;
 		count = 1; 
		for (int i = 0; i < 1002; i++)a[i] = 0;
		for (int i = 0; i < 1002; i++)flag[i] = 0;
		cin >> m >> n;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:37: error: 'strcmp' was not declared in this scope
   17 |                                 if (strcmp(s, "FizzBuzz") != 0) flag[count] = 1;
      |                                     ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<string>
a.cc:20:37: error: 'strcmp' was not declared in this scope
   20 |                                 if (strcmp(s, "Fizz") != 0) flag[count] = 1;
      |                                     ^~~~~~
a.cc:20:37: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:23:37: error: 'strcmp' was not declared in this scope
   23 |                                 if (strcmp(s, "Buzz") != 0) flag[count] = 1;
      |                                     ^~~~~~
a.cc:23:37: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include<iostream>
using namespace std;
#include<queue>
#include<vector>
#include<string>
#include<string.h>
#include<algorithm>
#include <conio.h>
bool b[2003];

#define REP(a) for(int i=0;i<a;i++)

int main()
{
	bool f=0;
	int x,m,n,j;
	int prev[2001],next[2001],p,v=1;
	string c,d;
	cin>>m>>n;
	while(m!=0||n!=0){
		x=m;
		REP(m){
			next[i]=(i+1)%m;
			prev[i]=(i+m-1)%m;
		}
		p=0;
		REP(n){
			cin>>c;
			if(f==0){
				if(c!="Fizz"&&(i+1)%3==0&&(i+1)%5!=0){
					v=0;
					m--;
				}
				else if(c!="Buzz"&&(i+1)%3!=0&&(i+1)%5==0){
					v=0;
					m--;
				}
				else if(c!="FizzBuzz"&&(i+1)%3==0&&(i+1)%5==0){
					v=0;
					m--;
				}
				else if(atoi(c.c_str())!=i+1&&(i+1)%3!=0&&(i+1)%5!=0){ 
					v=0;
					m--;
					//	cout<<'A';
				}

			}
			if(v==0) {
				prev[next[p]]=prev[p];
				next[prev[p]]=next[p];
				prev[p]=-1;
				v=1;
				
			}
			p=next[p];
			if(m==1) f=1;
		}
		REP(x){
		if(prev[i]!=-1){
		cout<<i+1;
		p=i;
		break;
		}
		}
		for(v=p+1;v<x;v++){
		if(prev[v]!=-1) cout<<" "<<v+1;
		}
		cout<<endl;
		cin>>m>>n;
		f=0;
		j=1;
	}
	return 0;
}

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

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

//#define int long long
#define DBG 0
#define dump(o) if(DBG){cerr<<#o<<" "<<o<<endl;}
#define dumpc(o) if(DBG){cerr<<#o; for(auto &e:(o))cerr<<" "<<e;cerr<<endl;}
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define rrep(i,a,b) for(int i=(b)-1;i>=(a);i--)
#define each(it,c) for(auto it=(c).begin();it!=(c).end();it++)
#define all(c) c.begin(),c.end()
const int INF = sizeof(int) == sizeof(long long) ? 0x3f3f3f3f3f3f3f3fLL : 0x3f3f3f3f;
const int MOD = (int)(1e9 + 7);

signed main() {
	int m, n;
	while (cin >> m >> n, m || n) {
		vector<bool>v(m, true);// v[0] = false;
		int cnt(1), index(0);
		string s;
		while (n--) {
			cin >> s;
			while (v[index%m] == false)index++;

			if (cnt % 15 == 0 && s != "FizzBuzz")v[index%m] = false;
			else if (cnt % 5 == 0 && s != "Buzz")v[index%m] = false;
			else if (cnt % 3 == 0 && s != "Fizz")v[index%m] = false;
			//else if (cnt != 15 && cnt != 5 && cnt != 3 && s != to_string(cnt))v[index%m] = false;

			cnt++; index++;
			if (accumulate(all(v), 0) == 1)break;
			dumpc(v);
		}

		rep(i, 0, m) {
			if (v[i]) {
				cout << i + 1 << " ";
			}
		}
		cout << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:50: error: cannot bind non-const lvalue reference of type 'std::_Bit_reference&' to an rvalue of type 'std::_Bit_iterator::reference'
    8 | #define dumpc(o) if(DBG){cerr<<#o; for(auto &e:(o))cerr<<" "<<e;cerr<<endl;}
      |                                                  ^
a.cc:33:25: note: in expansion of macro 'dumpc'
   33 |                         dumpc(v);
      |                         ^~~~~
Language: C++

#include"bits/stdc++.h"
using namespace std;
int main() {
	int a[1001], b[1001], m, n, j = 1, j2, hideo = 0;
	char str[30], str1[10] = { "Fizz" }, str2[10] = { "Buzz" }, str3[10] = { "FizzBuzz" };
	while (1) {
		cin >> m >> n;
		if (m == 0 && n == 0)return 0;
		for (int i = 1; i <= m; i++)a[i] = 1;
		for (int i = 1; i <= n; i++) {
			if (hideo ==1)goto ruio;
			if (j > m)j = 1;
			if (a[j] != 1) {
				j2 = j;
				for (int x = j; x <= m; x++) {
					if (a[x] == 1)j = x;
				}
				if (j == j2) {
					for (int x = 1; x < j; x++) {
						if (a[x] == 1)j = x;
					}
				}
				if (j == j2)goto ruio;
			}
			memset(str, NULL, sizeof(str));
			cin >> str;
			if (strcmp(str, str3) == 0) {
				if (i %15==0)goto hell;
				else {
					a[j] = -1; hideo--;
				}
			}
			else if (strcmp(str, str1) == 0) {
				if (i % 3 == 0 )goto hell;
				else {
					a[j] = -1; hideo--;
				}
			}
			else if (strcmp(str, str2) == 0) {
				if (i % 5 == 0)goto hell;
				else {
					a[j] = -1; hideo--;
				}
			}
			else {
				char *s = str;
				int len;
				len = atoi(str);
				if(len>0&&len<10001)if (len % 3 == 0 || len % 5 == 0){
					a[j] = -1;
					hideo--;
			}
		hell:;
			j++;
		}
	goto souya;
	ruio:;
		for (int i = 1; i <= m; i++) {
			if (a[i] == 1) {
				cout << i << endl;
			}
		}
	souya:;
		j = 0;
		for (int i = 1; i <= m; i++) {
			if (a[i] == 1) {
				b[j] = i;
				j++;
			}
		}
		for (int i = 0; i < j; i++) {
			cout << b[i];
			if (i < j-1)cout << " ";
		}
		cout << endl;
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:37: warning: passing NULL to non-pointer argument 2 of 'void* memset(void*, int, size_t)' [-Wconversion-null]
   25 |                         memset(str, NULL, sizeof(str));
      |                                     ^~~~
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:61:37: note:   declared here
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                                 ~~~~^~~
a.cc:53:17: error: jump to label 'hell'
   53 |                 hell:;
      |                 ^~~~
a.cc:28:51: note:   from here
   28 |                                 if (i %15==0)goto hell;
      |                                                   ^~~~
a.cc:46:39: note:   crosses initialization of 'char* s'
   46 |                                 char *s = str;
      |                                       ^
a.cc:78:2: error: expected '}' at end of input
   78 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<cstdio>
#include<iostream>
#include<string>
using namespace std;
int main(void){
	int m,n,flg[1001],i,cnt,h,list[1000],ff,j;
	char s[9],f[]="Fizz",b[]="Buzz",fb[]="FizzBuzz";
	while(1){
		cin>>m>>n;
		if(m==0) break;
		for(i=1;i<=m;i++) flg[i]=1;
		cnt=0;
		for(i=1;i<=n;i++){
			cin>>s;
			if(i%3==0&&i%5==0){
				ff=1;
				for(j=0;j<8;j++){
					if(s[j]!=fb[j]){
						ff=0;
						break;
					}
				}
				if(ff==0){
					h=(i+cnt)%m;
					if(h==0) h=m;
					if(flg[h]==0)cnt++;
					flg[h]=0;
//					cout<<"35haitta"<<endl;
				}
			}
			else if(i%3==0){
				ff=1;
				for(j=0;j<4;j++){
					if(s[j]!=f[j]){
						ff=0;
						break;
					}
				}
				if(ff==0){
					h=(i+cnt)%m;
					if(h==0) h=m;
					if(flg[h]==0) cnt++;
					flg[h]=0;
//					cout<<"3haitta"<<endl;
				}
			}
			else if(i%5==0){
				ff=1;
				for(j=0;j<4;j++){
					if(s[j]!=b[j]){
						ff=0;
						break;
					}
				}
				if(ff==0){
					h=(i+cnt)%m;
//					cout<<cnt<<endl;
					if(h==0) h=m;
					if(flg[h]==0) cnt++;
					flg[h]=0;
//					cout<<"5haitta"<<endl;
				}
			}
		}
		cnt=0;
		for(i=1;i<=m;i++){
			if(flg[i]==1){
				list[cnt]=i;
				cnt++;
			}
		}
//		cout<<cnt<<endl;
		cout<<list[0];
		for(i=1;i<cnt;i++) cout<<' '<<list[i];
		cout<<endl;
	}
	r

Compiler output:
a.cc: In function 'int main()':
a.cc:77:9: error: 'r' was not declared in this scope
   77 |         r
      |         ^
a.cc:77:10: error: expected '}' at end of input
   77 |         r
      |          ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
Language: C++

#include<cstdio>
#include<iostream>
#include<string>
using namespace std;
int main(void){
	int m,n,flg[1001],i,cnt,h,list[1000],ff,j;
	char s[9],f[]="Fizz",b[]="Buzz",fb[]="FizzBuzz";
	while(1){
		cin>>m>>n;
		if(m==0) break;
		for(i=1;i<=m;i++) flg[i]=1;
		cnt=0;
		for(i=1;i<=n;i++){
			cin>>s;
			if(i%3==0&&i%5==0){
				ff=1;
				for(j=0;j<8;j++){
					if(s[j]!=fb[j]){
						ff=0;
						break;
					}
				}
				if(ff==0){
					h=i%m;
					if(h==0) h=m;
					if(flg[h]==0){
						cnt++;
						h=(i+cnt)%m;
						if(h==0) h=m;
					}
					flg[h]=0;
//					cout<<"35haitta"<<endl;
				}
			}
			else if(i%3==0){
				ff=1;
				for(j=0;j<4;j++){
					if(s[j]!=f[j]){
						ff=0;
						break;
					}
				}
				if(ff==0){
					h=i+%m;
					if(h==0) h=m;
					if(flg[h]==0){
						cnt++;
						h=(i+cnt)%m;
						if(h==0) h=m;
					}
					flg[h]=0;
//					cout<<"3haitta"<<endl;
				}
			}
			else if(i%5==0){
				ff=1;
				for(j=0;j<4;j++){
					if(s[j]!=b[j]){
						ff=0;
						break;
					}
				}
				if(ff==0){
					h=i%m;
//					cout<<cnt<<endl;
					if(h==0) h=m;
					if(flg[h]==0){
						cnt++;
						h=(i+cnt)%m;
						if(h==0) h=m;
					}
					flg[h]=0;
//					cout<<"5haitta"<<endl;
				}
			}
		}
		cnt=0;
		for(i=1;i<=m;i++){
			if(flg[i]==1){
				list[cnt]=i;
				cnt++;
			}
		}
//		cout<<cnt<<endl;
		for(i=0;i<cnt-1;i++) cout<<list[i]<<' ';
		if(cnt!=0)cout<<list[cnt-1]<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:45: error: expected primary-expression before '%' token
   44 |                                         h=i+%m;
      |                                             ^
Language: C++

#include <iostream>
#include <vector>
#include <queue>
using namespace std;
int main(){
  int n, m;
  while(cin >> n >> m, n||m){
    int k = 0, a = n;
    queue<int> players;
    for(int i = 0; i < n; ++i) players.push(i+1);
    for(int i = 1; i <= m; ++i){
      string s, t;
      cin >> s;
      if(i%3 == 0) t += "Fizz";
      if(i%5 == 0) t += "Buzz";
      if(i%3 && i%5) t = to_string(i);
      if(s == t){
        int p = players.front();
        players.pop();
        players.push(p);
      }else{
        if(players.size() > 1){
          players.pop();
        }
      }
    }
    vector<int> ans;
    while(!players.empty()){
      ans.push_back(players.front());
      players.pop();
    }
    sort(ans.begin(), ans.end());
    cout << ans[0];
    for(int i = 1; i < ans.size(); ++i) cout << " " << ans[i];
    cout << endl;
  }
  return 0;
}



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

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

int main() {
  int m, n;
  while (cin >> m >> n, m) {
    bool live[1010];
    int idx = 1, cnt = m;
    memset(live, true, sizeof live);

    for (int i = 1; i <= n; ++i) {
      string s;
      cin >> s;

      if (cnt != 1) {
        string str = to_string(i);
        if (i % 15 == 0)
          str = "FizzBuzz";
        else if (i % 3 == 0)
          srt = "Fizz";
        else if (i % 5 == 0)
          srt = "Buzz";

        if (str != s) {
          live[idx] = false;
          cnt--;
        }

        idx++;
        if (idx == m + 1) idx = 1;
        while (!live[idx]) {
          idx++;
          if (idx == m + 1) idx = 1;
        }
      }
    }

    vector<int> ans;
    for (int i = 1; i <= m; ++i) {
      if (live[i]) ans.push_back(i);
    }
    for (int i = 0; i < ans.size(); ++i) {
      cout << ans[i] << (i + 1 == ans.size() ? "\n" : " ");
    }
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: 'srt' was not declared in this scope; did you mean 'str'?
   20 |           srt = "Fizz";
      |           ^~~
      |           str
a.cc:22:11: error: 'srt' was not declared in this scope; did you mean 'str'?
   22 |           srt = "Buzz";
      |           ^~~
      |           str
Language: C++

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

  while(1){
    
    cin>>m>>n;
    
    if(m==0 && n==0)break;
    
    int a[10000];
    string b[10000];
    int c[10000];
    int k[10000];
    
    for(int i=0;i<n;i++){
      cin>>b[i];
      if((i+1)%15==0 ){
	if(b[i]=="FizzBuzz"){a[i]=1;}else{a[i]=0;}
      }else if((i+1)%3==0){
	if(b[i]=="Fizz"){a[i]=1;}else{a[i]=0;}
      }else if((i+1)%5==0){
	if(b[i]=="Buzz"){a[i]=1;}else{a[i]=0;}
      }else if(b[i]!="FizzBuzz"&&b[i]!="Buzz"&&b[i]!="Fizz"){
	c[i]=atoi(b[i].c_str());
	int d=i+1;
	if(c[i]==d){a[i]=1;}else{a[i]=0;}
      }else{a[i]=0;}
  
    }
    
    for(int i=0;i<=m;i++){k[i]=1;}
    int e=0;
    int count=0;
    int t=0;

    for(int i=0;i<n;i++){
      
      for(int j=0;j<m;j++){
	if(k[j]==0){count++;}
      }
      if(count==m-1){
	cout<<endl
	for(int j=0;j<m;j++){
	  if(k[j]==1){cout<<j+1;}
	}
	cout<<endl
	i=n;
	t=1;
      }
      if(k[e]==0){
	e++;
	i--;
      }else if(a[i]==0){
	k[e]=0;
	e++;
      }else if(a[i]==1){
	k[e]=1;
	e++;
      }
      if(e>m-1){e=0;}
      else{count=0;}
    }

    
    if(t!=1){
      cout<<endl;
      for(int i=0;i<m;i++){
	if(k[i]==1){cout<<<i+1<<" ";}
      }
      cout<<endl;
    }
  }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:44:19: error: expected ';' before 'for'
   44 |         cout<<endl
      |                   ^
      |                   ;
   45 |         for(int j=0;j<m;j++){
      |         ~~~        
a.cc:45:21: error: 'j' was not declared in this scope
   45 |         for(int j=0;j<m;j++){
      |                     ^
a.cc:48:19: error: expected ';' before 'i'
   48 |         cout<<endl
      |                   ^
      |                   ;
   49 |         i=n;
      |         ~          
a.cc:70:27: error: expected primary-expression before '<' token
   70 |         if(k[i]==1){cout<<<i+1<<" ";}
      |                           ^
a.cc:70:31: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   70 |         if(k[i]==1){cout<<<i+1<<" ";}
      |                            ~~~^~~~~
      |                             |   |
      |                             int const char [2]
Language: C++

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

  while(1){
    
    cin>>m>>n;
    
    if(m==0 && n==0)break;
    
    int a[10000];
    string b[10000];
    int c[10000];
    int k[10000];
    
    for(int i=0;i<n;i++){
      cin>>b[i];
      if((i+1)%15==0 ){
	if(b[i]=="FizzBuzz"){a[i]=1;}else{a[i]=0;}
      }else if((i+1)%3==0){
	if(b[i]=="Fizz"){a[i]=1;}else{a[i]=0;}
      }else if((i+1)%5==0){
	if(b[i]=="Buzz"){a[i]=1;}else{a[i]=0;}
      }else if(b[i]!="FizzBuzz"&&b[i]!="Buzz"&&b[i]!="Fizz"){
	c[i]=atoi(b[i].c_str());
	int d=i+1;
	if(c[i]==d){a[i]=1;}else{a[i]=0;}
      }else{a[i]=0;}
  
    }
    
    for(int i=0;i<=m;i++){k[i]=1;}
    int e=0;
    int count=0;
    int t=0;

    for(int i=0;i<n;i++){
      
      for(int j=0;j<m;j++){
	if(k[j]==0){count++;}
      }
      if(count==m-1){
	for(int j=0;j<m;j++){
	  if(k[j]==1){cout<<j+1;}
	}
	cout<<endl;
	i=n;
	t=1;
      }
      if(k[e]==0){
	e++;
	i--;
      }else if(a[i]==0){
	k[e]=0;
	e++;
      }else if(a[i]==1){
	k[e]=1;
	e++;
      }
      if(e>m-1){e=0;}
      else{count=0;}
    }

    
    if(t!=1){
      cout<<endl
      for(int i=0;i<m;i++){
	if(k[i]==1){cout<<<i+1<<" ";}
      }
      cout<<endl;
    }
  }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:67:17: error: expected ';' before 'for'
   67 |       cout<<endl
      |                 ^
      |                 ;
   68 |       for(int i=0;i<m;i++){
      |       ~~~        
a.cc:68:19: error: 'i' was not declared in this scope
   68 |       for(int i=0;i<m;i++){
      |                   ^
Language: C++

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

  while(1){
    
    cin>>m>>n;
    
    if(m==0 && n==0)break;
    
    int a[10000];
    string b[10000];
    int c[10000];
    int k[10000];
    
    for(int i=0;i<n;i++){
      cin>>b[i];
      if((i+1)%15==0 ){
	if(b[i]=="FizzBuzz"){a[i]=1;}else{a[i]=0;}
      }else if((i+1)%3==0){
	if(b[i]=="Fizz"){a[i]=1;}else{a[i]=0;}
      }else if((i+1)%5==0){
	if(b[i]=="Buzz"){a[i]=1;}else{a[i]=0;}
      }else if(b[i]!="FizzBuzz"&&b[i]!="Buzz"&&b[i]!="Fizz"){
	c[i]=atoi(b[i].c_str());
	int d=i+1;
	if(c[i]==d){a[i]=1;}else{a[i]=0;}
      }else{a[i]=0;}
  
    }
    
    for(int i=0;i<=m;i++){k[i]=1;}
    int e=0;
    int count=0;
    int t=0;

    for(int i=0;i<n;i++){
      
      for(int j=0;j<m;j++){
	if(k[j]==0){count++;}
      }
      if(count==m-1){
	for(int j=0;j<m;j++){
	  if(k[j]==1){cout<<j+1;}
	}
	cout<<endl;
	i=n;
	t=1;
      }
      if(k[e]==0){
	e++;
	i--;
      }else if(a[i]==0){
	k[e]=0;
	e++;
      }else if(a[i]==1){
	k[e]=1;
	e++;
      }
      if(e>m-1){e=0;}
      else{count=0;}
    }

    
    if(t!=1){
      for(int i=0;i<m;i++){
	if(k[i]==1){cout<<<i+1<<" ";}
      }
      cout<<endl;
    }
  }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:68:27: error: expected primary-expression before '<' token
   68 |         if(k[i]==1){cout<<<i+1<<" ";}
      |                           ^
a.cc:68:31: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   68 |         if(k[i]==1){cout<<<i+1<<" ";}
      |                            ~~~^~~~~
      |                             |   |
      |                             int const char [2]
Language: C++

#include<iostream>
#include<string>
#include<cstdlib>
#include<vector>

using namespace std;

class Player{
  int id;
}

int main()
{
  while(true){
    int m,n;
    cin >> m >> n;
    if( m == 0 && n == 0 ) break;
    vector< Player > p;
    for(int i = 0; i < m; ++i){
      Player tp;
      tp.id = i;
      p.push_back( tp );
    }

    int ans = 1;
    int nowplayer = 0;
    int nextplayer = 1;
    for(int i = 0; i < n; ++i){
      string s;
      cin >> s;
      if( ans % 3 == 0 ){
	if( s != "Fizz" ){
	  p.erase( p.begin() + nowplayer );
	}
      }else if( ans % 5 == 0 ){
	if( s != "Buzz" ){
	  p.erase( p.begin() + nowplayer );
	}
      }else if(ans % 15 == 0 ){
	if( s != "FizzBuzz" ){
	  p.erase( p.begin() + nowplayer );
	}
      }else{
	bool ng=false;
	for(int j=0;j<s.length();++j){
	  if(!isdigit(s[j]))ng=true;
	}
	int d = atoi( s.c_str() );
	if( d != ans ){
	  ng=true;
	}
	if( ng ){
	  p.erase( p.begin() + nowplayer );
	}
      }
      ++nowplayer;
      nowplayer %= p.size();
      ++ans;
    }
    int cnt = 0;
    vector<int> heroes;
    for(int i = 0; i < m; ++i){
      if( left[i] ){
	heroes.push_back( i + 1 );
      }
    }
    for(int i = 0; i < heroes.size(); ++i){
      if( i > 0 ) cout << ' ';
      cout << heroes[i];
    }
    cout << endl;
  }
  return 0;
}

Compiler output:
a.cc:10:2: error: expected ';' after class definition
   10 | }
      |  ^
      |  ;
a.cc: In function 'int main()':
a.cc:21:10: error: 'int Player::id' is private within this context
   21 |       tp.id = i;
      |          ^~
a.cc:9:7: note: declared private here
    9 |   int id;
      |       ^~
a.cc:63:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   63 |       if( left[i] ){
      |                 ^
Language: C++

#include<iostream>
#include<set>
#include<queue>
#include<vector>
#include<sstream>
#include<algorithm>
using namespace std;
#define REP(i,b,n) for(int i=b;i<n;i++)
#define rep(i,n)   REP(i,0,n)
#define pb         push_back

void solve(int n,int m,bool *isok){
  vector<int> a;
  rep(i,n){
    a.pb(i);
  }
  
  int p=0;
  for(int i=1;i<m+1 && a.size() != ;i++){
    if (isok[i]){
      p=(p+1)%a.size();
      continue;
    }
    if (!isok[i]){
      a.erase(a.begin()+p);
      if (a.size() == 0)break;
      p%=a.size();
    }
  }

  rep(i,a.size()){
    if (i)cout <<' ';
    cout <<a[i]+1;
  }
  cout << endl;
}


main(){
  int n,m;
  bool isok[10011];
  while(cin>>n>>m && n){
    rep(i,m+1)isok[i]=true;
    REP(i,1,m+1){
      string in;
      cin>>in;
      if (i%3 == 0 && i% 5 == 0){
	if (in != "FizzBuzz")isok[i]=false;
      }else if (i%3==0){
	if (in != "Fizz")isok[i]=false;
      }else if (i%5==0){
	if (in !="Buzz")isok[i]=false;
      }else {
	stringstream sin(in);
	int tmp;
	sin>>tmp;
	if (tmp != i){
	  isok[i]=false;
	}
      }
    }
    solve(n,m,isok);
  }
}

Compiler output:
a.cc: In function 'void solve(int, int, bool*)':
a.cc:19:36: error: expected primary-expression before ';' token
   19 |   for(int i=1;i<m+1 && a.size() != ;i++){
      |                                    ^
a.cc: At global scope:
a.cc:39:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   39 | main(){
      | ^~~~
Language: C++

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

int main( void )
{
    int m, n;
    string s;

    while ( cin >> m >> n && m && n )
    {
        vector <int> R( m, 0 );
        int curIndex    = 0;
        int curNumber   = 1;
        for ( int i = 0; i < n; i++ )
        {
            cin >> s;

            if ( s == "FizzBuzz" && ( ( curNumber % 3 != 0 ) || ( curNumber % 5 != 0 ) ) )
            {
                R[curIndex] = 1;
            }
            else if ( s == "Fizz" && ( curNumber % 3 != 0 ) )
            {
                R[curIndex] = 1;
            }
            else if ( s == "Buzz" && ( curNumber % 5 != 0 ) )
            {
                R[curIndex] = 1;
            }
            else
            {
                int number;
                istringstream is( s );
                is >> number;

                if ( number % 3 == 0 && number % 5 == 0 && s != "FizzBuzz" )
                {
                    R[curIndex] = 1;
                }
                else if ( number % 3 == 0 && s != "Fizz" )
                {
                    R[curIndex] = 1;
                }
                else if ( number % 5 == 0 && s != "Buzz" )
                {
                    R[curIndex] = 1;
                }
            }

            do
            {
                curIndex = ( curIndex + 1 ) % m;
            } while ( R[curIndex] == 1 );
            curNumber++;
        }

        vector <int> L;
        for ( int i = 0; i < n; i++ )
        {
            if ( R[i] == 0 ) L.push_back( i+1 );
        }

        sort( L.begin(), L.end() );
        for ( vector <int> ::iterator it = L.begin(); it != L.end(); it++ )
        {
            cout << *it;
            if ( it + 1 != L.end() ) cout << " "; else cout << endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:66:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   66 |         sort( L.begin(), L.end() );
      |         ^~~~
      |         short
Language: C++

        //cout<<"O"<<endl;
      }else{
        count++;
        exist[member]=false;
        //cout<<"X"<<endl;
      }
      do{
        member=(member+1)%m;
      }while(!exist[member]);
    }
    bool first=true;
    for(int i=0; i<m; i++){
      if(exist[i]){
        if(first){
          printf("%d",i+1);
          first=false;
        }else{
          printf(" %d",i+1);
        }
      }
    }
    cout<<endl;
  }
  return 0;
}

Compiler output:
a.cc:2:7: error: expected declaration before '}' token
    2 |       }else{
      |       ^
a.cc:2:8: error: expected unqualified-id before 'else'
    2 |       }else{
      |        ^~~~
a.cc:7:7: error: expected unqualified-id before 'do'
    7 |       do{
      |       ^~
a.cc:9:8: error: expected unqualified-id before 'while'
    9 |       }while(!exist[member]);
      |        ^~~~~
a.cc:10:5: error: expected declaration before '}' token
   10 |     }
      |     ^
a.cc:12:5: error: expected unqualified-id before 'for'
   12 |     for(int i=0; i<m; i++){
      |     ^~~
a.cc:12:18: error: 'i' does not name a type
   12 |     for(int i=0; i<m; i++){
      |                  ^
a.cc:12:23: error: 'i' does not name a type
   12 |     for(int i=0; i<m; i++){
      |                       ^
a.cc:22:5: error: 'cout' does not name a type
   22 |     cout<<endl;
      |     ^~~~
a.cc:23:3: error: expected declaration before '}' token
   23 |   }
      |   ^
a.cc:24:3: error: expected unqualified-id before 'return'
   24 |   return 0;
      |   ^~~~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

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

bool fizzbuzz(int n,string s){
	if(n%15==0)return (s != "FizzBuzz");
	if(n%3==0)return  (s != "Fizz");
	if(n%5==0)return  (s != "Buzz");
	
	for(int i=0;i<s.length();i++){
		if(s[i]<'0'||s[i]>'9')return true;
	}
	
	/*ツつ「ツづォツつ「ツづォツ妥篠催エ*/
	int zero = 0;
	for(int i=0;i<s.length();i++){
		if(s[i] == '0')zero++;
		else break;
	}
	s = s.substr(zero,s.length()-zero);
	if(s.length()>8)return true;
	
	return (atoi(s.c_str()) != n);
}

int main(){
	int n,m;
	string s;
	
	while(scanf("%d %d\n",&m,&n), m){
	
		vector<int> rem(m);
		for(int i=0;i<m;i++){
			rem[i] = i+1;
		}
		int c = 0;
		for(int i=1;i<=n;i++){
			getline(cin,s);
			if(rem.size() == 1)continue;
			if( fizzbuzz(i,s) ){
				rem.erase(remove(rem.begin(),rem.end(),rem[c]),rem.end());
			}else{
				c =(c+1)%rem.size();
	#include <iostream>
#include <algorithm>
#include <sstream>
#include <cstdio>
#include <vector>
using namespace std;

bool fizzbuzz(int n,string s){
	if(n%15==0)return (s != "FizzBuzz");
	if(n%3==0)return  (s != "Fizz");
	if(n%5==0)return  (s != "Buzz");
	
	for(int i=0;i<s.length();i++){
		if(s[i]<'0'||s[i]>'9')return true;
	}
	
	/*ツつ「ツづォツつ「ツづォツ妥篠催エ*/
	int zero = 0;
	for(int i=0;i<s.length();i++){
		if(s[i] == '0')zero++;
		else break;
	}
	s = s.substr(zero,s.length()-zero);
	if(s.length()>8)return true;
	
	return (atoi(s.c_str()) != n);
}

int main(){
	int n,m;
	string s;
	
	while(scanf("%d %d\n",&m,&n), m){
	
		vector<int> rem(m);
		for(int i=0;i<m;i++){
			rem[i] = i+1;
		}
		int c = 0;
		for(int i=1;i<=n;i++){
			getline(cin,s);
			if(rem.size() == 1)continue;
			if( fizzbuzz(i,s) ){
				rem.erase(remove(rem.begin(),rem.end(),rem[c]),rem.end());
			}else{
				c =(c+1)%rem.size();
			}
		}
		for(int i=0;i<rem.size();i++){
			cout << (i?" ":"") << rem[i];
		}
		cout << endl;
	}
}		}
		}
		for(int i=0;i<rem.size();i++){
			cout << (i?" ":"") << rem[i];
		}
		cout << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:54:30: error: a function-definition is not allowed here before '{' token
   54 | bool fizzbuzz(int n,string s){
      |                              ^
a.cc:75:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   75 | int main(){
      |         ^~
a.cc:75:9: note: remove parentheses to default-initialize a variable
   75 | int main(){
      |         ^~
      |         --
a.cc:75:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:75:11: error: a function-definition is not allowed here before '{' token
   75 | int main(){
      |           ^
Language: C++

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

void make_pat(int count, char pat[])
{
	int d = 0;
	
	pat[0] = '\0';
	if (count % 3 == 0){
		d = 1;
		strcat(pat, "Fizz");
	}
	if (count % 5 == 0){
		d = 1;
		strcat(pat, "Buzz");
	}
	if (d == 0){
		itoa(count, pat, 10);
	}
}

int main(void)
{
	int n; // ­¾ñ
	int m; // lÌ
	char flag[1000];
	char in[100];
	char pat[100];
	
	while (1){
		bool end_flag = false;
		
		memset(flag, 1, 1000);
		
		scanf("%d%d", &m, &n);
		if (m == 0 || n == 0){
			break;
		}
		
		int check = 0;
		for (int i = 0; i < n; i++){
			scanf("%s", in);
			
			int tmp = check;
			
			while (flag[check] == 0){
				check = (check + 1) % m;
				if (check == tmp) {
					end_flag = true;
					break;
				}
			}
			if (end_flag == true){
				continue;
			}
			
			make_pat(i + 1, pat);
			if (strcmp(pat, in) != 0){
				flag[check] = 0;
			}
			check = (check + 1) % m;
		}
		
		for (int i = 0; i < m; i++){
			if (flag[i] == 1){
				printf("%d ", i + 1);
			}
		}
		
		puts("");
	}
	
	return (0);
}

Compiler output:
a.cc: In function 'void make_pat(int, char*)':
a.cc:19:17: error: 'itoa' was not declared in this scope
   19 |                 itoa(count, pat, 10);
      |                 ^~~~
Language: C++

#include<iostream>

struct person{
	int num;
	struct person *prev;
	struct person *next;
};

struct person *head,*p,*now;
int m,n;
char s[10];

void set(){
	for(int i=0; i<m; i++){
		p[i].num = i+1;
		p[i].prev = p+i-1;
		p[i].next = p+i+1;
	}
	p[0].prev = p+m-1;
	p[m-1].next = p;
}

void del(struct person *a){
		(a->prev)->next = a->next;
		(a->next)->prev = a->prev;
		if(a == head)
			head = a->next;
}

void show(struct person *a){
	std::cout << a->num;
	if(a->next == head)
		return;
	else{
		std::cout << ' ';
		show(a->next);
	}
}

int main(){
	while(true){
		std::cin >> m >> n;
		if(!n && !m)
			return 0;
		p = new struct person[m];
		head = p;
		now = head;
		set();
		for(int i=0; i<n; i++){
			std::cin >> s;
			if(now == now->next){
				continue;
			}else if((i+1)%15 == 0){
				if(strcmp(s,"FizzBuzz") != 0)
					del(now);
			}else if((i+1)%3 == 0){
				if(strcmp(s,"Fizz") != 0)
					del(now);
			}else if((i+1)%5 == 0){
				if(strcmp(s,"Buzz") != 0)
					del(now);
			}
			now = now->next;
		}
		show(head);
		std::cout << std::endl;
		delete[] p;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:54:36: error: 'strcmp' was not declared in this scope
   54 |                                 if(strcmp(s,"FizzBuzz") != 0)
      |                                    ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | 
a.cc:57:36: error: 'strcmp' was not declared in this scope
   57 |                                 if(strcmp(s,"Fizz") != 0)
      |                                    ^~~~~~
a.cc:57:36: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:60:36: error: 'strcmp' was not declared in this scope
   60 |                                 if(strcmp(s,"Buzz") != 0)
      |                                    ^~~~~~
a.cc:60:36: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include<iostream>
#include<string>
#include<sstream>
using namespace std;
int main(){
int m,n,i,p[999],q;
string s;
stringstream t;
while(cin>>m>>n,m|n){
for(i=0;i++<m;)p[i-1]=i;

for(q=m,i=1;n-->0;){
cin>>s;
if(q==1)continue;

t.str("");
if(i%3&&i%5){
t<<i;
}else{
if(!(i%3))t<<"Fizz";
if(!(i%5))t<<"Buzz";
}

if(s!=t.str()){p[(i-1)%m]=-1;q--;}
for(i++;!~p[(i-1)%m];)i++;
}

for(i=0;i<m;i++){
if(!~p[i])continue;
cout<<p[i];
if(q-->0)cout<<" ";
}
cout<<endl;
}}#include<iostream>
#include<string>
#include<sstream>
using namespace std;int main(){int m,n,i,p[999],q;string s;stringstream t;while(cin>>m>>n,m|n){for(i=0;i++<m;)p[i-1]=i;for(q=m,i=1;n-->0;){cin>>s;if(q==1)continue;t.str("");if(i%3&&i%5){t<<i;}else{if(!(i%3))t<<"Fizz";if(!(i%5))t<<"Buzz";}if(s!=t.str()){p[(i-1)%m]=-1;q--;}for(i++;!~p[(i-1)%m];)i++;}for(i=0;i<m;i++){if(!~p[i])continue;cout<<p[i];if(q-->0)cout<<" ";}cout<<endl;}}

Compiler output:
a.cc:34:3: error: stray '#' in program
   34 | }}#include<iostream>
      |   ^
a.cc:34:4: error: 'include' does not name a type
   34 | }}#include<iostream>
      |    ^~~~~~~
a.cc:37:25: error: redefinition of 'int main()'
   37 | using namespace std;int main(){int m,n,i,p[999],q;string s;stringstream t;while(cin>>m>>n,m|n){for(i=0;i++<m;)p[i-1]=i;for(q=m,i=1;n-->0;){cin>>s;if(q==1)continue;t.str("");if(i%3&&i%5){t<<i;}else{if(!(i%3))t<<"Fizz";if(!(i%5))t<<"Buzz";}if(s!=t.str()){p[(i-1)%m]=-1;q--;}for(i++;!~p[(i-1)%m];)i++;}for(i=0;i<m;i++){if(!~p[i])continue;cout<<p[i];if(q-->0)cout<<" ";}cout<<endl;}}
      |                         ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~
Language: C++

#include<stdio.h>
#include<list>

int main(){
  using namespace std;
  int i,n,m;
  char opn[10],ans[10];
  bool ff,bf;
  list<int> player;
  list<int>::iterator it,nx;
  do{
    scanf("%d %d",&m,&n);
    if(!m&&!n) break;
    for(i=0;i<m;i++) player.push_back(i+1);
    for(i=0,it=player.begin();i<n&&player.size()>1;i++){
      scanf("%s",opn);
      ff=(i+1)%3==0,bf=(i+1)%5==0;
      if(ff||bf){
	sprintf(ans,"%s%s",ff?"Fizz":"",bf?"Buzz":"");
      }else{
	sprintf(ans,"%d",i+1);
      }
      if(strcmp(ans,opn)){
	it=player.erase(it);
      }else{
	it++;
      }
      if(it==player.end()) it=player.begin();
    }
    it=player.begin();
    while(it!=player.end()){
      printf("%d",*it);
      it++;
      if(it!=player.end()) printf(" ");
    }
    printf("\n");
    player.clear();
  }while(1);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: 'strcmp' was not declared in this scope
   23 |       if(strcmp(ans,opn)){
      |          ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<list>
  +++ |+#include <cstring>
    3 |