Language: C

i,j,k,s;main(x){char a[99],b[99];for(scanf("%s%d",a,&x);x--;){scanf("%s",b);for(i=0;i<10;i++){if(a[0]==b[i]){for(k=0,j=i;1;){j++;k++;j=j>9?0:j;if(a[k]=='\0'){s++;i=11;break;}if(a[k]!=b[j])break;
}}}}}printf("%d\n",s);exit(0);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | i,j,k,s;main(x){char a[99],b[99];for(scanf("%s%d",a,&x);x--;){scanf("%s",b);for(i=0;i<10;i++){if(a[0]==b[i]){for(k=0,j=i;1;){j++;k++;j=j>9?0:j;if(a[k]=='\0'){s++;i=11;break;}if(a[k]!=b[j])break;
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
    1 | i,j,k,s;main(x){char a[99],b[99];for(scanf("%s%d",a,&x);x--;){scanf("%s",b);for(i=0;i<10;i++){if(a[0]==b[i]){for(k=0,j=i;1;){j++;k++;j=j>9?0:j;if(a[k]=='\0'){s++;i=11;break;}if(a[k]!=b[j])break;
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
    1 | i,j,k,s;main(x){char a[99],b[99];for(scanf("%s%d",a,&x);x--;){scanf("%s",b);for(i=0;i<10;i++){if(a[0]==b[i]){for(k=0,j=i;1;){j++;k++;j=j>9?0:j;if(a[k]=='\0'){s++;i=11;break;}if(a[k]!=b[j])break;
      |     ^
main.c:1:7: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | i,j,k,s;main(x){char a[99],b[99];for(scanf("%s%d",a,&x);x--;){scanf("%s",b);for(i=0;i<10;i++){if(a[0]==b[i]){for(k=0,j=i;1;){j++;k++;j=j>9?0:j;if(a[k]=='\0'){s++;i=11;break;}if(a[k]!=b[j])break;
      |       ^
main.c:1:9: error: return type defaults to 'int' [-Wimplicit-int]
    1 | i,j,k,s;main(x){char a[99],b[99];for(scanf("%s%d",a,&x);x--;){scanf("%s",b);for(i=0;i<10;i++){if(a[0]==b[i]){for(k=0,j=i;1;){j++;k++;j=j>9?0:j;if(a[k]=='\0'){s++;i=11;break;}if(a[k]!=b[j])break;
      |         ^~~~
main.c: In function 'main':
main.c:1:9: error: type of 'x' defaults to 'int' [-Wimplicit-int]
main.c:1:38: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | i,j,k,s;main(x){char a[99],b[99];for(scanf("%s%d",a,&x);x--;){scanf("%s",b);for(i=0;i<10;i++){if(a[0]==b[i]){for(k=0,j=i;1;){j++;k++;j=j>9?0:j;if(a[k]=='\0'){s++;i=11;break;}if(a[k]!=b[j])break;
      |                                      ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | i,j,k,s;main(x){char a[99],b[99];for(scanf("%s%d",a,&x);x--;){scanf("%s",b);for(i=0;i<10;i++){if(a[0]==b[i]){for(k=0,j=i;1;){j++;k++;j=j>9?0:j;if(a[k]=='\0'){s++;i=11;break;}if(a[k]!=b[j])break;
main.c:1:38: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | i,j,k,s;main(x){char a[99],b[99];for(scanf("%s%d",a,&x);x--;){scanf("%s",b);for(i=0;i<10;i++){if(a[0]==b[i]){for(k=0,j=i;1;){j++;k++;j=j>9?0:j;if(a[k]=='\0'){s++;i=11;break;}if(a[k]!=b[j])break;
      |                                      ^~~~~
main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c: At top level:
main.c:2:13: error: expected declaration specifiers or '...' before string constant
    2 | }}}}}printf("%d\n",s);exit(0);}
      |             ^~~~~~
main.c:2:20: error: expected declaration specifiers or '...' before 's'
    2 | }}}}}printf("%d\n",s);exit(0);}
      |                    ^
main.c:2:28: error: expected declaration specifiers or '...' before numeric constant
    2 | }}}}}printf("%d\n",s);exit(0);}
      |                            ^
main.c:2:31: error: expected identifier or '(' before '}' token
    2 | }}}}}printf("%d\n",s);exit(0);}
      |                               ^