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

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

int main(void){
  char t1[1510];
 char t2[1510];

	int i,j;
	int n1,n2;
	int ok=0;
	gets(t1);
	gets(t2);
	n1=strlen(t1);
	n2=strlen(t2);
	for(i=0;i<n1;i++){
		t1[i+n1]=t1[i];
	}
	n1*=2;
	for(i=0;i<n1-n2+1;i++){
		for(j=0;j<n2;j++){
			if(t1[i+j]!=t2[j]) break;
			if(j==n2-1) ok=1;
		}
	}
	if(ok) puts("Yes");
	else puts("No");
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   11 |         gets(t1);
      |         ^~~~
      |         fgets
Language: C

#include <stdio.h>

int main(void){

  char t1[1510];
 char t2[1510];

	int i,j;
	int n1,n2;
	int ok=0;
	gets(t1);
	gets(t2);
	n1=strlen(t1);
	n2=strlen(t2);
	for(i=0;i<n1;i++){
		t1[i+n1]=t1[i];
	}
	n1*=2;
	for(i=0;i<n1-n2+1;i++){
		for(j=0;j<n2;j++){
			if(t1[i+j]!=t2[j]) break;
			if(j==n2-1) ok=1;
		}
	}
	if(ok) puts("Yes");
	else puts("No");
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   11 |         gets(t1);
      |         ^~~~
      |         fgets
main.c:13:12: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   13 |         n1=strlen(t1);
      |            ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:13:12: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   13 |         n1=strlen(t1);
      |            ^~~~~~
main.c:13:12: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C

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

int main()
{
	char S[105],P[105];
	gets(S);
	gets(P);
	sprintf(S,"%s%s",S,S);
	puts(strstr(S,P)==NULL?"No":"Yes");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |         gets(S);
      |         ^~~~
      |         fgets
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
char s[200],p[100],ss[100];
scanf("%s %s",s,p);
strcpy(ss,s);
strcat(s,ss);
if(strshr(s,p)==NULL)printf("No\n");
else printf("Yes\n");
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:4: error: implicit declaration of function 'strshr'; did you mean 'strstr'? [-Wimplicit-function-declaration]
    8 | if(strshr(s,p)==NULL)printf("No\n");
      |    ^~~~~~
      |    strstr
main.c:8:15: warning: comparison between pointer and integer
    8 | if(strshr(s,p)==NULL)printf("No\n");
      |               ^~
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
char s[200],p[100],ss[100];
scanf("%s %s",s,p);
strcpy(ss,s);
if(strshr(strcat(s,ss),p)==NULL)printf("No\n");
else printf("Yes\n");
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:4: error: implicit declaration of function 'strshr'; did you mean 'strstr'? [-Wimplicit-function-declaration]
    7 | if(strshr(strcat(s,ss),p)==NULL)printf("No\n");
      |    ^~~~~~
      |    strstr
main.c:7:26: warning: comparison between pointer and integer
    7 | if(strshr(strcat(s,ss),p)==NULL)printf("No\n");
      |                          ^~
Language: C

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

int main(void)
{
char s[101];
char p[101];
int n, m, i, j;

scanf("%s", s);
scanf("%s", p);

n = strlen(s);
p = strlen(p);

for (i = 0; i < n; i++)
{
for (j = 0; j < m; j++)
{
if (s[(i + j) % n] != p[j])
{
break;
}
}
if (j == m)
{
i = -1;
break;
}
}

if (i < 0) {
puts("Yes");
} else {
puts("No");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:3: error: assignment to expression with array type
   14 | p = strlen(p);
      |   ^
Language: C

#include <stdio.h>
#include <string.h>
 
int main(void)
{
char s[101];
char p[101];
int n, m, i, j;
 
scanf("%s", s);
scanf("%s", p);
 
n = (int)strlen(s);
p = (int)strlen(p);
 
for (i = 0; i < n; i++)
{
for (j = 0; j < m; j++)
{
if (s[(i + j) % n] != p[j])
{
break;
}
}
if (j == m)
{
i = -1;
break;
}
}
 
if (i < 0) {
puts("Yes");
} else {
puts("No");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:3: error: assignment to expression with array type
   14 | p = (int)strlen(p);
      |   ^
Language: C

#include<stdio.h>
main(){
  int i=0,j=0,nikai=0,a,b;
  char p[103],s[101],t[201];
  scanf("%s",s);
  scanf("%s",p);
  /*  printf("%s",s);
      printf("%s",p);*/
  while(1){
    a=s[i]-'0';
    b=p[j]-'0';
    if(a!=b){
      printf("%d and %d\n",i,j); 
     j=0;
      b=p[0]-'0';
    }
    if(a==b){
      printf("%d and %d\n",i,j);
      j++;
    }
     if(!(p[j])){
      printf("Yes\n");
      break;
    }
    i++;
    if(j>0&&!(s[i])){
      i=0;
      printf("on\n");
      nikai++;
    }
    if(!(s[i])){
      printf("%d ni %d\n",i,nikai);
      printf("No\n");
      break;
    }
    if(nikai>=2){
      printf("No\n");
      break;
    }
  }
  return 0;
}
i

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c:43:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   43 | i
      | ^
Language: C

include<stdio.h>
main(){
  int i=0,j=0,nikai=0,a,b;
  char p[103],s[101],t[201];
  scanf("%s",s);
  scanf("%s",p);
  /*  printf("%s",s);
      printf("%s",p);*/
  while(1){
    a=s[i]-'0';
    b=p[j]-'0';
    if(a!=b){
     /*  printf("%d and %d\n",i,j); */
      j=0;
      b=p[0]-'0';
    }
    if(a==b){
     /*  printf("%d and %d\n",i,j); */
      j++;
    }
     if(!(p[j])){
      printf("Yes\n");
      break;
    }
    i++;
    if(j>0&&!(s[i])){
      i=0;
     /*  printf("on\n"); */
      nikai++;
    }
    if(!(s[i])){
/*       printf("%d ni %d\n",i,nikai); */
      printf("No\n");
      break;
    }
    if(nikai>=2){
      printf("No\n");
      break;
    }
  }
  /* while(1){
    if(i==0&&nikai==2) break;
    printf("%c",s[i]);
    if(s[i]){
      t[j]=s[i];
      j++;
      i++;
      printf("%c",t[j]);
    }
    else {
      i=0;
      nikai++;
    }
    }
    printf("%d %s",i,t);*/
  /*while(1){
    if(!(p[j])) printf("Yes");
    if(t[i]==p[j]){
      j++;
    }
    if(j>0&&t[i]!=p[j]){
      j=0;
    }
    i++;
  }
  if(p[j]) ("No");*/
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

include<stdio.h>
main(){
  int i=0,j=0,nikai=0,a,b;
  char p[103],s[101],t[201];
  scanf("%s",s);
  scanf("%s",p);
  while(1){
    a=s[i]-'0';
    b=p[j]-'0';
    if(a!=b){
      j=0;
      b=p[0]-'0';
    }
    if(a==b){
      j++;
    }
     if(!(p[j])){
      printf("Yes\n");
      break;
    }
    i++;
    if(j>0&&!(s[i])){
      i=0;
      nikai++;
    }
    if(!(s[i])){
      printf("No\n");
      break;
    }
    if(nikai>=2){
      printf("No\n");
      break;
}
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

include<stdio.h>
main(){
  int i=0,j=0,nikai=0,a,b;
  char p[101],s[101],t[201];
  scanf("%s",s);
  scanf("%s",p);
  while(1){
    a=s[i]-'0';
    b=p[j]-'0';
    if(a!=b){
      j=0;
      b=p[0]-'0';
    }
    if(a==b){
      j++;
    }
     if(!(p[j])){
      printf("Yes\n");
      break;
    }
    i++;
    if(j>0&&!(s[i])){
      i=0;
      nikai++;
    }
    if(!(s[i])){
      printf("No\n");
      break;
    }
    if(nikai>=2){
      printf("No\n");
      break;
}
}
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

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

//sを二つくっつけてpを検索する
//scanfで文字列取ろう
//同上でpを読み込む
//sを二つくっつけた文字列(doublesとか？)を作る
//検索
//boolで場合分けて表示

int main(){

  char s[100];

  char p[100];

  scanf("%s",s);
 
  scanf("%s",p);

  /*
  printf("%s\n",p);
  printf("%c\n",p[0]); 
  */

  /*
  int length = strlen(s);
  printf("%d\n",length);  
  */
 
  char doubles [length*2+1];

  int a,b;

  for(a=0;a<=length-1;a++){

    doubles[a]=s[a];

  }

  for(b=0;b<=length-1;b++){

    doubles[length+b]=s[b];

  }

  doubles[2*length]='\0';

  char *ch;

  ch=strstr(doubles,p);

  if(ch==NULL){

    printf("No\n");
    
  }else{

    printf("Yes\n");

  }

  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:31:17: error: 'length' undeclared (first use in this function)
   31 |   char doubles [length*2+1];
      |                 ^~~~~~
main.c:31:17: 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 s[100];
      char p[100];
      int snum;
      int pnum;
      do{
          puts("文字列Sを入力して下さい。");
          scanf("%s",&s);
          snum=strlen(s);
      }while(snum>100);
      do{
          puts("文字列Pを入力して下さい。");
          scanf("%s",&p);
          pnum=strlen(p);
      }while(pnum>snum);
       int i,j,n;
       int count=0;
       for(i=0;i<pnum;i++){
              for(j=0;j<snum;j++){
                  if(p[i]==s[j]){
                      s[j]=' ';
                      count++;
                      break;
                  }
              }
      }   
      if(pnum==count){
     	　　　　puts("YES");
      }else{
          puts("NO");
      }
       return 0;
  }                                   

Compiler output:
main.c: In function 'main':
main.c:31:9: error: stray '\343' in program
   31 |         <U+3000><U+3000><U+3000><U+3000>puts("YES");
      |         ^~~~~~~~
main.c:31:11: error: stray '\343' in program
   31 |         <U+3000><U+3000><U+3000><U+3000>puts("YES");
      |                 ^~~~~~~~
main.c:31:13: error: stray '\343' in program
   31 |         <U+3000><U+3000><U+3000><U+3000>puts("YES");
      |                         ^~~~~~~~
main.c:31:15: error: stray '\343' in program
   31 |         <U+3000><U+3000><U+3000><U+3000>puts("YES");
      |                                 ^~~~~~~~
Language: C

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

int main(void){
	char s[102]={0};
	char p[102]={0};
	int i,j,k,flag,slen,plen,count;
	coun = -100;
	fgets(s,sizeof(s),stdin);
	fgets(p,sizeof(p),stdin);

	slen=strlen(s)-1;
	plen=strlen(p)-1;
	for(i=0;i<slen;i++){
		if(p[0] == s[i]){
			count = 0;
			for(j=1;j<plen;j++){
					if(p[j]==s[(i+j)%slen]) count++;
					else break;
			}
			if(count == plen-1){
				puts("Yes");
				break;}
		}
	}
	if(count != plen-1) puts("No");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'coun' undeclared (first use in this function); did you mean 'count'?
    9 |         coun = -100;
      |         ^~~~
      |         count
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define MAX 100
int main(){
	int i,j=0;
	char s[2*MAX+1],p[MAX+1],*p;
	while(scanf("%c", s[i]) != '\n'){
		i++;
	}
	while(scanf("%c", p[j]) != '\n'){
		j++;
	}
	for(i=0; i<MAX+1; i++){ //copy character
		if(s[i]== '\n'){
			for(j=i; j<2*MAX+1; j++){
				s[j]=[j-i];
				if(s[j]=='\n'){break;}
			}
		}
	}
	for(i=0; i<2*MAX+1; i++){
		if(p[0]==s[i]){
			for(j=1; j<MAX+1; j++){
				if(p[j]!=s[i+j]){
					break;
				}else if(p[j]=='\n'){
					printf("Yes\n")
					return 0;
				}else{}
			}
		}
		if(s[i]=='\n'){
			printf("No\n");
			break;
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:5:35: error: conflicting types for 'p'; have 'char *'
    5 |         char s[2*MAX+1],p[MAX+1],*p;
      |                                   ^
main.c:5:25: note: previous declaration of 'p' with type 'char[101]'
    5 |         char s[2*MAX+1],p[MAX+1],*p;
      |                         ^
main.c:15:38: error: expected expression before '[' token
   15 |                                 s[j]=[j-i];
      |                                      ^
main.c:26:56: error: expected ';' before 'return'
   26 |                                         printf("Yes\n")
      |                                                        ^
      |                                                        ;
   27 |                                         return 0;
      |                                         ~~~~~~
Language: C

#include <stdio.h>
#define MAX 100
int main(){
	int i,j=0;
	char s[2*MAX+1],p[MAX+1];
	while(scanf("%c", s[i]) != '\n'){
		i++;
	}
	while(scanf("%c", p[j]) != '\n'){
		j++;
	}
	for(i=0; i<MAX+1; i++){ //copy character
		if(s[i]== '\n'){
			for(j=i; j<2*MAX+1; j++){
				s[j]=[j-i];
				if(s[j]=='\n'){break;}
			}
		}
	}
	for(i=0; i<2*MAX+1; i++){
		if(p[0]==s[i]){
			for(j=1; j<MAX+1; j++){
				if(p[j]!=s[i+j]){
					break;
				}else if(p[j]=='\n'){
					printf("Yes\n");
					return 0;
				}else{}
			}
		}
		if(s[i]=='\n'){
			printf("No\n");
			break;
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:15:38: error: expected expression before '[' token
   15 |                                 s[j]=[j-i];
      |                                      ^
Language: C

#include <stdio.h>
#include <string.h>
#define MAX 100
int main(){
	int i,j,length;
	char s[2*MAX+1],p[MAX+1];
	gets(s);
	gets(p);
	strcat(s,s);
	slen = strlen(s);
	plen = strlen(p);
	for(i=0; i<slen+1; i++){
		if(p[0]==s[i]){
			for(j=1; j<plen+1; j++){
				if(p[j]!=s[i+j]){
					break;
				}else if(p[j]=='\n'){
					printf("Yes\n");
					return 0;
			}
		}
		printf("No\n");
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |         gets(s);
      |         ^~~~
      |         fgets
main.c:10:9: error: 'slen' undeclared (first use in this function); did you mean 'strlen'?
   10 |         slen = strlen(s);
      |         ^~~~
      |         strlen
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:9: error: 'plen' undeclared (first use in this function)
   11 |         plen = strlen(p);
      |         ^~~~
Language: C

#include <stdio.h>
#include <string.h>
#define MAX 100
int main(){
	int i,j,slen,plen;
	char flag='N';
	char s[2*MAX+1],p[MAX+1];
	gets(s);
	gets(p);
	strcat(s,s);
	slen = strlen(s);
	plen = strlen(p);
	for(i=0; i<slen+1; i++){
		if(p[0]==s[i]){
			for(j=0; (p[j]==s[i+j]); j++){
				if(j+1 == plen){flag = 'Y';}
			}
		else{break;}
		}
	}
	if(flag == 'Y'){printf("Yes\n");}
	else if(flag == 'N' ){printf("No\n");}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |         gets(s);
      |         ^~~~
      |         fgets
main.c:18:17: error: expected '}' before 'else'
   18 |                 else{break;}
      |                 ^~~~
main.c: At top level:
main.c:21:9: error: expected identifier or '(' before 'if'
   21 |         if(flag == 'Y'){printf("Yes\n");}
      |         ^~
main.c:22:9: error: expected identifier or '(' before 'else'
   22 |         else if(flag == 'N' ){printf("No\n");}
      |         ^~~~
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>
#define MAX 100
int main(){
	int i,j,slen,plen;
	char flag='N';
	char s[2*MAX+1],p[MAX+1];
	gets(s);
	gets(p);
	strcat(s,s);
	slen = strlen(s);
	plen = strlen(p);
	for(i=0; i<slen+1; i++){
		if(p[0]==s[i]){
			for(j=0; (p[j]==s[i+j]); j++){
				if(j+1 == plen){flag = 'Y';}
			else{break;}
		}
	}
	if(flag == 'Y'){printf("Yes\n");}
	else if(flag == 'N' ){printf("No\n");}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |         gets(s);
      |         ^~~~
      |         fgets
main.c:23:1: error: expected declaration or statement at end of input
   23 | }
      | ^
Language: C

#include <stdio.h>
#include <string.h>
#define MAX 100
int main(){
	int i,j;
	char flag='N';
	char s[2*MAX+1],p[MAX+1];
	gets(s);
	gets(p);
//	strcat(s,s);
/*	for(i=0; s[i] != '\n'; i++){
		if(p[0]==s[i]){
			for(j=0; p[j]==s[i+j]; j++){
				if(p[j+1] == '\0'){flag = 'Y';}
			}
		}
	}

	if(flag == 'Y'){printf("Yes\n");}
	else if(flag == 'N' ){printf("No\n");}
*/
	if(strstr(s,p) != '\0'){printf("Yes\n")}
	else{printf("No\n")}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 |         gets(s);
      |         ^~~~
      |         fgets
main.c:22:24: warning: comparison between pointer and zero character constant [-Wpointer-compare]
   22 |         if(strstr(s,p) != '\0'){printf("Yes\n")}
      |                        ^~
main.c:22:12: note: did you mean to dereference the pointer?
   22 |         if(strstr(s,p) != '\0'){printf("Yes\n")}
      |            ^
main.c:22:48: error: expected ';' before '}' token
   22 |         if(strstr(s,p) != '\0'){printf("Yes\n")}
      |                                                ^
      |                                                ;
main.c:23:28: error: expected ';' before '}' token
   23 |         else{printf("No\n")}
      |                            ^
      |                            ;
Language: C

/*
    0123456
    ???abcdefg
    012
    fga 
*/


#include<stdio.h>
#incldue<string.h>
#define SIZE 200

int main(void)
{
  char s[SIZE], p[SIZE];
  int slen, plen;
  int hed, i, j;
  int mach = 0;

  scanf("%s", s);
  scanf("%s", p);  
  spen = strlen(s);
  plen = strlen(p);

  hed = 0;
  do{
    i = hed;
    j = 0;
    while(s[i] == p[j]){
      i = (i + 1) % slen;
      j = j + 1;
      if(plen <= j){
        mach = 1;
      }
    }
    hed = (hed + 1) % slen;
  }while(hed != 0 );

  if(mach){
    printf("Yes\n");
  }else{
    printf("No\n");
  }

  return(0);
}

Compiler output:
main.c:10:2: error: invalid preprocessing directive #incldue; did you mean #include?
   10 | #incldue<string.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:22:3: error: 'spen' undeclared (first use in this function); did you mean 'slen'?
   22 |   spen = strlen(s);
      |   ^~~~
      |   slen
main.c:22:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:10: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   22 |   spen = strlen(s);
      |          ^~~~~~
main.c:10:1: note: include '<string.h>' or provide a declaration of 'strlen'
    9 | #include<stdio.h>
  +++ |+#include <string.h>
   10 | #incldue<string.h>
main.c:22:10: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   22 |   spen = strlen(s);
      |          ^~~~~~
main.c:22:10: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C

/*
    0123456
    ???abcdefg
    012
    fga 
*/


#include<stdio.h>
#incldue<string.h>
#define SIZE 200

int main(void)
{
  char s[SIZE], p[SIZE];
  int slen, plen;
  int hed, i, j;
  int mach = 0;

  scanf("%s", s);
  scanf("%s", p);  
  slen = strlen(s);
  plen = strlen(p);

  hed = 0;
  do{
    i = hed;
    j = 0;
    while(s[i] == p[j]){
      i = (i + 1) % slen;
      j = j + 1;
      if(plen <= j){
        mach = 1;
      }
    }
    hed = (hed + 1) % slen;
  }while(hed != 0 );

  if(mach){
    printf("Yes\n");
  }else{
    printf("No\n");
  }

  return(0);
}

Compiler output:
main.c:10:2: error: invalid preprocessing directive #incldue; did you mean #include?
   10 | #incldue<string.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:22:10: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   22 |   slen = strlen(s);
      |          ^~~~~~
main.c:10:1: note: include '<string.h>' or provide a declaration of 'strlen'
    9 | #include<stdio.h>
  +++ |+#include <string.h>
   10 | #incldue<string.h>
main.c:22:10: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   22 |   slen = strlen(s);
      |          ^~~~~~
main.c:22:10: note: include '<string.h>' or provide a declaration of 'strlen'
Language: C

# include<stdio.h>

int main(void)
{
  char p[100],s[100];
  int i,n;
  for(i=0;scanf("%c",&p[i])!= EOF ;i++){}
  for(j=0;scanf("%c",&s[i]) != EOF;j++){}
    printf("%d %d",i,j);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: error: 'j' undeclared (first use in this function)
    8 |   for(j=0;scanf("%c",&s[i]) != EOF;j++){}
      |       ^
main.c:8:7: 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 x[128], y[128], z[256], a[256];
int n, m, i, j, k;

scanf("%s",&x);
scanf("%s",&y);

n = strlen(x);
m = strlen(y);

for(i = 0; i < 2 * n; i++){
z[i] = x[i % n];
}

for(i = 0; i < n; i++){
for(j = 0; j < m; j++){
a[j] = z[i + j];
}
if(strcmp(a[j], y[j]) == 0){
	printf("Yes\n");
	k = 1;
break;
}
	if(k == 0)
	printf("No\n");

return 0;
}	

Compiler output:
main.c: In function 'main':
main.c:22:12: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   22 | if(strcmp(a[j], y[j]) == 0){
      |           ~^~~
      |            |
      |            char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:22:18: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   22 | if(strcmp(a[j], y[j]) == 0){
      |                 ~^~~
      |                  |
      |                  char
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:31:1: error: expected declaration or statement at end of input
   31 | }
      | ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main()
{
	char s[100], ss[200],p[100],u[100];
	int i,j,m,n;
	int t = 0;
	gets(s);
	gets(p);
	n = strlen(s);
	m = strlen(p);
	sprintf(ss, "%s%s\n", s, s);
	for (i = 0; i < n; i++){
		for (j = i; j < n; j++){
			strncpy(u, ss + j, m);
			u[m] = '\0';
			if (strcmp(u, p) == 0) {
				t = 1;
			}
		}
	}
	if (t==1) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}

	scanf_s("%s", s);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |         gets(s);
      |         ^~~~
      |         fgets
main.c:30:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   30 |         scanf_s("%s", s);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
int l,f,i,r;
char t,c[110],s[110],u[110];
scanf("%s",c);
l=strlen(c);
t=getc();
scanf("%s",s);
for(i=0;i<l;i++){
for(r=0;r=l;r++){
u[r]=c[(i+r)%l];
}
f=strstr(u,s);
if(f!='\0'){f=1;break;}
}
if(f==1){printf("Yes\n");}else{printf("No\n");}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: too few arguments to function 'getc'
    8 | t=getc();
      |   ^~~~
In file included from main.c:1:
/usr/include/stdio.h:576:12: note: declared here
  576 | extern int getc (FILE *__stream) __nonnull ((1));
      |            ^~~~
main.c:14:2: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   14 | f=strstr(u,s);
      |  ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
int l,f,i,r;
char t,c[110],s[110],u[110];
scanf("%s",c);
l=strlen(c);
t=getc();
scanf("%s",s);
for(i=0;i<l;i++){
for(r=0;r=l;r++){
u[r]=c[(i+r)%l];
}
//f=strstr(u,s);
if(f!='\0'){f=1;break;}
}
if(f==1){printf("Yes\n");}else{printf("No\n");}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: too few arguments to function 'getc'
    8 | t=getc();
      |   ^~~~
In file included from main.c:1:
/usr/include/stdio.h:576:12: note: declared here
  576 | extern int getc (FILE *__stream) __nonnull ((1));
      |            ^~~~
Language: C

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

int main() {
	int i, j, sc, s[200], p[100];
	scanf("%s", s);
	scanf("%s", p);
	sc = strlen(s);
	for( i = 0; i < sc; i++) s[sc + i] == s[i];
	for( i = 0; i < sc; i++) {
		flg = 1;
		for( j = 0; j < strlen(p); j++) {
			if(s[i + j] != p[j]) flg = 0; break;
		}
	}
	if(flg) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:21: error: passing argument 1 of 'strlen' from incompatible pointer type [-Wincompatible-pointer-types]
    8 |         sc = strlen(s);
      |                     ^
      |                     |
      |                     int *
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'int *'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:11:17: error: 'flg' undeclared (first use in this function)
   11 |                 flg = 1;
      |                 ^~~
main.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:40: error: passing argument 1 of 'strlen' from incompatible pointer type [-Wincompatible-pointer-types]
   12 |                 for( j = 0; j < strlen(p); j++) {
      |                                        ^
      |                                        |
      |                                        int *
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'int *'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C

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

int main()
{
	char s[101],s_copy[101],p[101];
	
	scanf("%s",&s);
	scanf("%s",&p);
	
	strcpy(s_copy,s);
	strcat(s,s_copy);

	if(strstr(s,p) == 0){
		printf("NO\n");
	}else{
		printf("YES\n");
	}
	return 0;

Compiler output:
main.c: In function 'main':
main.c:19:9: error: expected declaration or statement at end of input
   19 |         return 0;
      |         ^~~~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
	int lens,lenp,i,j;
	bool hante=0;
	char s[101]={'\0'},p[101]={'\0'},sg[201]={'\0'};

	scanf("%s",s);
	scanf("%s",p);
	lens=strlen(s);
	lenp=strlen(p);
	strcat(sg,s);
	strcat(sg,s);
	for(i=0;i<lens;i++){
		for(j=0;j<lenp;j++){
			if(sg[i+j]!=p[j]) break;
			hante=1;
		}
	}
	if(hante) printf("Yes\n");
	else printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: unknown type name 'bool'
    5 |         bool hante=0;
      |         ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include<string.h>
  +++ |+#include <stdbool.h>
    3 | int main(void){
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
    int lens,lenp,i,j,hante=0;
    char s[101],p[101],buf[201];
 
    scanf("%s",s);
    scanf("%s",p);
    lens=strlen(s);
    lenp=strlen(p);
    strcpy(buf,s);
    strcat(buf,s);
    for(i=0;i<lens;i++){
        for(j=0;j<lenp;j++){
            if(buf[i+j]!=p[j]) break;
        }
        if(lenp==(j)) hante=1;break;
    }
    printf("%s\n",hante?"Yes"|"No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:30: error: invalid operands to binary | (have 'char *' and 'char *')
   19 |     printf("%s\n",hante?"Yes"|"No");
      |                         ~~~~~^
      |                         |    |
      |                         |    char *
      |                         char *
main.c:19:35: error: expected ':' before ')' token
   19 |     printf("%s\n",hante?"Yes"|"No");
      |                                   ^
      |                                   :
Language: C

#include<stdio.h>

int main(void)
{
    char s[100] = {0}, p[100] = {0};
    int i, j = 0;
    int check, fin;
    for(i=0;;i++){
        s[i] = getchar();
        if(s[i] == '\0'){
            break;
        }
    }
    for(i=0;;i++){
        p[i] = getchar();
        if(p[i] == '\0'){
            fin = i;
            break;
        }
    }
    for(i=0;;i++){
        if(s[i] == p[j]){
            j++
        }
        else{
            check = 0;
            break;
        }
        if(j == fin){
            cheak = 1;
            break;
        }
    }
    if(check == 0){
        printf("No\n");
    }
    else{
        printf("Yes\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:16: error: expected ';' before '}' token
   23 |             j++
      |                ^
      |                ;
   24 |         }
      |         ~       
main.c:30:13: error: 'cheak' undeclared (first use in this function); did you mean 'check'?
   30 |             cheak = 1;
      |             ^~~~~
      |             check
main.c:30:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)
{
    char s[101], p[101];
    int i, j, k, m, n=0;
    int check = 0;
    for(i=0;;i++){
        scanf("%c", &s[i]);
        if(s[i] == '\n'){
            break;
        }
    }

    for(j=0;;j++){
        scanf("%c", &p[j]);
        if(p[j] == '\n'){
            break;
        }
    }
    
    for(k=0;k<i;k++){
        if(s[k] == p[0]){
            if(j == 1){
                check = 1;
                break;
            }
            n = k;
            for(m=1;m<j;m++){
                n++;
                if(n == i){+
                    n = 0;
                }
                if(s[n] != p[m]){
                    check = 0;
                    break;
                }
                check = 1;
            }
            if(check == 1){
                break;
            }
        }
    }
    
    if(check == 0){
        printf("No\n");
    }
    else if (check == 1){
        printf("Yes\n");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:32:23: error: lvalue required as left operand of assignment
   32 |                     n = 0;
      |                       ^
Language: C

#include <stdio.h>
#include <string.h>
int main(void)
{
	int i,j,len,flag;
	char s[200],p[100],ss[100];
	scanf("%s",s);
	scanf("%s",p);
	len=strlen(p);
	strcpy(ss,s);
	strcat(s,ss);
	flag=0;
	for(i=0;i<100;i++){
		for(j=0;j<len;j++){
			if(s[i+j] != p[j]) break;
		}
		if(j==len) flag++;
	}
	if(flag==0) printf("No\n");
	else print("Yes\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:14: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |         else print("Yes\n");
      |              ^~~~~
      |              printf
Language: C

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

int main(void)
{
	char s[101], p[101], scircle[201];
	int s_length, p_length;
	int i, j;
	bool answer = 0;

	scanf("%s", s);
	scanf("%s", p);

	s_length = strlen(s);
	p_length = strlen(p);
	sprintf(scircle, "%s%s", s, s);

	for (i = 0; i < s_length; i++) {
		answer = 1;
		for (j = 0; j < p_length; j++) {
			if (p[j] != scircle[i + j]) {
				answer = 0;
				break;
			}
		}
		if (answer)
			break;
	}

	if (answer)
		printf("Yes\n");
	else
		printf("No\n");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: unknown type name 'bool'
    9 |         bool answer = 0;
      |         ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <string.h>
  +++ |+#include <stdbool.h>
    3 |
Language: C

#include<stdio.h>

int main () {
   char s[100], t[100];
   int i, j;

   for (i = 0; i < 100; i++) {
     scanf ("%s", &s[i]);
   }

   for (i = 0; i < 100; i++) {
     scanf ("%s", t[i]);
   }

   for (i = 0; i < 100; i++) {
     for (j = 0; j < 100; j++) {
       if (t[i] == s[j]) {
         u[i] = s[j];
       }
     }
   }


   if (t[100] == u[100]) {
     printf("Yes\n");
   }
   else {
     printf("No\n");
   }

   return 0;
}
   

Compiler output:
main.c: In function 'main':
main.c:18:10: error: 'u' undeclared (first use in this function)
   18 |          u[i] = s[j];
      |          ^
main.c:18:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main() {
    char s[100]; //????????°
    char p[100]; //?????????
    int sNumber;
    int pNumber;
    int count; 
    int i, j;
    number = 0;
    count = 0;

    scanf("%s", &s);
    scanf("%s", &p);

    for (i = 0; s[i] != '\0'; i++){
        sNumber++;
    }
    for (i = 0; p[i] != '\0'; i++){
        pNumber++;
    }

    for (i = 0; i < sNumber; i++) {
        if (s[i] == p[0]) {
            for (j = 0; j < pNumber; j++) {
                if (s[i + j] != p[j]){
                    break;
                }
                count++;
            }
        }
    }

    if (count == pNumber){
        printf("Yes\n");
    } else {
        printf("No\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: 'number' undeclared (first use in this function); did you mean 'pNumber'?
   10 |     number = 0;
      |     ^~~~~~
      |     pNumber
main.c:10:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int s_length(onst char s[]){
   int len = 0;

   while (s[len])
      len++;
   return 0;
}

int main() {
   int
   char s[100], p[100], rings[200];

   scanf("%s", s);
   scanf("%s", p);

   n = s_length(s);

   for ( i = 0; i < n; i++) {
      rings[i] = s[i];
      rings[i + n] = s[i];
   }
   
   if ((ret = strstr(rings, p)) != NULL) {
      printf("Yes\n");
   } else {
      printf("No\n")
   }

   return 0;
}

Compiler output:
main.c:3:14: error: unknown type name 'onst'; did you mean 'const'?
    3 | int s_length(onst char s[]){
      |              ^~~~
      |              const
main.c: In function 'main':
main.c:13:4: error: two or more data types in declaration specifiers
   13 |    char s[100], p[100], rings[200];
      |    ^~~~
main.c:18:4: error: 'n' undeclared (first use in this function)
   18 |    n = s_length(s);
      |    ^
main.c:18:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:8: error: implicit declaration of function 's_length' [-Wimplicit-function-declaration]
   18 |    n = s_length(s);
      |        ^~~~~~~~
main.c:20:10: error: 'i' undeclared (first use in this function)
   20 |    for ( i = 0; i < n; i++) {
      |          ^
main.c:25:9: error: 'ret' undeclared (first use in this function)
   25 |    if ((ret = strstr(rings, p)) != NULL) {
      |         ^~~
main.c:25:15: error: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
   25 |    if ((ret = strstr(rings, p)) != NULL) {
      |               ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strstr'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:25:15: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch]
   25 |    if ((ret = strstr(rings, p)) != NULL) {
      |               ^~~~~~
main.c:25:15: note: include '<string.h>' or provide a declaration of 'strstr'
main.c:25:22: error: passing argument 1 of 'strstr' from incompatible pointer type [-Wincompatible-pointer-types]
   25 |    if ((ret = strstr(rings, p)) != NULL) {
      |                      ^~~~~
      |                      |
      |                      int *
main.c:25:22: note: expected 'const char *' but argument is of type 'int *'
main.c:25:29: error: passing argument 2 of 'strstr' from incompatible pointer type [-Wincompatible-pointer-types]
   25 |    if ((ret = strstr(rings, p)) != NULL) {
      |                             ^
      |                             |
      |                             int *
main.c:25:29: note: expected 'const char *' but argument is of type 'int *'
main.c:28:21: error: expected ';' before '}' token
   28 |       printf("No\n")
      |                     ^
      |                     ;
   29 |    }
      |    ~
Language: C

#include <stdio.h>

int s_length(onst char s[]){
   int len = 0;

   while (s[len])
      len++;
   return 0;
}

int main() {
   int n, i;
   char s[100], p[100], rings[200];
   char *ret;

   scanf("%s", s);
   scanf("%s", p);

   n = s_length(s);

   for ( i = 0; i < n; i++) {
      rings[i] = s[i];
      rings[i + n] = s[i];
   }
   
   if ((ret = strstr(rings, p)) != NULL) {
      printf("Yes\n");
   } else {
      printf("No\n")
   }

   return 0;
}

Compiler output:
main.c:3:14: error: unknown type name 'onst'; did you mean 'const'?
    3 | int s_length(onst char s[]){
      |              ^~~~
      |              const
main.c: In function 'main':
main.c:19:8: error: implicit declaration of function 's_length' [-Wimplicit-function-declaration]
   19 |    n = s_length(s);
      |        ^~~~~~~~
main.c:26:15: error: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
   26 |    if ((ret = strstr(rings, p)) != NULL) {
      |               ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strstr'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:26:15: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch]
   26 |    if ((ret = strstr(rings, p)) != NULL) {
      |               ^~~~~~
main.c:26:15: note: include '<string.h>' or provide a declaration of 'strstr'
main.c:29:21: error: expected ';' before '}' token
   29 |       printf("No\n")
      |                     ^
      |                     ;
   30 |    }
      |    ~
Language: C

#include<stdio.h>

int main () {
   char s[100], t[100];
   int i, j;

   for (i = 0; i < 100; i++) {
     scanf ("%s", &s[i]);
   }

   for (i = 0; i < 100; i++) {
     scanf ("%s", t[i]);
   }

   for (i = 0; i < 100; i++) {
     for (j = 0; j < 100; j++) {
       if (t[i] == s[j]) {
         u[i] = s[j];
       }
       else {
         u[i] = null;
       }
     }
   }


   for (i = 0; i < 100; i++) {
     if (t[i] != u[i]) {
       printf("No\n");
       break;
      }
     else {
       printf("Yes\n");
     }
   }

   return 0;
}
   

Compiler output:
main.c: In function 'main':
main.c:18:10: error: 'u' undeclared (first use in this function)
   18 |          u[i] = s[j];
      |          ^
main.c:18:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:17: error: 'null' undeclared (first use in this function)
   21 |          u[i] = null;
      |                 ^~~~
Language: C

#include <stdio.h>

int main() {
	char a[100], b[100];
	int i, j, k;

	scanf("%s", a);
	scanf("%s", b);

	int cnt = 0;

	while ( a[i] != '\0' ) {
		for ( b[j] != '\0' ) {
			if ( a[i] == b[j] ) {
				j++;
				cnt = 1;
			} else if ( a[i] != b[j] ) {
				i++;
				cnt = 0;
			} else if ( cnt == 1 && b[j] == '\0' ) {
				break;
			}
		if ( cnt == 1 ) break;
		}
	if ( cnt == 1 ) break;
	}
	if ( cnt == 1 ) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:35: error: expected ';' before ')' token
   13 |                 for ( b[j] != '\0' ) {
      |                                   ^~
      |                                   ;
main.c:13:36: error: expected expression before ')' token
   13 |                 for ( b[j] != '\0' ) {
      |                                    ^
Language: C

#include <stdio.h>

int main() {
	char a[100], b[100];
	int i, j, k;

	scanf("%s", a);
	scanf("%s", b);

	int cnt = 0;

	while ( a[i] != '\0' ) {
		for ( b[j] != '\0' ) {
			if ( a[i] == b[j] ) {
				j++;
				cnt = 1;
			} else if ( a[i] != b[j] ) {
				i++;
				cnt = 0;
			} else if ( cnt == 1 && b[j] == '\0' ) {
				break;
			}
		}
	if ( cnt == 1 ) break;
	}
	if ( cnt == 1 ) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:35: error: expected ';' before ')' token
   13 |                 for ( b[j] != '\0' ) {
      |                                   ^~
      |                                   ;
main.c:13:36: error: expected expression before ')' token
   13 |                 for ( b[j] != '\0' ) {
      |                                    ^
Language: C

#include <stdio.h>

int main() {
	char a[100], b[100];
	int i, j, k;

	scanf("%s", a);
	scanf("%s", b);

	int cnt = 0;

	while ( a[i] != '\0' ) {
		for ( b[j] != '\0' ) {
			if ( a[i] == b[j] ) {
				j++;
				cnt = 1;
			} else if ( a[i] != b[j] ) {
				cnt = 0;
			} else if ( cnt == 1 && b[j] == '\0' ) {
				break;
			}
			i++;
		}
	if ( cnt == 1 ) break;
	}
	if ( cnt == 1 ) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:35: error: expected ';' before ')' token
   13 |                 for ( b[j] != '\0' ) {
      |                                   ^~
      |                                   ;
main.c:13:36: error: expected expression before ')' token
   13 |                 for ( b[j] != '\0' ) {
      |                                    ^
Language: C

#include <stdio.h>

int main()
{
  char str_s[100], str_p[100], str_s2[200];
  int i, j, flag;
  int s_len, p_len;

  gets(s);
  gets(p);

  s_len = strlen(str_s);
  p_len = strlen(str_p);
  strcpy(str_s2);
  strcat(str_s2, str_s);

  for (i = 0 i < s_len; i++) {
    flag = 1;
    for (j = 0 j < p_len; j++) {
      if (str_s2[i + j] != str_p[j]) {
        flag  = 0;
        break;
      }
    }
    if (flag == 1) {
      break;
    }
  }

  if (flag == 1) {
    printf("yes\n");
  } else {
    printf("no\n");
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |   gets(s);
      |   ^~~~
      |   fgets
main.c:9:8: error: 's' undeclared (first use in this function)
    9 |   gets(s);
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:8: error: 'p' undeclared (first use in this function)
   10 |   gets(p);
      |        ^
main.c:12:11: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
   12 |   s_len = strlen(str_s);
      |           ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:12:11: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
   12 |   s_len = strlen(str_s);
      |           ^~~~~~
main.c:12:11: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:14:3: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
   14 |   strcpy(str_s2);
      |   ^~~~~~
main.c:14:3: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c:14:3: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch]
main.c:14:3: note: include '<string.h>' or provide a declaration of 'strcpy'
main.c:14:3: error: too few arguments to function 'strcpy'
main.c:15:3: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
   15 |   strcat(str_s2, str_s);
      |   ^~~~~~
main.c:15:3: note: include '<string.h>' or provide a declaration of 'strcat'
main.c:15:3: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch]
main.c:15:3: note: include '<string.h>' or provide a declaration of 'strcat'
main.c:17:13: error: expected ';' before 'i'
   17 |   for (i = 0 i < s_len; i++) {
      |             ^~
      |             ;
main.c:17:28: error: expected ';' before ')' token
   17 |   for (i = 0 i < s_len; i++) {
      |                            ^
      |                            ;
main.c:19:15: error: expected ';' before 'j'
   19 |     for (j = 0 j < p_len; j++) {
      |               ^~
      |               ;
main.c:19:30: error: expected ';' before ')' token
   19 |     for (j = 0 j < p_len; j++) {
      |                              ^
      |                              ;
Language: C

#include <stdio.h>

int main() {
	char a[100], b[100];
	int i, j, k;

	scanf("%s", a);
	scanf("%s", b);

	int cnt = 0;

	for ( i = 0; a[i] != '\0'; i++ ) {
		for ( j = i; b[j] != '\0' ) {
			if ( a[i] == b[j] ) {
				cnt = 1;
			} else if ( a[i] != b[j] ) {
				cnt = 0;
			} else if ( cnt == 1 && b[j] == '\0' ) {
				break;
			}
		}
	if ( cnt == 1 ) break;
	}
	if ( cnt == 1 ) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:42: error: expected ';' before ')' token
   13 |                 for ( j = i; b[j] != '\0' ) {
      |                                          ^~
      |                                          ;
Language: C

#include<stdio.h>
#include<string.h>
int main (void){
  char s[100], p[100], s2[200];
  scanf ("%s, s);
  scanf ("%s, p);
  strcat (s2, s);
  strcat (s2, s);
  if ( strstr(s2, p) == NULL)
    printf ("NO\n");
  else
    printf ("YES\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:10: warning: missing terminating " character
    5 |   scanf ("%s, s);
      |          ^
main.c:5:10: error: missing terminating " character
    5 |   scanf ("%s, s);
      |          ^~~~~~~~
main.c:6:10: warning: missing terminating " character
    6 |   scanf ("%s, p);
      |          ^
main.c:6:10: error: missing terminating " character
    6 |   scanf ("%s, p);
      |          ^~~~~~~~
main.c:7:17: error: expected ')' before ';' token
    7 |   strcat (s2, s);
      |                 ^
      |                 )
main.c:6:9: note: to match this '('
    6 |   scanf ("%s, p);
      |         ^
main.c:13:12: error: expected ')' before '}' token
   13 |   return 0;
      |            ^
      |            )
   14 | }
      | ~           
main.c:5:9: note: to match this '('
    5 |   scanf ("%s, s);
      |         ^
main.c:6:3: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 |   scanf ("%s, p);
      |   ^~~~~~~~~~~~~~~
      |   |
      |   int
    7 |   strcat (s2, s);
      |   ~~~~~~~~~~~~~~~
    8 |   strcat (s2, s);
      |   ~~~~~~~~~~~~~~~
    9 |   if ( strstr(s2, p) == NULL)
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   10 |     printf ("NO\n");
      |     ~~~~~~~~~~~~~~~~
   11 |   else
      |   ~~~~
   12 |     printf ("YES\n");
      |     ~~~~~~~~~~~~~~~~~
   13 |   return 0;
      |   ~~~~~~~~~
   14 | }
      | ~  
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:13:12: error: expected ';' before '}' token
   13 |   return 0;
      |            ^
      |            ;
   14 | }
      | ~