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

#include<stdio.h>
#include<string.h>
int main (){
  char s[100], p[100], s2[200];
  scanf ("%s, s);
  scanf ("%s, p);
  strcat (s2, s);
  strcat (s2, s);
  if ( strstr(s2, p) == '\0')
    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) == '\0')
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   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 | }
      | ~
Language: C

#include<stdio.h>
#include<string.h>
int main (){
  char s[100], p[100], s2[201];
  scanf ("%s, s);
  scanf ("%s, p);
  strcat (s2, s);
  strcat (s2, s);
  if ( strstr(s2, p) == '\0')
    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) == '\0')
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   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 | }
      | ~
Language: C

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

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

  gets(str_s);
  gets(str_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:10:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 |   gets(str_s);
      |   ^~~~
      |   fgets
main.c:15:3: error: too few arguments to function 'strcpy'
   15 |   strcpy(str_s2);
      |   ^~~~~~
In file included from main.c:2:
/usr/include/string.h:141:14: note: declared here
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |              ^~~~~~
main.c:18:13: error: expected ';' before 'i'
   18 |   for (i = 0 i < s_len; i++) {
      |             ^~
      |             ;
main.c:18:28: error: expected ';' before ')' token
   18 |   for (i = 0 i < s_len; i++) {
      |                            ^
      |                            ;
main.c:20:15: error: expected ';' before 'j'
   20 |     for (j = 0 j < p_len; j++) {
      |               ^~
      |               ;
main.c:20:30: error: expected ';' before ')' token
   20 |     for (j = 0 j < p_len; j++) {
      |                              ^
      |                              ;
Language: C

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

int main()
{
    int i,j,lens,lenp;
    char s[100],p[100];

    scanf("%s",s);
    scanf("%s",p);
    lens = strlen(s);
    lenp = strlen(p);

    for(;;) {
      for(j = 0; j < lenj; j++) {
        if (s[i] != p[j]) {
          break;
        }
      }
    }
    
    if(j == lenj) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:22: error: 'lenj' undeclared (first use in this function); did you mean 'lenp'?
   15 |       for(j = 0; j < lenj; j++) {
      |                      ^~~~
      |                      lenp
main.c:15:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main() {
	char a[100], b[100], r[100];

	scanf("%s", a);
	scanf("%s", b);
	strcpy(r,a);
	strcat(r,s);

	if (strstr(r,b)) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:18: error: 's' undeclared (first use in this function)
   10 |         strcat(r,s);
      |                  ^
main.c:10:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){

	int s[100],  p[100];
	int i, j, k;
	
	scanf("%s\n", s);
	scanf("%s\n", p);

	int a = 0;
	i = j = k =0;

	for(i = 0; s[i] != '\0'; i++) { 
	if (s[i] == p[0]) {
		a = 1;
		j = 1;
		k =i + j;

		while(p[j] != '\0') { 
		 if(s[k] == '\0' && p[j] !='\0' ) {
			k = 0;
		}
		 if(s[k] == p[j]) { 
			j++;
			k++; 
		 }
		 else {
			a = 0;
			break;
		 }
		}
		if( a ) { 
		  berak;
		} 
	}
}

	printf("%sn", a ? "Yes" : "No");
	return 0;
	}

Compiler output:
main.c: In function 'main':
main.c:34:19: error: 'berak' undeclared (first use in this function)
   34 |                   berak;
      |                   ^~~~~
main.c:34:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
	char s[100],p[100],a[201];
	scanf("%s",s);
	scanf("%s",p);
	
	a[201]=s[100]+s[100];
	
	if(strstr(a,p))!='\0')
		printf("Yes\n");
	else
		printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:24: error: expected expression before '!=' token
   11 |         if(strstr(a,p))!='\0')
      |                        ^~
main.c:11:30: error: expected statement before ')' token
   11 |         if(strstr(a,p))!='\0')
      |                              ^
main.c:13:9: error: 'else' without a previous 'if'
   13 |         else
      |         ^~~~
Language: C

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

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

   scanf("%s", str1);
   scanf("%s", str2);

   sn = strlen(str1);
   tn = strlen(str2);

   for (i = 0 ; ;i++) {
     for (j = 0; j < tn; j++) {
       if (str1[i] != str2[j]) {
        break;
     }
   }

   if(tn == j-1)
     printf("Yes\n");
   else
     printf("No\n");
????????????
   return 0;
}
   

Compiler output:
main.c: In function 'main':
main.c:8:16: error: 'str1' undeclared (first use in this function)
    8 |    scanf("%s", str1);
      |                ^~~~
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:16: error: 'str2' undeclared (first use in this function)
    9 |    scanf("%s", str2);
      |                ^~~~
main.c:25:1: error: expected expression before '?' token
   25 | ????????????
      | ^
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include<stdio.h>

int main(int argc, char** argv)
{

	int s[100],  p[100];
	int i, j, k;
	
	scanf("%s\n", s);
	scanf("%s\n", p);

	int a = 0;
	i = j = k =0;

	for(i = 0; s[i] != '\0'; i++) { 
	if (s[i] == p[0]) {
		a = 1;
		j = 1;
		k =i + j;

		while(p[j] != '\0') { 
		 if(s[k] == '\0' && p[j] !='\0' ) {
			k = 0;
		}
		 if(s[k] == p[j]) { 
			j++;
			k++; 
		 }
		 else {
			a = 0;
			break;
		 }
		}
		if( a ) { 
		  berak;
		} 
	}
}

	printf("%s\n", a ? "Yes" : "No");
	return 0;
	}

Compiler output:
main.c: In function 'main':
main.c:35:19: error: 'berak' undeclared (first use in this function)
   35 |                   berak;
      |                   ^~~~~
main.c:35:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

   sn = strlen(s);
   tn = strlen(t);

   for (i = 0 ; ;i++) {
     for (j = 0; j < tn; j++) {
       if (s[i] != t[j]) {
         break;
       }
     }
   }

   if(tn == j-1) {
     printf("Yes\n");
   }  else {
       printf("No\n");
      }
????????????
   return 0;
}
   

Compiler output:
main.c: In function 'main':
main.c:27:1: error: expected expression before '?' token
   27 | ????????????
      | ^
Language: C

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

int main() {
   char s[100];
   char p[100];
   char t[100];

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

 strcpy(t,s);
 stract(t,s);

  if(strstr(t,p))
    printf("Yes\n");
  else
    printf("No\n");

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:2: error: implicit declaration of function 'stract'; did you mean 'strcat'? [-Wimplicit-function-declaration]
   13 |  stract(t,s);
      |  ^~~~~~
      |  strcat
Language: C

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

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

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

   sn = strlen(s);
   tn = strlen(t);

   for (i = 0 ;i < tn;i++) {
     for (j = 0; ; j++) {
       if (t[i] == s[j]) {
         count++;
       }
       if (count == tn)
         break;
     }
   }

   if(tn == count) {
     printf("Yes\n");
   }  else {
       printf("No\n");
      }

   return 0;
}
   

Compiler output:
main.c: In function 'main':
main.c:17:10: error: 'count' undeclared (first use in this function)
   17 |          count++;
      |          ^~~~~
main.c:17:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main()
{

char lon[500], short[500], answer[500], yes, no;
int i, j, d[500], k = 0, a, b, c = 0;

gets(lon);
gets(short);

for (i = 0;i < 100; i++) {

if (short[0] = lon[i]) {
d[k] = i;
k++;
}
}

for (j = 0; j < k - 1; k++ ) {

b = 1;
a = d[k];
answer[0] = short[0];

do {

if (lon[a] = short[b]) 
answer[b] = short[b];

a++;
b++;

if (a >= 200)
a = 0;

} while (long[a])

if (answer[] = short[])
break;

}

yes = 'yes';
no = 'no';

if (answer[100] = short[100])
printf("%s\n",yes);

else
printf ("%s\n",no);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected identifier or '(' before 'short'
    5 | char lon[500], short[500], answer[500], yes, no;
      |                ^~~~~
main.c:8:1: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    8 | gets(lon);
      | ^~~~
      | fgets
main.c:9:6: error: expected expression before 'short'
    9 | gets(short);
      |      ^~~~~
main.c:13:5: error: expected expression before 'short'
   13 | if (short[0] = lon[i]) {
      |     ^~~~~
main.c:23:1: error: 'answer' undeclared (first use in this function)
   23 | answer[0] = short[0];
      | ^~~~~~
main.c:23:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:13: error: expected expression before 'short'
   23 | answer[0] = short[0];
      |             ^~~~~
main.c:27:14: error: expected expression before 'short'
   27 | if (lon[a] = short[b])
      |              ^~~~~
main.c:28:13: error: expected expression before 'short'
   28 | answer[b] = short[b];
      |             ^~~~~
main.c:36:10: error: expected expression before 'long'
   36 | } while (long[a])
      |          ^~~~
main.c:36:18: error: expected ';' before 'if'
   36 | } while (long[a])
      |                  ^
      |                  ;
   37 | 
   38 | if (answer[] = short[])
      | ~~                
main.c:43:1: error: 'yes' undeclared (first use in this function)
   43 | yes = 'yes';
      | ^~~
main.c:43:7: warning: multi-character character constant [-Wmultichar]
   43 | yes = 'yes';
      |       ^~~~~
main.c:44:1: error: 'no' undeclared (first use in this function)
   44 | no = 'no';
      | ^~
main.c:44:6: warning: multi-character character constant [-Wmultichar]
   44 | no = 'no';
      |      ^~~~
main.c:46:19: error: expected expression before 'short'
   46 | if (answer[100] = short[100])
      |                   ^~~~~
Language: C

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

Compiler output:
main.c:20:4: error: expected identifier or '(' before 'return'
   20 |    return 0;
      |    ^~~~~~
main.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^
Language: C

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

int main()
{
    char s[101], p[101], s2[101], *ret;
    int maxs = 100, i;

    scanf("%s", s);
    scanf("%s", p);
    while(s[i]){
        if(s[i+1] != NULL){
            s2[i] = s[i];
            i++;
        }else{
            s2[i] = NULL
            break;
        }
        
    strcat(s,s2);

    ret = strstr(s, p);
    if(ret != NULL){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:19: warning: comparison between pointer and integer
   12 |         if(s[i+1] != NULL){
      |                   ^~
main.c:16:19: error: assignment to 'char' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
   16 |             s2[i] = NULL
      |                   ^
main.c:17:13: error: expected ';' before 'break'
   17 |             break;
      |             ^~~~~
main.c:30:1: error: expected declaration or statement at end of input
   30 | }
      | ^
Language: C

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

int main()
{
    char s[101], p[101], s2[101], *ret;
    int maxs = 100, i;

    scanf("%s", s);
    scanf("%s", p);
    while(s[i]){
        if(s[i+1] != NULL){
            s2[i] = s[i];
            i++;
        }else{
            s2[i] = NULL;
            break;
        }
        
    strcat(s,s2);

    ret = strstr(s, p);
    if(ret != NULL){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:19: warning: comparison between pointer and integer
   12 |         if(s[i+1] != NULL){
      |                   ^~
main.c:16:19: error: assignment to 'char' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
   16 |             s2[i] = NULL;
      |                   ^
main.c:30:1: error: expected declaration or statement at end of input
   30 | }
      | ^
Language: C

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

int main(void){
	int i=0, j=0;
	int cnt=0;
	int s_len=0, p_len=0;
	char s[100], p[100];
	
	scanf("%s", s);
	scanf("%s", p);
	
	while(s[i] != '\0'){
		s_len++;
		i++;
	}
	i=0;
	while(p[i] != '\0'){
		p_len++;
		i++
	}
	
	for(i = 0; i < s_len+1; i++){
		for(j = 0; j < p_len+1; j++){
			if (s[(i+j)%s_len] != p[j])
			   break;
			else
			   cnt++;
			   if(cnt == p_len){
			   	printf("Yes\n");
			   	return 0;
			   }
		}
		cnt = 0;
	}
	printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:20: error: expected ';' before '}' token
   20 |                 i++
      |                    ^
      |                    ;
   21 |         }
      |         ~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <srting.h>


int main(){
 char s[100] = {0}, p[100] = {0};
 char *ret;

scanf("%s\n %s", &s[], &p[]);

scp = s[];
chk = p[];
     
s2[] = scp + scp;


    if((ret = strstr(s2, chk))!= NULL){
       printf("Yes\n");

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

    }

return 0;

}

Compiler output:
main.c:3:10: fatal error: srting.h: No such file or directory
    3 | #include <srting.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
#include <string.h>
??
??
void ring(char s[],char p[]){
??int i;
??int j = 0;
??int m = strlen(s);
??int n = strlen(p);
??
??while(j < n-1 || i != m - 1){
????for(i = 0;i < m-1; i++){
??????if(p[j] == s[i])
????????j++;
??????else
????????j = 0;
??
??????if(j == n-1) break;
??????}
????}
??
??if(j == n-1)
????printf("Yes\n");
??else
????printf("No\n");
??
??
}
??
int main(){
??
??char s[200];
??char p[200];
??char ss[400];
??
??scanf("%s\n%s",s,p);
??
??strcat(ss,s);
??strcat(ss,s);
??
??ring(ss,p);
??
??return 0;
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ??
      | ^
main.c:29:1: error: expected identifier or '(' before '?' token
   29 | ??
      | ^
Language: C

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

void ring(char s[],char p[]){
 int i;
 int j = 0;
 int m = strlen(s);
 int n = strlen(p);

  while(j < n-1 || i != m - 1){
   for(i = 0;i < m-1; i++){
    if(p[j] == s[i])
     j++;
    else
     j = 0;
  
    if(j == n-1) break;
    }
   }
 
  if(j == n-1)
   printf("Yes\n");
  else
   printf("No\n");


}
  
int main(){
 
  char s[200];
  char p[200];
  char ss[400];

 scanf("%s\n%s",s,p);
 
 strcat(ss,s);
 strcat(ss,s);

 ring(ss,p);

 reeturn 0;
}

Compiler output:
main.c: In function 'main':
main.c:42:2: error: 'reeturn' undeclared (first use in this function)
   42 |  reeturn 0;
      |  ^~~~~~~
main.c:42:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:42:9: error: expected ';' before numeric constant
   42 |  reeturn 0;
      |         ^~
      |         ;
Language: C

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

int main(){

  char s[100], p[100];
  int i, j, k, zisuus, zisuup, hantei;
  
  
  scanf("%s", s);
  scanf("%s", p);
  
  zisuu = 0;
  while(s[zisuus]){
    zisuus++;
  }
  
  zisuup = 0;
  while(p[zisuup]){
    zisuup++;
  }
  
  for(i = 0; i < zisuus; i++){
/* i???s[]????§????????????? */
    hantei = 0;
    k = i;    
    for(j = 0; j < zisuus; j++){
/* s???????????°?????????????????? */
      if(s[k] == p[hantei]){
        hantei++;
        if(hantei == zisuup){ /*break????????£??????*/
          printf("Yes\n");
          i = i + zisuus;
          j = j + zisuus;
        }
      }
      k++;
      if( k == zisuus ){
        k = 0;
      }
    }
  }
  
  if(hantei != zisuus){
    printf("No\n");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'zisuu' undeclared (first use in this function); did you mean 'zisuup'?
   13 |   zisuu = 0;
      |   ^~~~~
      |   zisuup
main.c:13:3: 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 m, i, j;
 char x[201], y[101];
 scanf("%s %s", x, y);
 
 m = strlen(x);
 
 for(i=0;i<m;i++) x[i+m] = x[i];

 if(strstr(x, y) != NULL)
   printf("Yes\n");
 else
   pritf("No\n");


 return 0;

 }

Compiler output:
main.c: In function 'main':
main.c:18:4: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   18 |    pritf("No\n");
      |    ^~~~~
      |    printf
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
    int i=0;
    char s[101],p[101],s2[201];
     scanf("%s",s);
     scanf("%s",p);
     strcpy(s2,s);
     strcat(s2,s);
      if(strstr(s2,p)){
       printf("Yes\n");
    }
    else{
       printf("No\n");
}
 
    return 0;

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

#include<stdio.h>
#include<string.h>
int main(void)
{
    int i=0;
    char s[200],p[200],s2[400];
     scanf("%s",s);
     scanf("%s",p);
     strcpy(s2,s);
     strcat(s2,s);
      if(strstr(s2,p))
       printf("Yes\n");
    
    else
       printf("No\n");

 
    return 0;

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

#include<stdio.h>

int length (const char atr)
{
    int len = 0;

    while (s[len])
      len++;

   return len;
}

int main()
{

    char s[200], p[200];
    int hantei[200][200], i, j, n, m, answer = 0;

    scanf("%s", s);

    scanf("%s", p);

    n = length (s);
    m = length (p);

    for (i = 0; i < n; i++) {
      s[n + i] = s [i];
    }


     for (j = 0; j < m; j++) {
      for (i = 0; i < 2*n; i++) {
        if (s[j] == p[i]) hantei[j][i] = 1;
      }
    }


    for (i = 0; i < 2*n; i++) {
      if (hantei[0][i] == 1) {
        for (j = 0; j < m; j++) {
          if (hantei[j][i + j] == 1)
            answer++;
        }
        if (answer == m) break;
      }
    }

    if (answer == m) puts ("yes");
    else             puts ("no");

  return 0;
}

Compiler output:
main.c: In function 'length':
main.c:7:12: error: 's' undeclared (first use in this function)
    7 |     while (s[len])
      |            ^
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'main':
main.c:23:17: error: passing argument 1 of 'length' makes integer from pointer without a cast [-Wint-conversion]
   23 |     n = length (s);
      |                 ^
      |                 |
      |                 char *
main.c:3:24: note: expected 'char' but argument is of type 'char *'
    3 | int length (const char atr)
      |             ~~~~~~~~~~~^~~
main.c:24:17: error: passing argument 1 of 'length' makes integer from pointer without a cast [-Wint-conversion]
   24 |     m = length (p);
      |                 ^
      |                 |
      |                 char *
main.c:3:24: note: expected 'char' but argument is of type 'char *'
    3 | int length (const char atr)
      |             ~~~~~~~~~~~^~~
Language: C

#include<stdio.h>

int length (const char str)
{
    int len = 0;

    while (str[len])
      len++;

   return len;
}

int main()
{

    char s[200], p[200];
    int hantei[200][200], i, j, n, m, answer = 0;

    scanf("%s", s);

    scanf("%s", p);

    n = length (s);
    m = length (p);

    for (i = 0; i < n; i++) {
      s[n + i] = s [i];
    }


     for (j = 0; j < m; j++) {
      for (i = 0; i < 2*n; i++) {
        if (s[j] == p[i]) hantei[j][i] = 1;
      }
    }


    for (i = 0; i < 2*n; i++) {
      if (hantei[0][i] == 1) {
        for (j = 0; j < m; j++) {
          if (hantei[j][i + j] == 1)
            answer++;
        }
        if (answer == m) break;
      }
    }

    if (answer == m) puts ("yes");
    else             puts ("no");

  return 0;
}

Compiler output:
main.c: In function 'length':
main.c:7:15: error: subscripted value is neither array nor pointer nor vector
    7 |     while (str[len])
      |               ^
main.c: In function 'main':
main.c:23:17: error: passing argument 1 of 'length' makes integer from pointer without a cast [-Wint-conversion]
   23 |     n = length (s);
      |                 ^
      |                 |
      |                 char *
main.c:3:24: note: expected 'char' but argument is of type 'char *'
    3 | int length (const char str)
      |             ~~~~~~~~~~~^~~
main.c:24:17: error: passing argument 1 of 'length' makes integer from pointer without a cast [-Wint-conversion]
   24 |     m = length (p);
      |                 ^
      |                 |
      |                 char *
main.c:3:24: note: expected 'char' but argument is of type 'char *'
    3 | int length (const char str)
      |             ~~~~~~~~~~~^~~
Language: C

vanceknowledgetoad
advanced

Compiler output:
main.c:1:1: error: unknown type name 'vanceknowledgetoad'
    1 | vanceknowledgetoad
      | ^~~~~~~~~~~~~~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
    2 | advanced
      | ^~~~~~~~
Language: C

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

int main(){
	char s1[100];   //  ????±??????????
	char s2[100];   //  ????´¢?????????
	char s3[100];   //s1 ????????\????????????????????????
	int len;        
	int flag=0;    // Yes ??? No ????????????  0 or 1
	char tmp;     
	int i;
	char *p;      // strstr??¢??°?????????
	
	scanf("%s",s1);
	strcpy(s3,s1);
	len=strlen(s3);
	scanf("%s",s2);
	
	while(1){       //  ????????????????????°??¶????????¢
		tmp=s3[0];
		for(i=1;i<len;i++){
			s3[i-1]=s3[i];
		}
		s3[len-1]=tmp;
		if((p=strstr(s3,s2))!=NULL){    ??????//strstr??¢??°??¨??????
			flag=1;                     //?????????s3??????????????????s2??????????????????????????£??????
			break;                      //NULL??????????????????????????§???
		}
		else if(strcmp(s1,s3)==0){
			break;
		}
	}
	
	if(flag==1){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:49: error: expected expression before '?' token
   25 |                 if((p=strstr(s3,s2))!=NULL){    ??????//strstr??¢??°??¨??????
      |                                                 ^
main.c:25:53: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   25 |                 if((p=strstr(s3,s2))!=NULL){    ??????//strstr??¢??°??¨??????
Language: C


      #include <stdio.h>
int main(){

  int i=0,j=0,x=0;
  char ch,p[101]={},s[101]={};

  //input p
  while(1){

    scanf("%c",&ch);

    if(ch != '\n'){

      p[i]=ch;

      i++;

    } else {

      break;

    }

  }

  i=0;

  //input s
  while(1){

    scanf("%c",&ch);
    
    if(ch != '\n'){

      s[i]=ch;

      i++;

    } else {

      break;

    }

  }

  i=0;
  
  //search
  while(1){

    if(s[j] != '\0'){
      
      if(p[i] != '\0'){
	
	if(p[i] == s[j]){
	  
	  i++;
	  j++;
	  
	} else {

	  if(i == 0 && j != 0){

	    printf("No\n");

	    break;

	  } else {

	  x++;
	  i=x;
	  j=0;

	  }
	  
	}	
	
      } else {

	  i=0;

	}

      }
      
    } else {

      printf("Yes\n");

      break;

    }

  }

  return 0;
  
}
      

Compiler output:
main.c: In function 'main':
main.c:88:7: error: 'else' without a previous 'if'
   88 |     } else {
      |       ^~~~
main.c:92:7: error: break statement not within loop or switch
   92 |       break;
      |       ^~~~~
main.c: At top level:
main.c:98:3: error: expected identifier or '(' before 'return'
   98 |   return 0;
      |   ^~~~~~
main.c:100:1: error: expected identifier or '(' before '}' token
  100 | }
      | ^
Language: C


#include <stdio.h>
int main(){
 
  int i=0,j=0,x=0;
  char ch,p[101]={},s[101]={};
 
  //input p
  while(1){
 
    scanf("%c",&ch);
 
    if(ch != '\n'){
 
      p[i]=ch;
 
      i++;
 
    } else {
 
      break;
 
    }
 
  }
 
  i=0;
 
  //input s
  while(1){
 
    scanf("%c",&ch);
     
    if(ch != '\n'){
 
      s[i]=ch;
 
      i++;
 
    } else {
 
      break;
 
    }
 
  }
 
  i=0;
   
  //search
  while(1){
 
    if(s[j] != '\0'){
       
      if(p[i] != '\0'){
     
    if(p[i] == s[j]){
       
      i++;
      j++;
       
    } else {
 
      x++;
      i=x;
      j=0;
 
      }
       
    }   
     
      } else {
 
    if(j != 0){
 
      i=0;
 
    } else {
 
      printf("No\n");
 
      break;
 
    }
 
      }
       
    } else {
 
      printf("Yes\n");
 
      break;
 
    }
 
  }
 
  return 0;
   
}
       
 
      
      

Compiler output:
main.c: In function 'main':
main.c:88:7: error: 'else' without a previous 'if'
   88 |     } else {
      |       ^~~~
main.c:92:7: error: break statement not within loop or switch
   92 |       break;
      |       ^~~~~
main.c: At top level:
main.c:98:3: error: expected identifier or '(' before 'return'
   98 |   return 0;
      |   ^~~~~~
main.c:100:1: error: expected identifier or '(' before '}' token
  100 | }
      | ^
Language: C

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

int main(){
  char ring[101],ch[101];
  int i,j=1000,n,m;
  scanf(" %s",ring);
  scanf(" %s",ch);
  n=strlen(ring);
  m=strlen(ring);
  for(i=0;i<n;i++){
      if(ch[0]==ring[i]){
          for(j=1;j<m;j++){
             if(!(ch[j]==ring[i+j])) break;
             if(j==m-1){
                 printf("Yes\n");
                 break;}
             } 
           }
       if(j==m-1) break;}
     if(!(j==m-1)) printf("No\n");
  return 0:}

Compiler output:
main.c: In function 'main':
main.c:22:11: error: expected ';' before ':' token
   22 |   return 0:}
      |           ^
      |           ;
Language: C

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

int main(){
  char ring[101],ch[101];
  int i,j,n,m,X,N=0;
  scanf(" %s",ring);
  scanf(" %s",ch);
  n=strlen(ring);
  m=strlen(ch);
  for(i=0;i<n;i++){
      if(ch[0]==ring[i]){
          for(j=1;j<m;j++){
             X=i+j;
             if(X>=n) X=X-n;
             if(!(ch[j]==ring[X])) break;
             if(j==m-1){
                 printf("Yes\n");
                 N=1
                 break;}
             } 
           }
       if(j==m-1) break;}
  if(N==0) printf("No\n");
  return 0;}

Compiler output:
main.c: In function 'main':
main.c:19:21: error: expected ';' before 'break'
   19 |                  N=1
      |                     ^
      |                     ;
   20 |                  break;}
      |                  ~~~~~
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("Yes\n");
    }
    else
    {
        printr("No\n");
    }
    return 0;
}

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

#include<stdio.h>
int main(void){
    int x=0,l=0,i=0,k=0,j=0,w=1,f=0;
    char s[200]={0},p[100]={0};
    while(scanf("%c",&s[x])!=EOF){
            s[w+x]=s[x];
            w++;

        x++;
        f++;
    }

    while(scanf("%c",&p[i])!=EOF){
        i++;
        l++;
    }
    for(x=0;x<l*2;x++){
        if(s[x]==p[i]){
            for(k=0;k<l*2;k++){
                if(s[x+k]==p[i+k]){
                    j++;
                }
            }
        }
    }
    if(j==l){
        printf("Yes\n");
    }else if(j<l){
        printf("No\n");
    }

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

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

int main()
{
 char a;
 char b;
 scanf("%s",&a);
 scanf("%s",&b);
  if(strstr(p,s)){
        printf("Yes\n");
    }
    else{
        printf("No\n");
    }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:6: error: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
   10 |   if(strstr(p,s)){
      |      ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strstr'
    2 | #include <ctype.h>
  +++ |+#include <string.h>
    3 | 
main.c:10:6: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch]
   10 |   if(strstr(p,s)){
      |      ^~~~~~
main.c:10:6: note: include '<string.h>' or provide a declaration of 'strstr'
main.c:10:13: error: 'p' undeclared (first use in this function)
   10 |   if(strstr(p,s)){
      |             ^
main.c:10:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:15: error: 's' undeclared (first use in this function)
   10 |   if(strstr(p,s)){
      |               ^
Language: C

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

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:8:10: error: 'p2' undeclared (first use in this function); did you mean 'p'?
    8 |   strcpy(p2,p);
      |          ^~
      |          p
main.c:8:10: 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;
        char *p;
        scanf("%s",s);
        scanf("%s",p);
        if(strstr(s,p) != NULL){
                printf("YES\n");
        }else{
                printf("NO\n");
        }
        return 0;
}
~       

Compiler output:
main.c:16:1: error: expected identifier or '(' before '~' token
   16 | ~
      | ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
        char s[200];
        char p[100];
        int i;
        scanf("%s",s);
        scanf("%s",p);
        for(i = strlen(s);i <= 2*strlen(s);i++){
                s[i]=s[i-strlen(s)];
        }
        if(strstr(s,p) != NULL){
                printf("YES\n");
        }else{
                printf("NO\n");
        }
        return 0;
}
~         

Compiler output:
main.c:20:1: error: expected identifier or '(' before '~' token
   20 | ~
      | ^
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//????????????
void lntrim(char *tmp) {  
int i;
for(i=0;i<strlen(tmp);i++){
	if(tmp[i]=='\n'){
		tmp[i]=='\0'
		break;
	}
}

}  
int main(void) {
	char words[102]={};
	char ring[204]={};
	//????????°??????????????\???
	fgets(words, sizeof(words), stdin);	
	//??????????????????????????????????????§??????
	lntrim(words);
	//?????????????????????
	strcpy(ring,words);
	strcat(ring,words);
	
	char search[101]={};
	//????´¢??????????????\???
	fgets(search, sizeof(search), stdin);
	//????´¢????????????????????????
	lntrim(search);
	//????´¢
	printf(strstr(ring,search)!=NULL ? "Yes\n" : "No\n");
	
	return 0;
}

Compiler output:
main.c: In function 'lntrim':
main.c:9:29: error: expected ';' before 'break'
    9 |                 tmp[i]=='\0'
      |                             ^
      |                             ;
   10 |                 break;
      |                 ~~~~~
Language: C

#include <stdio.h>
#include <ctype.h>
#include "stdafx.h"
int main(){
    char s[101],sp[101];
	char ch ;
	int cnt,i,q,len,len2;
	int point[100]={0};
	gets(s);
	gets(sp);
	cnt=0;
	len=strlen(s)-1;
	len2=strlen(sp)-1;
	for(q=0;q<len2;q++){
	for(i=0;i<len;i++)
	{
		if(i+q > len){ch = s[i+q-len];}
		else         {ch = s[i+q]    ;}
		if(ch == sp[q])
		{
			point[i]+=1;
			if(point[i]==len2){cnt = 1;}
		}
	}
	}
	if(cnt==1){printf("Yes");}
	else{printf("No");}
	return 0;
}

Compiler output:
main.c:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<string.h>
using namespace std;
int main(void){
	char cha1[1000], cha2[1000], a[1000];
	gets_s(cha1);
	gets_s(a);
	strcpy_s(cha2, cha1);
	strcat_s(cha1, cha2);
	if (strstr(cha1, a) != NULL){
		printf("Yes%n");
	}
	else{
		printf("No%n");
	}

	return 0;
}

Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
    6 |         gets_s(cha1);
      |         ^~~~~~
main.c:8:9: error: implicit declaration of function 'strcpy_s'; did you mean 'strcpy'? [-Wimplicit-function-declaration]
    8 |         strcpy_s(cha2, cha1);
      |         ^~~~~~~~
      |         strcpy
main.c:9:9: error: implicit declaration of function 'strcat_s'; did you mean 'strcat'? [-Wimplicit-function-declaration]
    9 |         strcat_s(cha1, cha2);
      |         ^~~~~~~~
      |         strcat
Language: C

#include<stdio.h>
#include<string.h>
using namespace std;
int main(void){
	char cha1[1000], cha2[1000], a[1000];
	gets_s(cha1);
	gets_s(a);
	strcpy_s(cha2, cha1);
	strcat_s(cha1, cha2);
	if (strstr(cha1, a) != NULL){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}

	return 0;
}

Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
    6 |         gets_s(cha1);
      |         ^~~~~~
main.c:8:9: error: implicit declaration of function 'strcpy_s'; did you mean 'strcpy'? [-Wimplicit-function-declaration]
    8 |         strcpy_s(cha2, cha1);
      |         ^~~~~~~~
      |         strcpy
main.c:9:9: error: implicit declaration of function 'strcat_s'; did you mean 'strcat'? [-Wimplicit-function-declaration]
    9 |         strcat_s(cha1, cha2);
      |         ^~~~~~~~
      |         strcat
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
	char cha1[1000], cha2[1000], a[1000];
	gets_s(cha1);
	gets_s(a);
	strcpy_s(cha2, cha1);
	strcat_s(cha1, cha2);
	if (strstr(cha1, a) != NULL){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
    5 |         gets_s(cha1);
      |         ^~~~~~
main.c:7:9: error: implicit declaration of function 'strcpy_s'; did you mean 'strcpy'? [-Wimplicit-function-declaration]
    7 |         strcpy_s(cha2, cha1);
      |         ^~~~~~~~
      |         strcpy
main.c:8:9: error: implicit declaration of function 'strcat_s'; did you mean 'strcat'? [-Wimplicit-function-declaration]
    8 |         strcat_s(cha1, cha2);
      |         ^~~~~~~~
      |         strcat
Language: C

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

int main()
{
	char s[1201];
	int i = 0, n[1201], m[1201];

	while (scanf_s("%s", &s) != EOF){
		if (isupper(s[i]) != 0){
			n[i] = s[i] - 'A';
			printf("%d\n", n[i]);
		}
		else if (islower(s[i]) != 0){
			m[i] = s[i] - 'a';
			printf("%d\n", m[i]);
		}
		i++;

	}
	

	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:9:16: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |         while (scanf_s("%s", &s) != EOF){
      |                ^~~~~~~
      |                scanf
Language: C

#include <stdio.h>
#include <string.h>
main(){
    char s[201],p[101];
    gets(s,p);
    sprintf(s,"%s%s",s,s);
    printf("%s\n",strstr(s,p)==NULL?"No":"Yes");
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    5 |     gets(s,p);
      |     ^~~~
      |     fgets
Language: C

#include <stdio.h>
#include <string.h>
main(){
    char s[201],p[101];
    gets(s);
    gets(p);
    sprintf(s,"%s%s",s,s);
    printf("%s\n",strstr(s,p)==NULL?"No":"Yes");
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    5 |     gets(s);
      |     ^~~~
      |     fgets
Language: C

#include<stdio.h>

unsigned short s_scan_sentence(unsigned char * str, unsigned short length_max);
unsigned short s_sarch_text(unsigned char * ring, unsigned short r_length, unsigned char * look, unsigned short l_length);

int main(){
	unsigned char ring_text[100];
	unsigned char look_text[100];
	unsigned short ring_length;
	unsigned short look_length;
	unsigned short frg = 0;
	
	for(i = 0;i < 100;i++){
		ring_text[i] = 0;
		look_text[i] = 0;
	}
	
	ring_length = s_scan_sentence(ring_text, 100);
	look_lengtn = s_scan_sentence(look_text, 100);
	
	frg = sarch_text(ring_text, ring_length, look_text, look_length);
	
	if(frg == 0){
		printf("No\n");
	}
	else if(frg == 1){
		printf("Yes\n");
	}
	
	return 0;
}


/* 関数名：文字列入力 */
/* 概要：文字列を入力する。その長さを返す */
/* 引数：文字列を格納する配列の先頭アドレス、その配列の大きさ */
/* 戻り値：入力された文字列の長さ */
unsigned short s_scan_sentence(unsigned char * str, unsigned short length_max)
{
	unsigned short usW_C_count_text = COUNT_RESET;  	/* 文字列長カウンタ */
	unsigned short usW_C_i;                         	/* ループ変数 */

	/* 文字列の入力 */
	for(usW_C_i = LOOP_RESET;usW_C_i < length_max;usW_C_i++){
		scanf("%c", str + usW_C_i);
		/* 入力終了の処理 */
		if(*(str + usW_C_i) == '\n'){
			break;
		}
		/* 文字数をカウント */
		usW_C_count_text++;
	}

	/* 文字列長を返す */
	return usW_C_count_text;
}

unsigned short s_sarch_text(unsigned char * ring, unsigned short r_length, unsigned char * look, unsigned short l_length);
{
	unsigned char twi_ring[100 * 2];
	unsigned short frg = 0;
	unsigned short i, j;
	
	for(i = 0;i < 200;i++){
		twi_ring[i] = 0;
	}
	
	for(i = 0;i < r_length;i++){
		twi_ring[i] = *(ring + i);
	}
	for(i = 0;i < l_length;i++){
		twi_ring[r_length + i] = *(ring + i);
	}
	
	for(i = 0;i < r_length;i++){
		for(j = 0;j < l_length;j++){
			if(*(look + j) == '\n'){
				frg = 1;
			}
		}
	}
	
	return frg;
}



Compiler output:
main.c: In function 'main':
main.c:13:13: error: 'i' undeclared (first use in this function)
   13 |         for(i = 0;i < 100;i++){
      |             ^
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:9: error: 'look_lengtn' undeclared (first use in this function); did you mean 'look_length'?
   19 |         look_lengtn = s_scan_sentence(look_text, 100);
      |         ^~~~~~~~~~~
      |         look_length
main.c:21:15: error: implicit declaration of function 'sarch_text'; did you mean 's_sarch_text'? [-Wimplicit-function-declaration]
   21 |         frg = sarch_text(ring_text, ring_length, look_text, look_length);
      |               ^~~~~~~~~~
      |               s_sarch_text
main.c: In function 's_scan_sentence':
main.c:40:43: error: 'COUNT_RESET' undeclared (first use in this function)
   40 |         unsigned short usW_C_count_text = COUNT_RESET;          /* 文字列長カウンタ */
      |                                           ^~~~~~~~~~~
main.c:44:23: error: 'LOOP_RESET' undeclared (first use in this function)
   44 |         for(usW_C_i = LOOP_RESET;usW_C_i < length_max;usW_C_i++){
      |                       ^~~~~~~~~~
main.c: At top level:
main.c:59:1: error: expected identifier or '(' before '{' token
   59 | {
      | ^
Language: C

#include <stdio.h>
#include <string.h>
int main(int argc, const char * argv[]) {
    char s1[100], s2[100], p[100];
     scanf("%s", s1);
      scanf("%s", p);
     strcpy(s2 ,s1);
      strcat(s1, s2);
     
      if(strstr(s1, p)!=NULL) printf("Yes\n");
      else printf("No\n");
     
     return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:5: error: stray '\302' in program
    5 |     <U+00A0>scanf("%s", s1);
      |     ^~~~~~~~
main.c:6:5: error: stray '\302' in program
    6 |     <U+00A0><U+00A0>scanf("%s", p);
      |     ^~~~~~~~
main.c:6:6: error: stray '\302' in program
    6 |     <U+00A0><U+00A0>scanf("%s", p);
      |             ^~~~~~~~
main.c:7:5: error: stray '\302' in program
    7 |     <U+00A0>strcpy(s2 ,s1);
      |     ^~~~~~~~
main.c:8:5: error: stray '\302' in program
    8 |     <U+00A0><U+00A0>strcat(s1, s2);
      |     ^~~~~~~~
main.c:8:6: error: stray '\302' in program
    8 |     <U+00A0><U+00A0>strcat(s1, s2);
      |             ^~~~~~~~
main.c:9:5: error: stray '\302' in program
    9 |     <U+00A0>
      |     ^~~~~~~~
main.c:10:5: error: stray '\302' in program
   10 |     <U+00A0><U+00A0>if(strstr(s1, p)!=NULL) printf("Yes\n");
      |     ^~~~~~~~
main.c:10:6: error: stray '\302' in program
   10 |     <U+00A0><U+00A0>if(strstr(s1, p)!=NULL) printf("Yes\n");
      |             ^~~~~~~~
main.c:11:5: error: stray '\302' in program
   11 |     <U+00A0><U+00A0>else printf("No\n");
      |     ^~~~~~~~
main.c:11:6: error: stray '\302' in program
   11 |     <U+00A0><U+00A0>else printf("No\n");
      |             ^~~~~~~~
main.c:12:5: error: stray '\302' in program
   12 |     <U+00A0>
      |     ^~~~~~~~
main.c:13:5: error: stray '\302' in program
   13 |     <U+00A0>return 0;
      |     ^~~~~~~~
Language: C

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

int main()
{
        char input[200] = """;
        char target[200];

        scanf("%s", input);
        scanf("%s", target);
        strcat(input, input);

        if (strstr(input, target) != NULL ) {
                printf("Yes\n");
        } else {
                printf("No\n");
        }
}


Compiler output:
main.c: In function 'main':
main.c:6:29: warning: missing terminating " character
    6 |         char input[200] = """;
      |                             ^
main.c:6:29: error: missing terminating " character
    6 |         char input[200] = """;
      |                             ^~
main.c:7:9: error: expected ',' or ';' before 'char'
    7 |         char target[200];
      |         ^~~~
main.c:10:21: error: 'target' undeclared (first use in this function)
   10 |         scanf("%s", target);
      |                     ^~~~~~
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
    int i,len;
    char s[4096]、p[4096],s2[4096];
    scanf("%s",s);
    scanf("%s",p);
    sprintf(s2,"%s%s",s,s);
    printf("%s\n",s2);
    puts(strstr(s,p)==NULL?"No":"Yes");
    //len = strlen(s);
    //for(i=0;i<len;i++){
    //ans+=s[i]-'0'
    //}
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:17: error: stray '\343' in program
    6 |     char s[4096]<U+3001>p[4096],s2[4096];
      |                 ^~~~~~~~
main.c:6:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'p'
    6 |     char s[4096]、p[4096],s2[4096];
      |                   ^
main.c:6:19: error: 'p' undeclared (first use in this function)
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:27: error: 's2' undeclared (first use in this function)
    6 |     char s[4096]、p[4096],s2[4096];
      |                           ^~
main.c:7:16: error: 's' undeclared (first use in this function)
    7 |     scanf("%s",s);
      |                ^