Language: C

main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      | ^~~~
main.c: In function 'main':
main.c:1:16: error: 'd' undeclared (first use in this function)
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      |                ^
main.c:1:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:21: error: 's' undeclared (first use in this function)
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      |                     ^
main.c:1:25: error: 'i' undeclared (first use in this function)
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      |                         ^
main.c:1:43: error: 'h' undeclared (first use in this function)
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      |                                           ^
main.c:1:45: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      |                                             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
main.c:1:45: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      |                                             ^~~~~
main.c:1:45: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:66: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      |                                                                  ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
main.c:1:66: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      |                                                                  ^~~~
main.c:1:66: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:1:105: error: 'k' undeclared (first use in this function)
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      |                                                                                                         ^
main.c:1:112: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(){for(;;){d[5],s=0,i=0;for(;i<5;i++){h;scanf("%d",&h);if(!h)exit(0);s|=d[i]=1<<h;}for(i=0;i<5;i++){k=d[i];printf("%d\n",s==14|s==k?3:(s^k)==k*2|(s^k)==k/4?1:2);}}}
      |                                                                                                                ^~~~~~
main.c:1:112: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:112: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:112: note: include '<stdio.h>' or provide a declaration of 'printf'