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

#include<cstdio>
#include<cctype>
#include<iostream>
#include<cstring>
using namespace std;
int main(){
    int a=0;
    int b=0;
    int c=0;
    string s,t,ss;
    cin>>s>>t;
    ss=s+s;
    if(strstr(ss,t)=="NULL") cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: no matching function for call to 'strstr(std::string&, std::string&)'
   13 |     if(strstr(ss,t)=="NULL") cout<<"Yes"<<endl;
      |        ~~~~~~^~~~~~
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:4:
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)'
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:28: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |                      ~~~~~~^~~~~~~~~~
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)'
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:40: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                            ~~~~~~~~~~~~^~~~~~~~~~
Language: C++

#include<cstdio>
#include<cctype>
#include<iostream>
#include<cstring>
using namespace std;
int main(){
    int a=0;
    int b=0;
    int c=0;
    string s,t,ss,ap;
    cin>>s>>t;
    ss=s+s;
    ap=strstr(ss,t)=
    if(ap=="NULL") cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: no matching function for call to 'strstr(std::string&, std::string&)'
   13 |     ap=strstr(ss,t)=
      |        ~~~~~~^~~~~~
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:4:
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)'
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:28: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |                      ~~~~~~^~~~~~~~~~
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)'
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:40: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                            ~~~~~~~~~~~~^~~~~~~~~~
a.cc:14:5: error: expected primary-expression before 'if'
   14 |     if(ap=="NULL") cout<<"Yes"<<endl;
      |     ^~
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else cout<<"No"<<endl;
      |     ^~~~
Language: C++

#include<cstdio>
#include<cctype>
#include<iostream>
#include<cstring>
using namespace std;
int main(){
    int a=0;
    int b=0;
    int c=0;
    string s,t,ss,ap;
    cin>>s>>t;
    ss=s+s;
    ap=strstr(ss,t)
    if(ap=="NULL") cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: no matching function for call to 'strstr(std::string&, std::string&)'
   13 |     ap=strstr(ss,t)
      |        ~~~~~~^~~~~~
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:4:
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)'
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:28: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |                      ~~~~~~^~~~~~~~~~
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)'
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:40: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                            ~~~~~~~~~~~~^~~~~~~~~~
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else cout<<"No"<<endl;
      |     ^~~~
Language: C++

#include<cstdio>
#include<cctype>
#include<iostream>
#include<cstring>
using namespace std;
int main(){
    int a=0;
    int b=0;
    int c=0;
    string s,t,ss;
    int ap;
    cin>>s>>t;
    ss=s+s;
    ap=ss.find(t)
    if(ap!=-1) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected ';' before 'if'
   14 |     ap=ss.find(t)
      |                  ^
      |                  ;
   15 |     if(ap!=-1) cout<<"Yes"<<endl;
      |     ~~            
a.cc:16:5: error: 'else' without a previous 'if'
   16 |     else cout<<"No"<<endl;
      |     ^~~~
Language: C++

#include<cstdio>
#include<cstring>
using namespace std;

int main(){
    char s1[100],s2[100];
    
    scanf("%s %s", s1, s2);
    char s3[200]==strcat(s1, s1);
    char s4[200]==strcat(s2, s2);
    
    if(strstr(s3,s4)==NULL) printf("No\n");
    else printf("Yes\n");
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected initializer before '==' token
    9 |     char s3[200]==strcat(s1, s1);
      |                 ^~
a.cc:10:17: error: expected initializer before '==' token
   10 |     char s4[200]==strcat(s2, s2);
      |                 ^~
a.cc:12:15: error: 's3' was not declared in this scope; did you mean 's2'?
   12 |     if(strstr(s3,s4)==NULL) printf("No\n");
      |               ^~
      |               s2
a.cc:12:18: error: 's4' was not declared in this scope; did you mean 's2'?
   12 |     if(strstr(s3,s4)==NULL) printf("No\n");
      |                  ^~
      |                  s2
Language: C++

#include<cstdio>
#include<cstring>
using namespace std;

int main(){
    char s1[100],s2[100];
    
    scanf("%s %s", s1, s2);
    char s3[200]=strcat(s1, s1);
    char s4[200]=strcat(s2, s2);
    
    if(strstr(s3,s4)==NULL) printf("No\n");
    else printf("Yes\n");
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: array must be initialized with a brace-enclosed initializer
    9 |     char s3[200]=strcat(s1, s1);
      |                  ~~~~~~^~~~~~~~
a.cc:10:24: error: array must be initialized with a brace-enclosed initializer
   10 |     char s4[200]=strcat(s2, s2);
      |                  ~~~~~~^~~~~~~~
Language: C++

#include<cstdio>
#include<cstring>
using namespace std;

int main(){
    char s1[1000],s2[1000];
    
    scanf("%s %s", s1, s2);
    
    strcpy(s3,s1);
    
    if(strstr(strcat(s1,s3),s2)==NULL) printf("No\n");
    else printf("Yes\n");
    
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 's3' was not declared in this scope; did you mean 's2'?
   10 |     strcpy(s3,s1);
      |            ^~
      |            s2
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
using namespace std;

int main(){
    char s[200];
    char p[100];
    char c[100];
   
    scanf("%S %s",s, p);
    strcpy(c, s);
    strcat(s, c);
    
    if(strstr(s, p) == NUll){
        printf("No\n");
    } else {
        printf("Yes\n");
    }
        
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'strcpy' was not declared in this scope
   12 |     strcpy(c, s);
      |     ^~~~~~
a.cc:4:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<cstdio>
  +++ |+#include <cstring>
    4 | using namespace std;
a.cc:13:5: error: 'strcat' was not declared in this scope
   13 |     strcat(s, c);
      |     ^~~~~~
a.cc:13:5: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:15:8: error: 'strstr' was not declared in this scope
   15 |     if(strstr(s, p) == NUll){
      |        ^~~~~~
a.cc:15:8: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:15:24: error: 'NUll' was not declared in this scope; did you mean 'NULL'?
   15 |     if(strstr(s, p) == NUll){
      |                        ^~~~
      |                        NULL
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
#include<cstring>
using namespace std;

int main(){
    char s[200];
    char p[100];
    char c[100];
   
    scanf("%S %s",s, p);
    strcpy(c, s);
    strcat(s, c);
    
    if(strstr(s, p) == NUll){
        printf("No\n");
    } else {
        printf("Yes\n");
    }
        
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: 'NUll' was not declared in this scope; did you mean 'NULL'?
   16 |     if(strstr(s, p) == NUll){
      |                        ^~~~
      |                        NULL
Language: C++

#include<iostream>
#include<cmath>
#include<string>
#include<cctype>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
        char s[100];
        char p[100];
        int chk=0;
        scanf("%s",s);
        scanf("%s",p);
        int st=strlen(s);
        int gl=strlen(p);
        for(int i=0;i<=s-p;i++){
                if(s[i]==p[chk]){
                        chk++;
                        if(chk==gl){
                                printf("YES\n");
                                exit(1);
                        }
                }else{
                        chk=0;
                }
        }
        printf("NO\n");
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 'strlen' was not declared in this scope
   14 |         int st=strlen(s);
      |                ^~~~~~
a.cc:7:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include<algorithm>
  +++ |+#include <cstring>
    7 | using namespace std;
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <utility>
#include <vector>
#include <cmath>
#include <cctype>

using namespace std;

int main()
{
	char s[200];
	char p[101];
	bool flag = false;
	int i, j;

	i = 0;
	j = 0;

	while (1) {
		scanf("%c", &s[i]);
		if (s[i] == '\n') break;
		i++;
	}
	for (int k = 0; k < i; k++)
		s[k + i] = s[k];


	while (scanf("%c", &p[j]) != EOF) j++;

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

	return (0);
}
vanceknowledgetoad
advance

Compiler output:
a.cc:51:1: error: 'vanceknowledgetoad' does not name a type
   51 | vanceknowledgetoad
      | ^~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <utility>
#include <vector>
#include <cmath>
#include <cctype>

using namespace std;

int main()
{
	char s[200];
	char p[101];
	bool flag = false;
	int i, j;

	i = 0;
	j = 0;

	while (1) {
		scanf("%c", &s[i]);
		if (s[i] == '\n') break;
		i++;
	}
	for (int k = 0; k < i; k++)
		s[k + i] = s[k];


	while (scanf("%c", &p[j]) != EOF) j++;

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

	return (0);
}
vanceknowledgetoad
advance

Compiler output:
a.cc:49:1: error: 'vanceknowledgetoad' does not name a type
   49 | vanceknowledgetoad
      | ^~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <cstdio>

using namespace std;

int main()
{
	char s[200];
	char p[101];
	int i, j;

	i = 0;
	j = 0;

	while (1) {
		scanf("%c", &s[i]);
		if (s[i] == '\n') break;
		i++;
	}
	for (int k = 0; k < i; k++)
		s[k + i] = s[k];


	while (scanf("%c", &p[j]) != EOF) j++;

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

	return (0);
}
vanceknowledgetoad
advance

Compiler output:
a.cc:43:1: error: 'vanceknowledgetoad' does not name a type
   43 | vanceknowledgetoad
      | ^~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(void)
{
	string s, ss, key;
	int i, j;


	cin >> s;
	cin >> key;

	ss = s + s;

	if(str.find(key) != npos)
		cout << "No" << endl;
	else
		cout << "Yes" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: 'str' was not declared in this scope; did you mean 'std'?
   17 |         if(str.find(key) != npos)
      |            ^~~
      |            std
a.cc:17:29: error: 'npos' was not declared in this scope
   17 |         if(str.find(key) != npos)
      |                             ^~~~
Language: C++

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

int n[27]={};
int m[27]={};
char ch1,ch2,K;
int f1,f2;
bool G;
G=true;
f1=0;f2=0;
while(scanf("%c",&ch1)!=EOF)
{
K=ch1-'a';
n[K]++;
}
while(scanf("%c",&ch1)!=EOF)
{
K=ch1-'a';
m[K]++;
}
for(int j=0;j<27;j++)
{
if(n[i]==m[i]){G=false;break;}
}
if(G==false)printf("No\n");
else if(G==true)printf("Yes\n");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:6: error: 'i' was not declared in this scope
   23 | if(n[i]==m[i]){G=false;break;}
      |      ^
Language: C++

#include <iostream>
#include <cstdio>
#include <string>

using namespace std;

int main() {
	char s[101];
	cin >> s;

	char p[101];
	cin >> p;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: 'strlen' was not declared in this scope
   15 |         for (int i = 0; i < strlen(s); i++) {
      |                             ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <cstdio>
  +++ |+#include <cstring>
    3 | #include <string>
Language: C++

#include <iostream>
using namespace std;

int main(void){
	char str[200], ans[100];

	cin >> str;
	cin >> ans;

	//????????°????????\
	int ansLen = strlen(ans), strLen = strlen(str);
	for (int i = 0; i < ansLen; i++){
		str[strLen + i] = str[i];
		if (i == ansLen - 1){
			str[strLen + i + 1] = '\0';
		}
	}

	//??¢?´¢
	strLen += ansLen;
	for (int i = 0, j=0; i < strLen; i++){
		//??§???
		if (str[i] == ans[j]){
			j++;
		}
		else {
			j = (str[i] == ans[0]) ? 1 : 0;
		}

		//????????????
		if (ans[j] == '\0'){
			cout << "Yes\n";
			break;
		}
		else if (str[i+1] == '\0'){
			cout << "No\n";
			break;
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: 'ansLen' was not declared in this scope
   12 |         for (int i = 0; i < ansLen; i++){
      |                             ^~~~~~
a.cc:13:21: error: 'strLen' was not declared in this scope
   13 |                 str[strLen + i] = str[i];
      |                     ^~~~~~
a.cc:20:9: error: 'strLen' was not declared in this scope
   20 |         strLen += ansLen;
      |         ^~~~~~
a.cc:20:19: error: 'ansLen' was not declared in this scope
   20 |         strLen += ansLen;
      |                   ^~~~~~
Language: C++

include<iostream>
include<string.h>
using namespace std;
string a,b,c;
int in(){
cin>>a;
cin>>n;
}

int com(){
b=a;
strcat(a,b);

}
int out(){
if(strstr(a,b)!=NULL)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
int main(){
in();
com();
out();
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc:4:1: error: 'string' does not name a type
    4 | string a,b,c;
      | ^~~~~~
a.cc: In function 'int in()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'in'?
    6 | cin>>a;
      | ^~~
      | in
a.cc:6:6: error: 'a' was not declared in this scope
    6 | cin>>a;
      |      ^
a.cc:7:6: error: 'n' was not declared in this scope; did you mean 'in'?
    7 | cin>>n;
      |      ^
      |      in
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
a.cc: In function 'int com()':
a.cc:11:1: error: 'b' was not declared in this scope
   11 | b=a;
      | ^
a.cc:11:3: error: 'a' was not declared in this scope
   11 | b=a;
      |   ^
a.cc:12:1: error: 'strcat' was not declared in this scope
   12 | strcat(a,b);
      | ^~~~~~
a.cc:1:1: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | include<iostream>
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
a.cc: In function 'int out()':
a.cc:16:11: error: 'a' was not declared in this scope
   16 | if(strstr(a,b)!=NULL)
      |           ^
a.cc:16:13: error: 'b' was not declared in this scope
   16 | if(strstr(a,b)!=NULL)
      |             ^
a.cc:16:4: error: 'strstr' was not declared in this scope
   16 | if(strstr(a,b)!=NULL)
      |    ^~~~~~
a.cc:16:4: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:16:17: error: 'NULL' was not declared in this scope
   16 | if(strstr(a,b)!=NULL)
      |                 ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | include<iostream>
a.cc:17:1: error: 'cout' was not declared in this scope; did you mean 'out'?
   17 | cout<<"YES"<<endl;
      | ^~~~
      | out
a.cc:17:14: error: 'endl' was not declared in this scope
   17 | cout<<"YES"<<endl;
      |              ^~~~
a.cc:19:1: error: 'cout' was not declared in this scope; did you mean 'out'?
   19 | cout<<"NO"<<endl;
      | ^~~~
      | out
a.cc:19:13: error: 'endl' was not declared in this scope
   19 | cout<<"NO"<<endl;
      |             ^~~~
a.cc:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      | ^
Language: C++

include<iostream>
include<string.h>
using namespace std;
string a,b,c;
int in(){
cin>>a;
cin>>c;
}

int com(){
b=a;
strcat(a,b);

}
int out(){
if(strstr(a,c)!=NULL)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
int main(){
in();
com();
out();
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc:4:1: error: 'string' does not name a type
    4 | string a,b,c;
      | ^~~~~~
a.cc: In function 'int in()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'in'?
    6 | cin>>a;
      | ^~~
      | in
a.cc:6:6: error: 'a' was not declared in this scope
    6 | cin>>a;
      |      ^
a.cc:7:6: error: 'c' was not declared in this scope
    7 | cin>>c;
      |      ^
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
a.cc: In function 'int com()':
a.cc:11:1: error: 'b' was not declared in this scope
   11 | b=a;
      | ^
a.cc:11:3: error: 'a' was not declared in this scope
   11 | b=a;
      |   ^
a.cc:12:1: error: 'strcat' was not declared in this scope
   12 | strcat(a,b);
      | ^~~~~~
a.cc:1:1: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | include<iostream>
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
a.cc: In function 'int out()':
a.cc:16:11: error: 'a' was not declared in this scope
   16 | if(strstr(a,c)!=NULL)
      |           ^
a.cc:16:13: error: 'c' was not declared in this scope
   16 | if(strstr(a,c)!=NULL)
      |             ^
a.cc:16:4: error: 'strstr' was not declared in this scope
   16 | if(strstr(a,c)!=NULL)
      |    ^~~~~~
a.cc:16:4: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:16:17: error: 'NULL' was not declared in this scope
   16 | if(strstr(a,c)!=NULL)
      |                 ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | include<iostream>
a.cc:17:1: error: 'cout' was not declared in this scope; did you mean 'out'?
   17 | cout<<"YES"<<endl;
      | ^~~~
      | out
a.cc:17:14: error: 'endl' was not declared in this scope
   17 | cout<<"YES"<<endl;
      |              ^~~~
a.cc:19:1: error: 'cout' was not declared in this scope; did you mean 'out'?
   19 | cout<<"NO"<<endl;
      | ^~~~
      | out
a.cc:19:13: error: 'endl' was not declared in this scope
   19 | cout<<"NO"<<endl;
      |             ^~~~
a.cc:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      | ^
Language: C++

#include<cstdio>
#include<cstring>
using namespace std;
int main()
{
	char s[201], p[101],t[101];

	scanf("%s %s", s, p);
	strcpy(t, s);
	strcat(s, t);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: expected ';' before '}' token
   16 |         else printf("Yes\n")
      |                             ^
      |                             ;
   17 | }
      | ~
Language: C++

# include <iostream>
# include <string>

int main () {
  string s, p;
  getline(cin, s);
  getline(cin, p);

  s += s;

  int a = s.find(p);

  if (a == -1) cout << "No" << endl;
  else  cout << "Yes" << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s, p;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   getline(cin, s);
      |           ^~~
      |           std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:16: error: 's' was not declared in this scope
    6 |   getline(cin, s);
      |                ^
a.cc:7:16: error: 'p' was not declared in this scope
    7 |   getline(cin, p);
      |                ^
a.cc:13:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   if (a == -1) cout << "No" << endl;
      |                ^~~~
      |                std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   if (a == -1) cout << "No" << endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   else  cout << "Yes" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   else  cout << "Yes" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

import java.util.Scanner;
import java.lang.String;
public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		String s, s1;
		int ll = 0;
		s = input.next();
		s1 = input.next();
		s += s;
		for(int i = 0; i < s.length() - s1.length(); i++)
		{
			ll = 0;
			for(int k = 0; k < s1.length(); k++)
			{
				if(s.charAt(i) != s1.charAt(k))
					break;
				ll++;
			}
			if(ll == s1.length())
			{
				break;
			}
		}

		if(ll == s1.length())
			System.out.println("Yes");
		else 
			System.out.println("No");
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.lang.String;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main
      | ^~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    int i,b,c,d=0;
    string abc,acb2,mozi;
    cin >> abc >> abc2;
    mozi=abc+abc;
    int a=mozi.find(abc2);
    if(a!=-1){
        cout << "yes" << "\n";
        }else{
        cout << "No" <<"\n";

        }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'abc2' was not declared in this scope; did you mean 'acb2'?
    7 |     cin >> abc >> abc2;
      |                   ^~~~
      |                   acb2
Language: C++

#include <bits/stdc++.h>
#define FOR(i,n) for(int i=0;i<(int)(n);i++)
#define FORR(i,m,n) for(int i=(int)(m);i<(int)(n);i++)
#define ZERO(a) memset(a,0,sizeof(a))
using namespace std;
typedef signed long long ll;

void solve(){
 string s,p;
 cin>>s>>p;
 s=s+s;
 FOR(i,s.length()-p.length()){
  if(s.substr(i,p.length())==p){
   cout<<"YES"<<endl;
   return;
  }
 }
 cout<"NO"<<endl;
}

int main(){
 solve();
 return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:18:11: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   18 |  cout<"NO"<<endl;
      |       ~~~~^~~~~~
Language: C++

#include<cstdio>
#include<cstring>

int main(){
	char str[201], t[101], p[101];

	scanf("%s", str);
        scanf("%s", p)
	strcpy(t, str);
	strcat(str, t);

	if (strstr(str, p) == NULL) printf("No\n");
	else printf("Yes\n");

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'strcpy'
    8 |         scanf("%s", p)
      |                       ^
      |                       ;
    9 |         strcpy(t, str);
      |         ~~~~~~
Language: C++

#include<iostream>
#include<cstdlib>
using namespace std;

int main() {
	char s[100], p[100];
	int i, j, sl, pl;
	bool judge = false;
	cin >> s >> p;
	sl = strlen(s);
	pl = strlen(p);
	for (i = 0; i < sl; i++) {
		for (j = 0; j < pl; j++) {
			if (s[(i + j) % sl] != p[j]) {
				break;
			}
		}
		if (j == pl) {
			judge = true;
			break;
		}
	}
	if (judge == true)cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'strlen' was not declared in this scope
   10 |         sl = strlen(s);
      |              ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<cstdlib>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include <string.h>

int main(void)
{
	char s[101];
	char sbuf[101];
	char p[101];
	
	
	int i,j,k;
	int slen;
	
	scanf("%s",s);
	slen = strlen(s);
	scanf("%s",p);
	
	for(i = 0;i < slen;i++){
		for(j = 0;j < slen;j++){
			sbuf[j] = s[(i+j)%slen];
		}
		sbuf[slen] = '\0';
		if(strstr(sbuf,p) != '\0'){
			printf("Yes\n");
			return 0;
		}
	}
	printf("No\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'scanf' was not declared in this scope
   13 |         scanf("%s",s);
      |         ^~~~~
a.cc:22:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |                 if(strstr(sbuf,p) != '\0'){
      |                    ~~~~~~~~~~~~~~~^~~~~~~
a.cc:23:25: error: 'printf' was not declared in this scope
   23 |                         printf("Yes\n");
      |                         ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <string.h>
  +++ |+#include <cstdio>
    2 | 
a.cc:27:9: error: 'printf' was not declared in this scope
   27 |         printf("No\n");
      |         ^~~~~~
a.cc:27:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iostream>
using namespace std;
#include <stdio.h>
int main()
{
	char str[100],p[100];
	int count[26]={0},i,j,a,b,Bool=0;
	for(i=0;;i++){str[i]=getchar();if(str[i]=='\n')break;}
	a=i;
	for(j=0;;j++){p[j]=getchar();if(p[j]=='\n')break;}
	b=j;
	for(i=0;i<a;i++){
		for(j=0;j<b;j++){
			if(str[(i+j)%a]!=p[j])break;
			elseif(p[j+1]=='\n')Bool=1;
		}
	}
	if (Bool) printf("YES\n");
	else printf("NO\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: 'elseif' was not declared in this scope
   15 |                         elseif(p[j+1]=='\n')Bool=1;
      |                         ^~~~~~
Language: C++

using namespace std;
#include <stdio.h>
int main()
{
	char str[100],p[100];
	int count[26]={0},i,j,a,b,Bool=0;
	for(i=0;;i++){str[i]=getchar();if(str[i]=='\n')break;}
	a=i;
	for(j=0;;j++){p[j]=getchar();if(p[j]=='\n')break;}
	b=j;
	for(i=0;i<a;i++){
		for(j=0;j<b;j++){
			if(str[(i+j)%a]!=p[j])break;
			elseif(p[j+1]=='\n')Bool=1;
		}
	}
	if (Bool) printf("YES\n");
	else printf("NO\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'elseif' was not declared in this scope
   14 |                         elseif(p[j+1]=='\n')Bool=1;
      |                         ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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

/******
*	????????°
******/
/******??¢?????´?????????
*	????????????S???2?????????????????§???2?????°????????????????????????S?????????????????????P??????????????????
*	????????????????????????S??¨P????????????????????§?????¨????????????????????¨??????0???????????¨????????????????????????
*	??¢?????????P????????°??????0?????£?¶?????????°Yes??¨??????
******/

int main(void)
{
	char string_S[200]={0};			//?????????????????????S?????????????????????
	char string_P[ 99]={0};			//?????????????????????P?????????????????????
	int i,  k;
	int result[200]={0};
	int sum, answer ;
	int s, p; 						//???????????????
	int count;

	scanf("%s\n", string_S);
	scanf("%s\n", string_P);
	s = strlen(string_S);		//?????????S?????????s
	p = strlen(string_P);		//?????????P?????????p
		
	for(i = 0 ; i < s ; i++){
		string_S[(i+s)] = string_S[i]  ;  //??????S????????\
	}
	
	for(i = 0 ; i < s ; i++){			//??????S???i???????????????????????????P????????????????????¨????????¨????????¢???
			result[i] = string_S[i] - string_P[0];
				
			if(	result[i] == 0){	//???????????????????????£?????´?????????????????????????????????
				count = 0;
				sum   = 0;
				for (k =0; k < p; k++ ){
					if(string_S[i+k] > string_P[k]){		//??§???????????????
						result[i+k] = abs(string_S[i+k]-string_P[k]);
						sum += result[i+k];
						count++;
					}
				}
				if(sum == 0 && p == (count)){
					answer=1;
						break;
				}else {
					answer=0;
				}
			}else {
			//??????????????????????¬????????????????
			}
	}
	if( answer >= 1 ){
		printf("Yes\n");		//p??????????????´???
	}
	else {
		printf("No\n");		//p?????????????????´???
	}
		
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:67:2: error: expected '}' at end of input
   67 | }
      |  ^
a.cc:17:1: note: to match this '{'
   17 | {
      | ^
Language: C++

#include <stdio.h>
int main()
{
  int ac=0,bc=0,i;
  char a[202],b[102];
  scanf("%s %s",a,b);
  // printf("%s %s",a,b);////////

  while(1){
    ac++;
    if(a[ac]=='\0'){
      break;
    }
  }  
  //printf("%d",ac);///
  while(1){
    bc++;
    if(a[bc]=='\0'){
      break;
    }
  }  
  //printf("%d",ac);////////
  for(i=0;i<ac;i++){
    a[ac+i]=a[i];
  }
  a[ac+ac]='\0';
  //printf("%s",a);//////// 
  for(i=0;i<ac+ac;i++){
    if(a[i]==b[0]){
      for(j=0;j<bc;j++){
	if(b[j]!=a[i+j]){
	  break;
	}
	if(j==bc-1){
	  break;
	}
      }
      if(j==bc-1){
	break;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:11: error: 'j' was not declared in this scope
   30 |       for(j=0;j<bc;j++){
      |           ^
a.cc:38:10: error: 'j' was not declared in this scope
   38 |       if(j==bc-1){
      |          ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(void){
    // Here your code !
 
    string p;
    string s;
    
    cin>>p;
    cin>>s;
    
    p+=p;
    
    strig::size_type hantei=p.find(s);
    
    if(hantei!=string::npos)
        cout<<"Yes"<,endl;
        else
        cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'strig' has not been declared
   15 |     strig::size_type hantei=p.find(s);
      |     ^~~~~
a.cc:17:8: error: 'hantei' was not declared in this scope
   17 |     if(hantei!=string::npos)
      |        ^~~~~~
a.cc:18:21: error: expected primary-expression before ',' token
   18 |         cout<<"Yes"<,endl;
      |                     ^
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
	char a[101],b[100];
	cin >> a >> b;
	int ring = strlen(a);
	int count = 0;
	for(int i= 0; i<strlen(a); i++){
		for(int j= 0; j<strlen(b); j++){
			if(a[i]==b[j]) count++;
		}
	}
	if(ring == count) cout << "Yes" << "\n";
	else cout << "No" << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'strlen' was not declared in this scope
    8 |         int ring = strlen(a);
      |                    ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
	char a[101],b[100];
	cin >> a >> b;
	int ring = strlen(a);
	int count = 0;
	for(int i= 0; i<strlen(a); i++){
		for(int j= 0; j<strlen(b); j++){
			if(a[i]==b[j]) count++;
		}
	}
	if(ring == count) cout << "Yes" << "\n";
	else cout << "No" << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'strlen' was not declared in this scope
    8 |         int ring = strlen(a);
      |                    ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include<cstdio>
#include<cstring>

using namespace std;

int main (){

	char s[201], t[101], p[101];

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

	strcpy(t, s);

	strcat(s, t);

	if ( strstr(s, p) == NULL ) printf ( "no\n");

	else printf("Yes\n");

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: expected '}' at end of input
   20 |         return 0;
      |                  ^
a.cc:6:12: note: to match this '{'
    6 | int main (){
      |            ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
	string x,p,ss;
	cin>>x;
	cin>>p;
	int a=size(x);
	for(int i=0;i<2*a;i++){
		if(i<a){
			ss[i]=x[i];
		}
		else{
			ss[i]=x[i-a];
		}
	}
	ans=0;
	for(int i=0;i<2*a;i++){
		if(x[i]==p[0]){
			for(int e=i;e<size(p);e++){
				if(x[e]!=p[e-i]){
					ans=0;
					break;
				}
				else ans++;
			}
			if(ans==size(p)){
				cout<<"Yes"<<endl;
				return 0;
			}
		}
	}
	cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |         ans=0;
      |         ^~~
      |         abs
Language: C++

<?php
$s = trim(fgets(STDIN));
$s .= $s;
$p = trim(fgets(STDIN));
echo (strpos($s,$p) !== false) ? "Yes\n":"No\n";

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: '$s' does not name a type
    3 | $s .= $s;
      | ^~
a.cc:4:1: error: '$p' does not name a type
    4 | $p = trim(fgets(STDIN));
      | ^~
a.cc:5:6: error: expected constructor, destructor, or type conversion before '(' token
    5 | echo (strpos($s,$p) !== false) ? "Yes\n":"No\n";
      |      ^
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
  char a[4]="end";
  char s1[101],ng[101];

 
    int i,j=0,l,w,err=0;
    int ans=0,sum=0,count=0;
    
    scanf("%s",s1);
    scanf("%s",ng);
    
    int len=strlen(s1);
    int lan=strlen(ng);
    
    for(i=0;i<lan;i++){
      ans+=ng[i];
    }

    for(i=0;i<len;i++){
      int j=0;
      if(s1[i]==ng[0]){
	for(l=0;l<lan;l++){
	  
	  if(i+j==len){
	    w=i;
	    err++;
	    i=0;
	    j=0;
	  }

	  sum+=s1[i+j];
	  j++;
	}
	
	if(ans==sum){
	  count++;
	}
	
	if(err!=0){
	  i=w;
	  err=0;
	}

	sum=0;
      }
    }
    
    if(count!=0){
      printf("YES\n");
    } else{
      printf("NO\n");
    }
  }
  
  return(0);
}

Compiler output:
a.cc:57:3: error: expected unqualified-id before 'return'
   57 |   return(0);
      |   ^~~~~~
a.cc:58:1: error: expected declaration before '}' token
   58 | }
      | ^
Language: C++

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

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

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: invalid conversion from 'char*' to 'int' [-fpermissive]
   13 |     find=strstr(s,p);
      |          ~~~~~~^~~~~
      |                |
      |                char*
a.cc:14:14: warning: NULL used in arithmetic [-Wpointer-arith]
   14 |     if(find!=NULL){
      |              ^~~~
Language: C++

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

int main(void)
{
    int find;
    char s[202],p[101];

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

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: invalid conversion from 'char*' to 'int' [-fpermissive]
   13 |     find=strstr(s,p);
      |          ~~~~~~^~~~~
      |                |
      |                char*
a.cc:14:14: warning: NULL used in arithmetic [-Wpointer-arith]
   14 |     if(find!=NULL){
      |              ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;

int main(){
  int judge;
  string p,s;
  cin >> p >> s;
  p++;

  judge = p.find(s);
  if(judge == -1) cout << "No" << endl;
  else            cout << "Yes" << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    9 |   p++;
      |   ~^~
Language: C++

int is_only_lower(char str[])
{
    int i;

    for (i = 0; str[i] != '\0'; i++) {
         if (str[i] < 'a' || str[i] > 'z') {
	     break;
         } else {
	     ;
         }
    }

    if (str[i] == '\0') {
        return (1);
    } else {
        return (0);
    }
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>

using namespace std;
int main() {
	char buff[200];
	char p[100] = {};
	char s[100] = {};
	cin.getline(s, 100);
	cin.getline(p, 100);

	strncpy_s(buff, s, 200);
	strncat_s(buff, s, 200 - strlen(s));

	cout << buff << endl;

	int j = 0;
	for (int i = 0; i < strlen(buff); i++) {
		if (buff[i] == p[j]) {
			j++;
		}
		if (p[j] == '\0') {
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'strncpy_s' was not declared in this scope
   13 |         strncpy_s(buff, s, 200);
      |         ^~~~~~~~~
a.cc:14:34: error: 'strlen' was not declared in this scope
   14 |         strncat_s(buff, s, 200 - strlen(s));
      |                                  ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<cctype>
  +++ |+#include <cstring>
    4 | 
a.cc:14:9: error: 'strncat_s' was not declared in this scope
   14 |         strncat_s(buff, s, 200 - strlen(s));
      |         ^~~~~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
#include<string.h>

using namespace std;
int main() {
	char buff[200];
	char p[100] = {};
	char s[100] = {};
	cin.getline(s, 100);
	cin.getline(p, 100);

	strncpy_s(buff, s, 200);
	strncat_s(buff, s, 200 - strlen(s));

	cout << buff << endl;

	int j = 0;
	for (int i = 0; i < strlen(buff); i++) {
		if (buff[i] == p[j]) {
			j++;
		}
		if (p[j] == '\0') {
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'strncpy_s' was not declared in this scope; did you mean 'strncpy'?
   14 |         strncpy_s(buff, s, 200);
      |         ^~~~~~~~~
      |         strncpy
a.cc:15:9: error: 'strncat_s' was not declared in this scope; did you mean 'strncat'?
   15 |         strncat_s(buff, s, 200 - strlen(s));
      |         ^~~~~~~~~
      |         strncat
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
#include<string>

using namespace std;
int main() {
	char buff[200];
	char p[100] = {};
	char s[100] = {};
	cin.getline(s, 100);
	cin.getline(p, 100);

	strncpy_s(buff, s, 200);
	strncat_s(buff, s, 200 - strlen(s));

	cout << buff << endl;

	int j = 0;
	for (int i = 0; i < strlen(buff); i++) {
		if (buff[i] == p[j]) {
			j++;
		}
		if (p[j] == '\0') {
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'strncpy_s' was not declared in this scope
   14 |         strncpy_s(buff, s, 200);
      |         ^~~~~~~~~
a.cc:15:34: error: 'strlen' was not declared in this scope
   15 |         strncat_s(buff, s, 200 - strlen(s));
      |                                  ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<cctype>
  +++ |+#include <cstring>
    4 | #include<string>
a.cc:15:9: error: 'strncat_s' was not declared in this scope
   15 |         strncat_s(buff, s, 200 - strlen(s));
      |         ^~~~~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
#include<cstring>

using namespace std;
int main() {
	char buff[200];
	char p[100] = {};
	char s[100] = {};
	cin.getline(s, 100);
	cin.getline(p, 100);

	strncpy_s(buff, s, 200);
	strncat_s(buff, s, 200 - strlen(s));

	cout << buff << endl;

	int j = 0;
	for (int i = 0; i < strlen(buff); i++) {
		if (buff[i] == p[j]) {
			j++;
		}
		if (p[j] == '\0') {
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'strncpy_s' was not declared in this scope; did you mean 'strncpy'?
   14 |         strncpy_s(buff, s, 200);
      |         ^~~~~~~~~
      |         strncpy
a.cc:15:9: error: 'strncat_s' was not declared in this scope; did you mean 'strncat'?
   15 |         strncat_s(buff, s, 200 - strlen(s));
      |         ^~~~~~~~~
      |         strncat
Language: C++

#include<iostream>
#include<cstdio>
#include<cctype>
#include<cstring>
#include<cstdlib>

using namespace std;
int main() {
	char buff[200];
	char p[100] = {};
	char s[100] = {};
	cin.getline(s, 100);
	cin.getline(p, 100);

	strncpy_s(buff, s, 200);
	strncat_s(buff, s, 200 - strlen(s));

	cout << buff << endl;

	int j = 0;
	for (int i = 0; i < strlen(buff); i++) {
		if (buff[i] == p[j]) {
			j++;
		}
		if (p[j] == '\0') {
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'strncpy_s' was not declared in this scope; did you mean 'strncpy'?
   15 |         strncpy_s(buff, s, 200);
      |         ^~~~~~~~~
      |         strncpy
a.cc:16:9: error: 'strncat_s' was not declared in this scope; did you mean 'strncat'?
   16 |         strncat_s(buff, s, 200 - strlen(s));
      |         ^~~~~~~~~
      |         strncat
Language: C++

#include <string>
using namespace std;
int main(){
	string input;
	cin >> input;
	string >> target;
	cin >> target;
	input+=input;
	if(input.find(target)==-1)cout << "No" << endl;
	else cout << "Yes" << endl;
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> input;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:16: error: expected unqualified-id before '>>' token
    6 |         string >> target;
      |                ^~
a.cc:7:16: error: 'target' was not declared in this scope
    7 |         cin >> target;
      |                ^~~~~~
a.cc:9:35: error: 'cout' was not declared in this scope
    9 |         if(input.find(target)==-1)cout << "No" << endl;
      |                                   ^~~~
a.cc:9:35: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:51: error: 'endl' was not declared in this scope
    9 |         if(input.find(target)==-1)cout << "No" << endl;
      |                                                   ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <string>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:10:14: error: 'cout' was not declared in this scope
   10 |         else cout << "Yes" << endl;
      |              ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:31: error: 'endl' was not declared in this scope
   10 |         else cout << "Yes" << endl;
      |                               ^~~~
a.cc:10:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <string>
#include <iostream>
using namespace std;
int main(){
	string input;
	cin >> input;
	string >> target;
	cin >> target;
	input+=input;
	if(input.find(target)==-1)cout << "No" << endl;
	else cout << "Yes" << endl;
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected unqualified-id before '>>' token
    7 |         string >> target;
      |                ^~
a.cc:8:16: error: 'target' was not declared in this scope
    8 |         cin >> target;
      |                ^~~~~~