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

#include <stdio.h>

int main(){
  char W[11],T[1000],E[12]="END_OF_TEXT";
  int b=1,i=0,j=0,k=0,l=0,m=0,ans=0;
  for(i=0; i<11; i++){
    scanf("%c",&W[i]);
    if(W[i]=='\n')break;
    if(W[i]>='A'&&W[i]<='Z')W[i]+=('a'-'A');
  }
  while(b){
    while(1){
      scanf("%c",&T[k]);
      if(T[k]=='\n'||T[k]==' '||T[k]==NULL)break;
      if(T[k]>='A'&&T[k]<='Z')T[k]+=('a'-'A');
      k++
    }
    for(j=0; j<i; j++){
      if(W[j]!=T[l+j])break;
      if(j==i-1&&T[j+1]==T[k])ans+=1;
    }//                                      
for(j=0; j<11; j++){
      if(E[j]!=T[l+j])break;
      if(j==10)b=0;
    }
    k+=1;
    l=k;
  }
  printf("%d\n",ans);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:37: warning: comparison between pointer and integer
   14 |       if(T[k]=='\n'||T[k]==' '||T[k]==NULL)break;
      |                                     ^~
main.c:16:10: error: expected ';' before '}' token
   16 |       k++
      |          ^
      |          ;
   17 |     }
      |     ~
Language: C

#include <stdio.h>
#include <string.h>
char tolower(char);//char Large to Small

int main(){
  int i=0,count=0;
  char t,txt[1000]={},word[10]={},end[]={"END_OF_TEXT"};
  char *ret;
  scanf("%s",word);
  for(i=0;i<strlen(word);i++){
    if((int)t>=65&&(int)t<=90){
      t = word[i];
      word[i] = tolower(t);
    }
  }
  i=0;
  scanf("%c",&t);
  while( scanf("%c",&t)){
    txt[i]=t;
    i++;
    if(strstr(txt,end)!=NULL) break;
  }
  while(1)
    ret = strcasestr(txt,word);
    if(ret!=NULL&& ret-txt >= 0){
      //     if(ret-txt<0)return 0;
      txt[ret-txt]='~';
      count++;
    }else{
      break;
    }
  }
    
  printf("%d\n",count);

  return 0;
}

char tolower(char c){
  return (c+32);
}

Compiler output:
main.c:3:6: warning: conflicting types for built-in function 'tolower'; expected 'int(int)' [-Wbuiltin-declaration-mismatch]
    3 | char tolower(char);//char Large to Small
      |      ^~~~~~~
main.c:3:1: note: 'tolower' is declared in header '<ctype.h>'
    2 | #include <string.h>
  +++ |+#include <ctype.h>
    3 | char tolower(char);//char Large to Small
main.c: In function 'main':
main.c:30:7: error: break statement not within loop or switch
   30 |       break;
      |       ^~~~~
main.c: At top level:
main.c:34:10: error: expected declaration specifiers or '...' before string constant
   34 |   printf("%d\n",count);
      |          ^~~~~~
main.c:34:17: error: unknown type name 'count'
   34 |   printf("%d\n",count);
      |                 ^~~~~
main.c:36:3: error: expected identifier or '(' before 'return'
   36 |   return 0;
      |   ^~~~~~
main.c:37:1: error: expected identifier or '(' before '}' token
   37 | }
      | ^
Language: C

#include <stdio.h>
#include <string.h>
char tolower(char *);//char Large to Small

int main(){
  int i=0,count=0;
  char t,txt[1001]={},word[11]={},end[]={"END_OF_TEXT"};
  scanf("%s",word);
  tolower(word);
  scanf("%c",&t);
  while( scanf("%s",txt)){
    if( strcmp(txt,end)==0 ) break;
    tolower(txt);
    if( strcmp(txt,word)==0 ) count++;
  }
    
  printf("%d\n",count);

  return 0;
}

char tolower(char *c){
  int i,len=strlen(c);
  for(i=0;i<len;i++){
    if((int)t>=65&&(int)t<=90){
      c[i]+=32;
    }
  }
  return c;
}

Compiler output:
main.c:3:6: warning: conflicting types for built-in function 'tolower'; expected 'int(int)' [-Wbuiltin-declaration-mismatch]
    3 | char tolower(char *);//char Large to Small
      |      ^~~~~~~
main.c:3:1: note: 'tolower' is declared in header '<ctype.h>'
    2 | #include <string.h>
  +++ |+#include <ctype.h>
    3 | char tolower(char *);//char Large to Small
main.c: In function 'tolower':
main.c:25:13: error: 't' undeclared (first use in this function)
   25 |     if((int)t>=65&&(int)t<=90){
      |             ^
main.c:25:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:10: error: returning 'char *' from a function with return type 'char' makes integer from pointer without a cast [-Wint-conversion]
   29 |   return c;
      |          ^
Language: C

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

	int main(void)
{
	char x[10] ,y[100];
	int i = 0;
	
	scanf("%s",&x);
	
	while(1){
		
	if(scanf("%s",&y) == EOF)
		break;
	
	else if(strcmp(x,y) == 0){
		i++;
}

printf("%d\n",i);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

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

void BS(char a[]){
int i, len;
len = strlen(a);



for(i = 0; i < len; i++){
	if('A' <= a[i] && a[i] <= 'Z')
		a[i] += 32;
}
}

	



	int main(void)
{
	char x[10] ,y[100];
	int i = 0;

	scanf("%s",&x);

	while(1){
	if(scanf("%s",&y) == EOF)
		break;

	else if(strcmp(x,BS(y)) == 0){
		i++;
}
}



printf("%d\n",i);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:31:26: error: invalid use of void expression
   31 |         else if(strcmp(x,BS(y)) == 0){
      |                          ^~~~~
Language: C

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

/*void BS(char a[]){
int i, len;
len = strlen(a);

for(i = 0; i < len; i++){
	if('A' <= a[i] && a[i] <= 'Z')
		a[i] += 32;
}
}
*/

	



int main(void)
{
	char x[10] ,y[100];
	int i = 0;

	scanf("%s",&x);

	while(1){
	if(scanf("%s",&y) == EOF)
		break;

	else if(strcmp(x,BS(y)) == 0){
		i++;
}
}



printf("%d\n",i);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:30:26: error: implicit declaration of function 'BS' [-Wimplicit-function-declaration]
   30 |         else if(strcmp(x,BS(y)) == 0){
      |                          ^~
main.c:30:26: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   30 |         else if(strcmp(x,BS(y)) == 0){
      |                          ^~~~~
      |                          |
      |                          int
In file included from main.c:2:
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
Language: C

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

void BS(char a[]){
int i, len;
len = strlen(a);

for(i = 0; i < len; i++){
	if('A' <= a[i] && a[i] <= 'Z')
		a[i] += 32;
}
}


	



int main(void)
{
	char x[10] ,y[100];
	int i = 0;

	scanf("%s",&x);

	while(1){
	if(scanf("%s",&y) == EOF)
		break;
BS(y);
	else if(strcmp(x,y) == 0){
		i++;
}
}



printf("%d\n",i);

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:30:9: error: 'else' without a previous 'if'
   30 |         else if(strcmp(x,y) == 0){
      |         ^~~~
Language: C

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

int main()
{
	char W[11];
	char T[1001];
	int count=0;
	
	scanf("%s",W);
	while(scanf(" %s",T)!=EOF)
	{
		if(stricmp(T,"END_OF_TEXT")==0)break;
		else
		{
			if(strcmp(T,W)==0)count++;
		}
	}
	printf("%d\n",count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:20: error: implicit declaration of function 'stricmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   13 |                 if(stricmp(T,"END_OF_TEXT")==0)break;
      |                    ^~~~~~~
      |                    strncmp
Language: C

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

int main()
{
	char W[11];
	char T[1001];
	int count=0;
	
	scanf("%s",W);
	while(scanf(" %s",T)!=EOF)
	{
		if(stricmp(T,"END_OF_TEXT")==0)break;
		else
		{
			if(stricmp(T,W)==0)count++;
		}
	}
	printf("%d\n",count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:20: error: implicit declaration of function 'stricmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   13 |                 if(stricmp(T,"END_OF_TEXT")==0)break;
      |                    ^~~~~~~
      |                    strncmp
Language: C

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

#define _cplusplus_strings

int main()
{
	char W[11];
	char T[1001];
	int count=0;
	
	scanf("%s",W);
	while(scanf(" %s",T)!=EOF)
	{
		if(stricmp(T,"END_OF_TEXT")==0)break;
		else
		{
			if(stricmp(T,W)==0)count++;
		}
	}
	printf("%d\n",count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:20: error: implicit declaration of function 'stricmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   15 |                 if(stricmp(T,"END_OF_TEXT")==0)break;
      |                    ^~~~~~~
      |                    strncmp
Language: C

#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main()
{
	char W[11];
	char T[1001];
	int count=0,length,i;
	
	scanf("%s",W);
	length=strlen(W);
	
	for(i=0;i<length;i++)W[i]=toupper(W[i]);
	
	while(scanf(" %s",T)!=EOF)
	{
		if(stricmp(T,"END_OF_TEXT")==0)break;
		else
		{
			length=strlen(W);
			for(i=0;i<length;i++)W[i]=toupper(W[i]);
			if(stricmp(T,W)==0)count++;
		}
	}
	printf("%d\n",count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:20: error: implicit declaration of function 'stricmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   17 |                 if(stricmp(T,"END_OF_TEXT")==0)break;
      |                    ^~~~~~~
      |                    strncmp
Language: C

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

int main()
{
	char w[12];
	char data[1024];
	int w_size;
	int data_size;
	char *ptr;
	int i;
	int match=0;
	char *dmy;

	gets(w);
	w_size  = strlen(w);
	while(1) {
		gets(data);
		data_size = strlen(data);
		i = strlen("END_OF_TEXT");
		if (i == data_size) {
			if (strcmp(data,"END_OF_TEXT")==0) {
				printf("%d",match);
				return 0;
			}
		}

		ptr = strtok_s(data," ",&dmy);
		for (i=0 ;; i++) {
			if (ptr == NULL) {
				break;
			}
			if (strcmp(w,ptr)==0) {
				match++;
			}
			ptr = strtok_s(NULL," ",&dmy);
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:15:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   15 |         gets(w);
      |         ^~~~
      |         fgets
main.c:28:23: error: implicit declaration of function 'strtok_s'; did you mean 'strtok_r'? [-Wimplicit-function-declaration]
   28 |                 ptr = strtok_s(data," ",&dmy);
      |                       ^~~~~~~~
      |                       strtok_r
main.c:28:21: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   28 |                 ptr = strtok_s(data," ",&dmy);
      |                     ^
main.c:36:29: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   36 |                         ptr = strtok_s(NULL," ",&dmy);
      |                             ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
int i,n=0,f;
char s[12];
char c[100];
scanf("%s",s);
while(scanf("%s",c)!=EOF){
i=strstr(c,s);
if(i!=\0){n+=1;}

}

Compiler output:
main.c: In function 'main':
main.c:9:2: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    9 | i=strstr(c,s);
      |  ^
main.c:10:7: error: stray '\' in program
   10 | if(i!=\0){n+=1;}
      |       ^
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
int i,n=0,f;
char s[12];
char c[100];
scanf("%s",s);
while(scanf("%s",c)!=EOF){
i=strstr(c,s);
if(i!=\0){n+=1;}

}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:2: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    9 | i=strstr(c,s);
      |  ^
main.c:10:7: error: stray '\' in program
   10 | if(i!=\0){n+=1;}
      |       ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
int i,n=0,f;
char s[12];
char c[100];
scanf("%s",s);
while(1){
scanf("%s",c);
i=strstr(c,s);
if(c=="END_OF_TEXT")break;
if(i!='\0'){n+=1;i='\0'}
}
printf("%d\n",n);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:2: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   10 | i=strstr(c,s);
      |  ^
main.c:12:24: error: expected ';' before '}' token
   12 | if(i!='\0'){n+=1;i='\0'}
      |                        ^
      |                        ;
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
int i,n=0,f;
char s[12];
char c[100];
scanf("%s",s);
while(1){
scanf("%s",c);
i=strstr(c,s);
f=strstr(c,"END_OF_TEXT");
if(strstr(f!='\0'){break;}
if(i!='\0'){n+=1;i='\0';}
}
printf("%d\n",n);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:2: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   10 | i=strstr(c,s);
      |  ^
main.c:11:2: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   11 | f=strstr(c,"END_OF_TEXT");
      |  ^
main.c:12:12: error: passing argument 1 of 'strstr' makes pointer from integer without a cast [-Wint-conversion]
   12 | if(strstr(f!='\0'){break;}
      |           ~^~~~~~
      |            |
      |            int
In file included from main.c:2:
/usr/include/string.h:350:34: note: expected 'const char *' but argument is of type 'int'
  350 | extern char *strstr (const char *__haystack, const char *__needle)
      |                      ~~~~~~~~~~~~^~~~~~~~~~
main.c:12:4: error: too few arguments to function 'strstr'
   12 | if(strstr(f!='\0'){break;}
      |    ^~~~~~
/usr/include/string.h:350:14: note: declared here
  350 | extern char *strstr (const char *__haystack, const char *__needle)
      |              ^~~~~~
main.c:12:19: error: expected ')' before '{' token
   12 | if(strstr(f!='\0'){break;}
      |   ~               ^
      |                   )
main.c:14:1: error: expected expression before '}' token
   14 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
int i,n=0,f;
char s[12];
char c[100];
scanf("%s",s);
while(1){
scanf("%s",c);
i=strstr(c,s);
f=strstr(c,END_OF_TEXT);
if(strstr(f!='\0'){break;}
if(i!='\0'){n+=1;i='\0';}
}
printf("%d\n",n);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:2: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   10 | i=strstr(c,s);
      |  ^
main.c:11:12: error: 'END_OF_TEXT' undeclared (first use in this function)
   11 | f=strstr(c,END_OF_TEXT);
      |            ^~~~~~~~~~~
main.c:11:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:12: error: passing argument 1 of 'strstr' makes pointer from integer without a cast [-Wint-conversion]
   12 | if(strstr(f!='\0'){break;}
      |           ~^~~~~~
      |            |
      |            int
In file included from main.c:2:
/usr/include/string.h:350:34: note: expected 'const char *' but argument is of type 'int'
  350 | extern char *strstr (const char *__haystack, const char *__needle)
      |                      ~~~~~~~~~~~~^~~~~~~~~~
main.c:12:4: error: too few arguments to function 'strstr'
   12 | if(strstr(f!='\0'){break;}
      |    ^~~~~~
/usr/include/string.h:350:14: note: declared here
  350 | extern char *strstr (const char *__haystack, const char *__needle)
      |              ^~~~~~
main.c:12:19: error: expected ')' before '{' token
   12 | if(strstr(f!='\0'){break;}
      |   ~               ^
      |                   )
main.c:14:1: error: expected expression before '}' token
   14 | }
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
	int k,i, n = 0, f;
	char s[12];
	char c[100];
	scanf("%s", s);
for(k=0;k<12;k++){
if('a'<=s[k]&&s[k]<='z'){s[k]=s[k]-'a'+'A';}
}
	while (1){
		scanf("%s", c);
f = strcmp(c, "END_OF_TEXT");
		if (f == 0){ break; }
for(k=0;k<100;k++){
if('a'<=c[k]&&c[k]<='z'){c[k]=c[k]-'a'+'A';}else if(c[k]=='\0'){break;}
}
		i = strcmp(c, s);
		
		if (i !==0){ n += 1; i = '\0'; }
	}
	printf("%d\n", n);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:25: error: expected expression before '=' token
   20 |                 if (i !==0){ n += 1; i = '\0'; }
      |                         ^
Language: C

#include <stdio.h>
#include <string.h>
#define MAX 1000
#define EOT "END_OF_TEXT"

int main(void) {
    int cnt;
    char ptn[MAX], wrd[MAX];
    scanf("%s", ptn);
    for(cnt = 0; ~scanf("%s", wrd), strcmp(wrd, EOT); cnt += !strcmp(wrd, ptn););
    printf("%d\n", cnt);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:79: error: expected ')' before ';' token
   10 |     for(cnt = 0; ~scanf("%s", wrd), strcmp(wrd, EOT); cnt += !strcmp(wrd, ptn););
      |        ~                                                                      ^
      |                                                                               )
Language: C

#include <stdio.h>
#include <string.h>
#define MAX 1000
#define EOT "END_OF_TEXT"

int main(void) {
    int cnt = 0;
    char ptn[MAX], wrd[MAX];
    scanf("%s", ptn);
    
    while(~scanf("%s", wrd), strcmp(wrd, EOT)) {
        cnt += !stricmp(wrd, ptn);
    }
    printf("%d\n", cnt);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: implicit declaration of function 'stricmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   12 |         cnt += !stricmp(wrd, ptn);
      |                 ^~~~~~~
      |                 strncmp
Language: C

#include <stdio.h>
#include <string.h>
#define MAX 1000
#define EOT "END_OF_TEXT"

int main(void) {
    int cnt = 0;
    char ptn[MAX], wrd[MAX];
    scanf("%s", ptn);
    
    while(~scanf("%s", wrd), strcmp(wrd, EOT)) {
        cnt += !strcmpi(wrd, ptn);
    }
    printf("%d\n", cnt);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: implicit declaration of function 'strcmpi'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
   12 |         cnt += !strcmpi(wrd, ptn);
      |                 ^~~~~~~
      |                 strcmp
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
	int i,len,kensaku=0;
	char str[1200],W[10],T[1000],serchlen,Wcount=0;
	fgets(W,sizeof W,stdin);
	serchlen=strlen(W)
	while(1){
		fgets(T,sizeof T,stdin);
		len=strlen(T);
		for(i=0;i<len;i++){
			if(T[i]==W[kensaku]){
				kensaku++;
				if(kensaku==serchlen){
					Wcount++;
					kensaku=0;
				}
			}
			else{
				kensaku=0;
			}
		}
		if(T=="END_OF_TEXT"){
			break;
		}
	
	}
	printf("%d",Wcount);
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    7 |         serchlen=strlen(W)
      |                  ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main(void){
main.c:7:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    7 |         serchlen=strlen(W)
      |                  ^~~~~~
main.c:7:18: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:7:27: error: expected ';' before 'while'
    7 |         serchlen=strlen(W)
      |                           ^
      |                           ;
    8 |         while(1){
      |         ~~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
	int i,len,kensaku=0,ENDcount=0;;
	char str[1200],W[10],T[1000],serchlen,Wcount=0,END;
	END="END_OF_TEXT";
	fgets(W,sizeof W,stdin);
	serchlen=strlen(W);
	while(1){
		fgets(T,sizeof T,stdin);
		len=strlen(T);
		for(i=0;i<len;i++){
			if(T[i]==W[kensaku]){
				kensaku++;
				if(kensaku==serchlen){
					Wcount++;
					kensaku=0;
				}
			}
			else{
				kensaku=0;
			}
		}
		for(i=0;;i++){
			if(T[i]==END[i]){
				ENDcount++;
			}
			else{
				ENDcount=0;
				}
			if(ENDcount==11){
				break;
			}
		}
	
	}
	printf("%d",Wcount);
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    6 |         END="END_OF_TEXT";
      |            ^
main.c:8:18: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    8 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main(void){
main.c:8:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    8 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:8:18: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:25:37: error: subscripted value is neither array nor pointer nor vector
   25 |                         if(T[i]==END[i]){
      |                                     ^
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
	int i,len,kensaku=0,ENDcount=0;
	char str[1200],W[10],T[1000],serchlen,Wcount=0,END;
	END="END_OF_TEXT";
	fgets(W,sizeof W,stdin);
	serchlen=strlen(W);
	while(1){
		fgets(T,sizeof T,stdin);
		len=strlen(T);
		for(i=0;i<len;i++){
			if(T[i]==W[kensaku]){
				kensaku++;
				if(kensaku==serchlen){
					Wcount++;
					kensaku=0;
				}
			}
			else{
				kensaku=0;
			}
		}
		for(i=0;;i++){
			if(T[i]==END[i]){
				ENDcount++;
			}
			else{
				ENDcount=0;
				}
			if(ENDcount==11){
				break;
			}
		}
	
	}
	printf("%d",Wcount);
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    6 |         END="END_OF_TEXT";
      |            ^
main.c:8:18: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    8 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main(void){
main.c:8:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    8 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:8:18: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:25:37: error: subscripted value is neither array nor pointer nor vector
   25 |                         if(T[i]==END[i]){
      |                                     ^
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
	int i,len,kensaku=0,ENDcount=0;
	char str[1200],W[10],T[1000],serchlen,Wcount=0,END;
	END="END_OF_TEXT";
	fgets(W,sizeof W,stdin);
	serchlen=strlen(W);
	while(1){
		fgets(T,sizeof T,stdin);
		len=strlen(T);
		for(i=0;i<len;i++){
			if(T[i]==W[kensaku]){
				kensaku++;
				if(kensaku==serchlen){
					Wcount++;
					kensaku=0;
				}
			}
			else{
				kensaku=0;
			}
		}
		for(i=0;i<len;i++){
			if(T[i]==END[i]){
				ENDcount++;
			}
			else{
				ENDcount=0;
				}
			if(ENDcount==11){
				break;
			}
		}
	
	}
	printf("%d",Wcount);
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    6 |         END="END_OF_TEXT";
      |            ^
main.c:8:18: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    8 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main(void){
main.c:8:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    8 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:8:18: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:25:37: error: subscripted value is neither array nor pointer nor vector
   25 |                         if(T[i]==END[i]){
      |                                     ^
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
	int i,len,kensaku=0,ENDcount=0;
	char str[1200],W[10],T[1000],serchlen,Wcount=0,END[11];
	END="END_OF_TEXT";
	fgets(W,sizeof W,stdin);
	serchlen=strlen(W);
	while(1){
		fgets(T,sizeof T,stdin);
		len=strlen(T);
		for(i=0;i<len;i++){
			if(T[i]==W[kensaku]){
				kensaku++;
				if(kensaku==serchlen){
					Wcount++;
					kensaku=0;
				}
			}
			else{
				kensaku=0;
			}
		}
		for(i=0;i<len;i++){
			if(T[i]==END[i]){
				ENDcount++;
			}
			else{
				ENDcount=0;
				}
			if(ENDcount==11){
				break;
			}
		}
	
	}
	printf("%d",Wcount);
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: assignment to expression with array type
    6 |         END="END_OF_TEXT";
      |            ^
main.c:8:18: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    8 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main(void){
main.c:8:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    8 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:8:18: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
	int i,len,kensaku=0,ENDcount=0;
	char str[1200],W[10],T[1000],serchlen,Wcount=0,END[11];
	END[]="END_OF_TEXT";
	fgets(W,sizeof W,stdin);
	serchlen=strlen(W);
	while(1){
		fgets(T,sizeof T,stdin);
		len=strlen(T);
		for(i=0;i<len;i++){
			if(T[i]==W[kensaku]){
				kensaku++;
				if(kensaku==serchlen){
					Wcount++;
					kensaku=0;
				}
			}
			else{
				kensaku=0;
			}
		}
		for(i=0;i<len;i++){
			if(T[i]==END[i]){
				ENDcount++;
			}
			else{
				ENDcount=0;
				}
			if(ENDcount==11){
				break;
			}
		}
	
	}
	printf("%d",Wcount);
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected expression before ']' token
    6 |         END[]="END_OF_TEXT";
      |             ^
main.c:8:18: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    8 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main(void){
main.c:8:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    8 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:8:18: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
	int i,len,kensaku=0,ENDcount=0;
	char str[1200],W[10],T[1000],serchlen,Wcount=0,END[]="END_OF_TEXT";
	fgets(W,sizeof W,stdin);
	serchlen=strlen(W);
	for(i=0;i<serchlen;i++){//serch word input
			if( isupper(T[i]) ){
				T[i]=tolower(T[i]);//omoji->komoji
			}
		}
	while(1){
		fgets(T,sizeof T,stdin);//text input
		len=strlen(T);
		for(i=0;i<len;i++){
			if(T[i]==END[i]){
				ENDcount++;
			}
			else {
				ENDcount=0;
				}
			if(ENDcount==11){
				goto OUT;//while nukeru
			}
		}
		for(i=0;i<len;i++){
			if( isupper(T[i]) ){
				T[i]=tolower(T[i]);//omoji->komoji
			}
		}
		for(i=0;i<len;i++){
			if(T[i]==W[kensaku]){
				kensaku++;
				if(kensaku==serchlen-1 && (T[i+1]==' ' || t[i+i]=='\0')){
					Wcount++;
					kensaku=0;
				}
			}
			else{
				kensaku=0;
			}
		}
		
	}
	OUT:
	printf("%d\n",Wcount);
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    7 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main(void){
main.c:7:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    7 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:7:18: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:9:29: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]
    9 |                         if( isupper(T[i]) ){
      |                             ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'isupper'
    2 | #include <stdlib.h>
  +++ |+#include <ctype.h>
    3 | int main(void){
main.c:10:38: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   10 |                                 T[i]=tolower(T[i]);//omoji->komoji
      |                                      ^~~~~~~
main.c:10:38: note: include '<ctype.h>' or provide a declaration of 'tolower'
main.c:35:75: error: 't' undeclared (first use in this function)
   35 |                                 if(kensaku==serchlen-1 && (T[i+1]==' ' || t[i+i]=='\0')){
      |                                                                           ^
main.c:35:75: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
	int i,len,kensaku=0,ENDcount=0;
	char str[1200],W[10],T[1000],serchlen,Wcount=0,END[]="END_OF_TEXT";
	fgets(W,sizeof W,stdin);
	serchlen=strlen(W);
	for(i=0;i<serchlen;i++){//serch word input
			if( isupper(T[i]) ){
				T[i]=tolower(T[i]);//omoji->komoji
			}
		}
	while(1){
		fgets(T,sizeof T,stdin);//text input
		len=strlen(T);
		for(i=0;i<len;i++){
			if(T[i]==END[i]){
				ENDcount++;
			}
			else {
				ENDcount=0;
				}
			if(ENDcount==11){
				goto OUT;//while nukeru
			}
		}
		for(i=0;i<len;i++){
			if( isupper(T[i]) ){
				T[i]=tolower(T[i]);//omoji->komoji
			}
		}
		for(i=0;i<len;i++){
			if(T[i]==W[kensaku]){
				kensaku++;
				if(kensaku==serchlen-1){
					if(T[i+1]==' ' || t[i+i]=='\0'){
						Wcount++;
						kensaku=0;
					}
				}
			}
			else{
				kensaku=0;
			}
		}
		
	}
	OUT:
	printf("%d\n",Wcount);
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    7 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main(void){
main.c:7:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    7 |         serchlen=strlen(W);
      |                  ^~~~~~
main.c:7:18: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:9:29: error: implicit declaration of function 'isupper' [-Wimplicit-function-declaration]
    9 |                         if( isupper(T[i]) ){
      |                             ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'isupper'
    2 | #include <stdlib.h>
  +++ |+#include <ctype.h>
    3 | int main(void){
main.c:10:38: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   10 |                                 T[i]=tolower(T[i]);//omoji->komoji
      |                                      ^~~~~~~
main.c:10:38: note: include '<ctype.h>' or provide a declaration of 'tolower'
main.c:36:59: error: 't' undeclared (first use in this function)
   36 |                                         if(T[i+1]==' ' || t[i+i]=='\0'){
      |                                                           ^
main.c:36:59: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(void){
  char word[12],t_i[1010];
  int i,count=0;

  scanf("%s",word);
  scanf("%s",t_i);
  while(strcmp(t_i,"END_OF_TEXT")!=0)|
    if(strstr(t_i,word)!=NULL)  count++;
    scanf("%s",t_i);
  }

  printf("%d\n",count);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:38: error: expected expression before '|' token
   10 |   while(strcmp(t_i,"END_OF_TEXT")!=0)|
      |                                      ^
main.c: At top level:
main.c:15:10: error: expected declaration specifiers or '...' before string constant
   15 |   printf("%d\n",count);
      |          ^~~~~~
main.c:15:17: error: unknown type name 'count'
   15 |   printf("%d\n",count);
      |                 ^~~~~
main.c:17:3: error: expected identifier or '(' before 'return'
   17 |   return 0;
      |   ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C

#include <stdio.h>
#include <string.h>
  
int main(void){
  char word[12],t_i[1010];
  int i,leng,count=0;
  
  scanf("%s",word);
  scanf("%s",t_i);
  while(strcmp(t_i,"END_OF_TEXT")!=0){
    leng=strlen(t_i);
    for(i=0;i<leng;i++)  str[i]=tolower(str[i]);
    if(strstr(t_i,word)!=NULL)  count++;
    scanf("%s",t_i);
  }
  
  printf("%d\n",count);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:26: error: 'str' undeclared (first use in this function)
   12 |     for(i=0;i<leng;i++)  str[i]=tolower(str[i]);
      |                          ^~~
main.c:12:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:33: error: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
   12 |     for(i=0;i<leng;i++)  str[i]=tolower(str[i]);
      |                                 ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'tolower'
    2 | #include <string.h>
  +++ |+#include <ctype.h>
    3 |
Language: C

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

#define SIZE_STRING			(10)
#define SIZE_SENTENCE		(1000)
#define SIZE_OF_ENT_TEXT	(11)

static void initialize_sentence_array(char *string, int size);
static void convert_uppercase_to_lowercase(char *string);

int main(void)
{
	char string[SIZE_STRING];
	char sentence[SIZE_SENTENCE];
	char *const end_of_text = "END_OF_TEXT";
	int foundNumber;
	int i;
	int j;
	int k;

	foundNumber = 0;

	scanf("%s", string);

	while(0 != memcmp(sentence, end_of_text, SIZE_OF_ENT_TEXT)){
		initialize_sentence_array(sentence, SIZE_SENTENCE);
		scanf("%s", sentence);
		convert_uppercase_to_lowercase(sentence, SIZE_SENTENCE);
		convert_uppercase_to_lowercase(string, SIZE_STRING);
		for(i = 0; i < SIZE_SENTENCE; i++){
			if(sentence[i] == string[0]){
				k = 0;
				j = i;
				while(sentence[j++] == string[k++]){
					if('\0' == string[k]){
						foundNumber++;
					}
					if('\0' == sentence[j]){
						break;
					}
				}
			}
		}
	}

	printf("%d\n", foundNumber);

	return 0;
}

static void initialize_sentence_array(char *string, int size)
{
	int i;

	for(i = 0; i < size; i++){
		string[i] = 0;
	}
}

static void convert_uppercase_to_lowercase(char *string)
{
	int i;

	for(i = 0; '\0' != string[i]; i++){
		if(65 <= string[i] && string[90] <= i){
			string[i] = string[i] + 32;
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:28:17: error: too many arguments to function 'convert_uppercase_to_lowercase'
   28 |                 convert_uppercase_to_lowercase(sentence, SIZE_SENTENCE);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:9:13: note: declared here
    9 | static void convert_uppercase_to_lowercase(char *string);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:29:17: error: too many arguments to function 'convert_uppercase_to_lowercase'
   29 |                 convert_uppercase_to_lowercase(string, SIZE_STRING);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:9:13: note: declared here
    9 | static void convert_uppercase_to_lowercase(char *string);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C

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

int main(void)
{
    int number = 0
	int i;
    char sentence[1000];
	char word[10];

    scanf("%s", word);

    for(i = 0; i < 10; i++){
		word[i] = tolower(b[i]);
	}

    while(1){
        scanf("%s", sentence);
        if(strcmp(sentence,"END_OF_TEXT") == 0){
			break;
		}

        for(i = 0; i < 1000; i++){
			sentece[i] = tolower(sentence[i]);
		}

        if(strcmp(sentence, word) == 0){
			number++;
		}
    }

    printf("%d\n", number);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected ',' or ';' before 'int'
    8 |         int i;
      |         ^~~
main.c:14:9: error: 'i' undeclared (first use in this function)
   14 |     for(i = 0; i < 10; i++){
      |         ^
main.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:35: error: 'b' undeclared (first use in this function)
   15 |                 word[i] = tolower(b[i]);
      |                                   ^
main.c:25:25: error: 'sentece' undeclared (first use in this function); did you mean 'sentence'?
   25 |                         sentece[i] = tolower(sentence[i]);
      |                         ^~~~~~~
      |                         sentence
Language: C

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

int main(void)
{
	char a[20],b[20];
	char c[20]="END_OF_TEXT";
	int x=0,strcmp(a,b),strcmp(b,c);
	scanf("%s",a);
	while(1){
		scanf("%s",b);
		if(strcmp(a,b)==0){
			x++;
		}
		if(strcmp(b,c)==0){
			break;
		}
	}
	printf("%d\n",x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
    8 |         int x=0,strcmp(a,b),strcmp(b,c);
      |         ^~~
main.c:8:9: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
Language: C

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

int main(void)
{
	char a[20],b[20];
	char c[20]="END_OF_TEXT";
	int x=0;
	int strcmp(a,b);
	int strcmp(b,c);
	scanf("%s",a);
	while(1){
		scanf("%s",b);
		if(strcmp(a,b)==0){
			x++;
		}
		if(strcmp(b,c)==0){
			break;
		}
	}
	printf("%d\n",x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
    9 |         int strcmp(a,b);
      |         ^~~
main.c:10:9: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   10 |         int strcmp(b,c);
      |         ^~~
Language: C

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

int main(void)
{
	char a[20],b[20];
	int x=0;
	int strcmp(a,b);
	int strcmp(b,c);
	scanf("%s",a);
	while(1){
		scanf("%s",b);
		if(strcmp(a,b)==0){
			x++;
		}
		if(strcmp(b,"END_OF_TEXT")==0){
			break;
		}
	}
	printf("%d\n",x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
    8 |         int strcmp(a,b);
      |         ^~~
main.c:9:9: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
    9 |         int strcmp(b,c);
      |         ^~~
Language: C

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

int main(){
    char ch[1000],ptn[11],end[]="END_OF_TEXT";
    int i,x=0;
    
    scanf("%s",ptn);
    for (i=0; i< strlen(ptn); i++) {
        ptn[i] = tolower(ptn[i]);
    }
    while(1){
        scanf("%s",ch);
        if(strcmp(ch,end)==0) break;
        for (i=0; i< strlen(key); i++) {
            if (isupper(ch[i])==1) {
                ch[i]=tolower(ch[i]);
            }
        }
    }
    if (strcmp(ch, ptn)==0) {
        x++;
    }
    printf("%d\n",x);
    return(0);
}

Compiler output:
main.c: In function 'main':
main.c:16:29: error: 'key' undeclared (first use in this function)
   16 |         for (i=0; i< strlen(key); i++) {
      |                             ^~~
main.c:16:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(void){
int i;
int k=0;
int j=0;
char T[1000],Word[10];
scanf("%s",&Word);
len==strlen(Word);

while(scanf("%s",&T)=='END_OF_TEXT'){
for(i=0;i<10;i++){

if(65<=T[i]<=90){
if(T[i]==Word[i]) || T[i]==Word[i]-32){
k++;
}
}else if(97<=T[i]<=122){
if(T[i]==Word[i] || T[i]==Word[i]+32){
k++;
}
}
if(k==len){
j++;
}
}
}
printf("%d",j);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:1: error: 'len' undeclared (first use in this function)
   10 | len==strlen(Word);
      | ^~~
main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:23: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   12 | while(scanf("%s",&T)=='END_OF_TEXT'){
      |                       ^~~~~~~~~~~~~
main.c:16:19: error: expected expression before '||' token
   16 | if(T[i]==Word[i]) || T[i]==Word[i]-32){
      |                   ^~
main.c:16:38: error: expected statement before ')' token
   16 | if(T[i]==Word[i]) || T[i]==Word[i]-32){
      |                                      ^
Language: C

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

int main(void){
    int i,k;
    int j=0;
    int l=0;
    char Word[10];
    char T[1000]={0};
    scanf("%s",Word);
    int len;
    len=strlen(Word);
    
    while(1){
        scanf("%s",T);
        if(T=='END_OF_TEXT')
            break;
        j=0;
        for(i=0;i<1000;i++){
            if(stricmp(T[i],Word[0])==0){
                for(k=0;k<len;k++){
                    if(stricmp(T[i+k],Word[k])==0){
                        j++;
                    }
                }
            }
        }if(len==j){
            l++;
        }printf("%d\n",l);
    }return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:15: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   16 |         if(T=='END_OF_TEXT')
      |               ^~~~~~~~~~~~~
main.c:16:13: warning: comparison between pointer and integer
   16 |         if(T=='END_OF_TEXT')
      |             ^~
main.c:20:16: error: implicit declaration of function 'stricmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   20 |             if(stricmp(T[i],Word[0])==0){
      |                ^~~~~~~
      |                strncmp
Language: C

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

int main(void){
    int i,k;
    int j=0;
    int l=0;
    char Word[10];
    char T[1000]={0};
    scanf("%s",Word);
    int len;
    len=strlen(Word);
    
    while(1){
        scanf("%s",T);
        if(T=='END_OF_TEXT')
            break;
        j=0;
        for(i=0;i<1000;i++){
            if(stricmp(T[i],Word[0])==0){
                for(k=0;k<len;k++){
                    if(stricmp(T[i+k],Word[k])==0){
                        j++;
                    }else
                        break;
                }
            }else
                break;
        }if(len==j){
            l++;
        }
    }printf("%d\n",l);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:15: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
   16 |         if(T=='END_OF_TEXT')
      |               ^~~~~~~~~~~~~
main.c:16:13: warning: comparison between pointer and integer
   16 |         if(T=='END_OF_TEXT')
      |             ^~
main.c:20:16: error: implicit declaration of function 'stricmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   20 |             if(stricmp(T[i],Word[0])==0){
      |                ^~~~~~~
      |                strncmp
Language: C

#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(void) {
	int i=0,lenW,lenb;
	char *adr;
	char END[]={"END_OF_TEXT"},SPACE[]={' '};
	char W[11],check[1001],buf[10000]={NULL};
		gets(W);
		while(1){
			gets(check);
			if(strstr(check,END)){
				  break;
			}
			else{
				strcat(buf,SPACE);
				strcat(buf,check);
		}

		lenW=strlen(W);
		for(i=0;i<=lenW;i++){
			W[i]=tolower(W[i]);
		}
		lenb=strlen(buf);
			for(i=0;i<=lenb;i++){
			buf[i]=tolower(buf[i]);
		}

		adr=buf;
		while(strstr(adr,W)!=NULL){
			adr=strstr(adr,W);
			adr+=(lenW+1);
			i++;
		}
		printf("%d\n",i);
		return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:44: error: initialization of 'char' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    8 |         char W[11],check[1001],buf[10000]={NULL};
      |                                            ^~~~
main.c:8:44: note: (near initialization for 'buf[0]')
main.c:9:17: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |                 gets(W);
      |                 ^~~~
      |                 fgets
main.c:37:1: error: expected declaration or statement at end of input
   37 | }
      | ^
Language: C

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


int main(void) {

	// 1_8-D Ring
	// ?????? T ????????????????????? W ?????°???????????????????????°??????
	
	char w[10];	//???????????????
	char x[1000];
	int result=0;

	scanf("%s",&x);

	while(strcmp(x,"END_OF_TEXT")!= 0);
		if(strcmp(x,w)==0){
			result++;
		}
		scanf("%s",&x);
	}
	printf("%d\n",result);
	return 0;
}

Compiler output:
main.c:22:16: error: expected declaration specifiers or '...' before string constant
   22 |         printf("%d\n",result);
      |                ^~~~~~
main.c:22:23: error: unknown type name 'result'
   22 |         printf("%d\n",result);
      |                       ^~~~~~
main.c:23:9: error: expected identifier or '(' before 'return'
   23 |         return 0;
      |         ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

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


int main(void) {

	// 1_8-D Ring
	// ?????? T ????????????????????? W ?????°???????????????????????°??????
	
	char w[10];	//???????????????
	char uw[10]	//?????????????????????????????§???????????????????????????
	char dw[10];	//????????????????????????????°????????????????????????????
	char x[1000];
	int i;
	int result=0;

	scanf("%s",w);
	scanf("%s",x);

	//??????????????????????????????uw??¨dw???????´?
	for(i=0; i<strlen(w); i++){
		if( 'A'<=w[i] && w[i]<='Z' ){
			uw[i] = w[i];
			dw[i] = w[i] + ('a'-'A');
		}else if( 'a'<=w[i] && w[i]<='z' ){
			uw[i] = w[i] + ('A'-'a');
			dw[i] = w[i];
		}
	}
	uw[i]='\0';
	dw[i]='\0';

	while(strcmp(x,"END_OF_TEXT")!= 0){
		for(i=0; i<strlen(w); i++){
			if(x[i]!=uw[i] && x[i]!=dw[i] ){
				break;
			}
		}
		if(i==strlen(w)){
			result++;
		}
		scanf("%s",x);
	}
	printf("%d\n",result);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:24: error: expected ';' before 'char'
   11 |         char uw[10]     //?????????????????????????????§???????????????????????????
      |                    ^~~~~
      |                        ;
   12 |         char dw[10];    //????????????????????????????°????????????????????????????
      |         ~~~~        
main.c:23:25: error: 'uw' undeclared (first use in this function); did you mean 'dw'?
   23 |                         uw[i] = w[i];
      |                         ^~
      |                         dw
main.c:23:25: note: each undeclared identifier is reported only once for each function it appears in