Language: C

n,m,b,q[1024];char s[9],c[9];
main(i,t){for(;scanf("%d%d",&m,&n)*m;){
		p=m;
		for(t=i=1;i<=n;i++){
			scanf("%s",s,*c=0);
			i%3||strcat(c,"Fizz");
			i%5||strcat(c,"Buzz");
			*c||sprintf(c,"%d",i);
			for(strcmp(s,c)&&p>1&&(q[t]=p--);q[t=t%m+1];);
		}
		for(t=i=1;i<=m;i++)q[i]||(q[i]=t=!printf(" %d"+t,i));
		puts("");
	}
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n,m,b,q[1024];char s[9],c[9];
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'm' [-Wimplicit-int]
    1 | n,m,b,q[1024];char s[9],c[9];
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | n,m,b,q[1024];char s[9],c[9];
      |     ^
main.c:1:7: error: type defaults to 'int' in declaration of 'q' [-Wimplicit-int]
    1 | n,m,b,q[1024];char s[9],c[9];
      |       ^
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(i,t){for(;scanf("%d%d",&m,&n)*m;){
      | ^~~~
main.c: In function 'main':
main.c:2:1: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:2:1: error: type of 't' defaults to 'int' [-Wimplicit-int]
main.c:2:16: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 | main(i,t){for(;scanf("%d%d",&m,&n)*m;){
      |                ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | n,m,b,q[1024];char s[9],c[9];
main.c:2:16: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 | main(i,t){for(;scanf("%d%d",&m,&n)*m;){
      |                ^~~~~
main.c:2:16: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:17: error: 'p' undeclared (first use in this function)
    3 |                 p=m;
      |                 ^
main.c:3:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:30: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
    6 |                         i%3||strcat(c,"Fizz");
      |                              ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'strcat'
  +++ |+#include <string.h>
    1 | n,m,b,q[1024];char s[9],c[9];
main.c:6:30: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch]
    6 |                         i%3||strcat(c,"Fizz");
      |                              ^~~~~~
main.c:6:30: note: include '<string.h>' or provide a declaration of 'strcat'
main.c:8:29: error: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
    8 |                         *c||sprintf(c,"%d",i);
      |                             ^~~~~~~
main.c:8:29: note: include '<stdio.h>' or provide a declaration of 'sprintf'
main.c:8:29: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
main.c:8:29: note: include '<stdio.h>' or provide a declaration of 'sprintf'
main.c:9:29: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    9 |                         for(strcmp(s,c)&&p>1&&(q[t]=p--);q[t=t%m+1];);
      |                             ^~~~~~
main.c:9:29: note: include '<string.h>' or provide a declaration of 'strcmp'
main.c:11:51: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |                 for(t=i=1;i<=m;i++)q[i]||(q[i]=t=!printf(" %d"+t,i));
      |                                                   ^~~~~~
main.c:11:51: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:51: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:51: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:17: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
   12 |                 puts("");
      |                 ^~~~
main.c:12:17: note: include '<stdio.h>' or provide a declaration of 'puts'