criyle/codenet-compile-errors huggingface dataset:
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");
    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);
      |                ^
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);
    puts(strstr(s,p)==NULL?"No":"Yes");
    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);
      |                ^
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);
    puts(strstr(s,p)==NULL?"No\n":"Yes\n");
    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);
      |                ^
Language: C

#include <stdio.h>
#include <string.h>
int main(void){
    int i,len;
    char s[4096],p[4096],s2[4096];
    scanf("%s",s);
    scanf("%s",p);
    sprint(s2,"%s%s",s,s);
    printf("%s\n",s2);
    puts(strstr(s,p)==NULL?"No":"Yes");
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'sprint'; did you mean 'sprintf'? [-Wimplicit-function-declaration]
    8 |     sprint(s2,"%s%s",s,s);
      |     ^~~~~~
      |     sprintf
Language: C

#include <stdio.h>
int main(void){
    int i,len;
    char s[4096],p[4096],s2[4096];
    scanf("%s",&s);
    scanf("%s",&p);
    sprintf(s2,"%s%s",s,s);
    
    if((ret = strstr(s2,p))=NULL){
        printf("NO\n")
    }else{
        printf("YES\n")
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'ret' undeclared (first use in this function)
    9 |     if((ret = strstr(s2,p))=NULL){
      |         ^~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:15: error: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
    9 |     if((ret = strstr(s2,p))=NULL){
      |               ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strstr'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main(void){
main.c:9:15: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch]
    9 |     if((ret = strstr(s2,p))=NULL){
      |               ^~~~~~
main.c:9:15: note: include '<string.h>' or provide a declaration of 'strstr'
main.c:10:23: error: expected ';' before '}' token
   10 |         printf("NO\n")
      |                       ^
      |                       ;
   11 |     }else{
      |     ~                  
main.c:12:24: error: expected ';' before '}' token
   12 |         printf("YES\n")
      |                        ^
      |                        ;
   13 |     }
      |     ~
Language: C

#include <stdio.h>
int main(void){
    int i,len;
    char s[4096],p[4096],s2[4096];
    scanf("%s",&s);
    scanf("%s",&p);
    sprintf(s2,"%s%s",s,s);
    
    if((ret = strstr(s2,p))=NULL){
        printf("NO\n");
    }else{
        printf("YES\n");
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:9: error: 'ret' undeclared (first use in this function)
    9 |     if((ret = strstr(s2,p))=NULL){
      |         ^~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:15: error: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
    9 |     if((ret = strstr(s2,p))=NULL){
      |               ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strstr'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | int main(void){
main.c:9:15: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch]
    9 |     if((ret = strstr(s2,p))=NULL){
      |               ^~~~~~
main.c:9:15: note: include '<string.h>' or provide a declaration of 'strstr'
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);
    if(strstr(s2,p)==NULL);
    else if(strstr(s,p)=="Yes");
    else(strstr(p,s)=="No");
    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);
      |                ^
Language: C

#include <stdio.h>
int main(void){
    int i,len;
    char s[4096],p[4096],s2[4096];
    scanf("%s",&s);
    scanf("%s",&p);
    sprintf(s2,"%s%s",s,s);
    
    if((ret = strstr(s2,p))==NULL){
        printf("NO\n");
    }else{
        printf("YES\n");
    }
    return 0;
}



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

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



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

#include <stdio.h>
#include <string.h>
int main(void){
    int i,len;
    char s[4096],p[4096],s2[4096];
    scanf("%s",s);
    scanf("%s",p);
    sprint(s2,"%s%s",s,s);
    puts(strstr(s2,p)==NULL?"No":"Yes");
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'sprint'; did you mean 'sprintf'? [-Wimplicit-function-declaration]
    8 |     sprint(s2,"%s%s",s,s);
      |     ^~~~~~
      |     sprintf
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(s2,p)=NULL?"No":"Yes")
    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);
      |                ^
main.c:11:39: error: expected ';' before 'return'
   11 |     puts(strstr(s2,p)=NULL?"No":"Yes")
      |                                       ^
      |                                       ;
   12 |     return 0;
      |     ~~~~~~
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(s2,p)=NULL?"No":"Yes");
    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);
      |                ^
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(s2,p)=NULL?"No":"Yes");
    return 0;
}




Compiler output:
main.c: In function 'main':
main.c:11:22: error: lvalue required as left operand of assignment
   11 |     puts(strstr(s2,p)=NULL?"No":"Yes");
      |                      ^
Language: C++

#include <stdio.h>

int main(void){

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   11 |         gets(t1);
      |         ^~~~
      |         getw
a.cc:13:12: error: 'strlen' was not declared in this scope
   13 |         n1=strlen(t1);
      |            ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <stdio.h>
  +++ |+#include <cstring>
    2 |
Language: C++

// class point	の練習（クラスの高度な実装）
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <string>

typedef long long llong;
using namespace std;


int main() {
	char s[210];
	char p[210];

	fgets(s, 101, stdin);
	fgets(p, 101, stdin);
	s[strlen(s)-1] = '\0';
	p[strlen(p) - 1] = '\0';
	char dummy[210];
	strcpy(dummy, s);
	strcat(s, dummy);

	for (int i = 0; s[i] != '\0'; i++) {
		if (s[i] == p[0]) {
			for (int j = 0; p[j] != '\0'; j++) {
				if (s[i + j] != p[j])break;
				else if (p[j + 1] == '\0') {
					cout << "Yes\n";
					return 0;
				}
			}
		}
	}
	cout << "No\n";
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: 'strlen' was not declared in this scope
   18 |         s[strlen(s)-1] = '\0';
      |           ^~~~~~
a.cc:6:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    5 | #include <cstdio>
  +++ |+#include <cstring>
    6 | #include <string>
a.cc:21:9: error: 'strcpy' was not declared in this scope
   21 |         strcpy(dummy, s);
      |         ^~~~~~
a.cc:21:9: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:22:9: error: 'strcat' was not declared in this scope
   22 |         strcat(s, dummy);
      |         ^~~~~~
a.cc:22:9: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

// class point	の練習（クラスの高度な実装）
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <string>

typedef long long llong;
using namespace std;


int main() {
	char s[210];
	char p[210];
	int flag = 0;

	fgets(s, 101, stdin);
	fgets(p, 101, stdin);
	s[strlen(s)-1] = '\0';
	p[strlen(p) - 1] = '\0';
	char dummy[210];
	strcpy(dummy, s);
	strcat(s, dummy);

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



Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: 'strlen' was not declared in this scope
   19 |         s[strlen(s)-1] = '\0';
      |           ^~~~~~
a.cc:6:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    5 | #include <cstdio>
  +++ |+#include <cstring>
    6 | #include <string>
a.cc:22:9: error: 'strcpy' was not declared in this scope
   22 |         strcpy(dummy, s);
      |         ^~~~~~
a.cc:22:9: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:23:9: error: 'strcat' was not declared in this scope
   23 |         strcat(s, dummy);
      |         ^~~~~~
a.cc:23:9: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

#include <iostream>
#include <string>
#include <ctype>

using namespace std;

int main()
{
	string s, p;

	cin >> s >> p;
	string n = s;
	n += s;

	if (n.find(p))
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}



Compiler output:
a.cc:3:10: fatal error: ctype: No such file or directory
    3 | #include <ctype>
      |          ^~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
	string s, p;

	cin >> s >> p;
	string n = s;
	n += s;

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

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: 'npos' was not declared in this scope
   14 |         if (n.find(p) != npos)
      |                          ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
	string s, p;

	cin >> s >> p;
	string n = s;
	n += s;

	if (n.find(p) != stinrg::npos)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: 'stinrg' has not been declared
   14 |         if (n.find(p) != stinrg::npos)
      |                          ^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
        string s,p;
        int s_num = 0;
        int p_num = 0;
        bool discover =false;
        getline(cin,s);
        getline(cin,p);
        string s_search = s+s;
        //cout <<s_search << endl;
        for(int i = 0; i < s_search.length();i++){
                if(s_search[i]==p[0]){
                        for(int j =0; j < p.length();j++){
                                if(s_search[i+j] != p[j]){
                                        break;
                                }else if(j == p.length() -1&&s_search[i+j]== p[
]){
                                        cout << "Yes" << endl;
                                        discover = true;
                                }
                        }

                }
                if(discover == true)break;
        }
        if(discover == false)cout << "No" <<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:1: error: expected primary-expression before ']' token
   19 | ]){
      | ^
Language: C++

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

using namespace std;

int main(){
	string s;
	getline(cin, s);
	string p;
	getline(cin, p);
	bool ansflag = false;
	for(int i = 0; i < s.length(); i++){
		bool flag = true;
		for(int j = 0; j < p.length(); j++){
			if(s[(i+j)%s.length()] != p[]){
				flag = false;
				break;
			}
		}
		if(flag){
			ansflag = true;
			break;
		}
	}
	if(ansflag){
		cout << "Yes\n";
	}
	else{
		cout << "No\n";
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:53: error: expected primary-expression before ']' token
   16 |                         if(s[(i+j)%s.length()] != p[]){
      |                                                     ^
Language: C++

#include <bits/stdc++.h>
#include<string.h>

using namespace std;

int main() {
    // insert code here...
    char a[210],b[100];
    cin>>a>>b;
    strcat(a, a);
    if ( strstr(a,b) == NULL ){
         printf("No\n")
    }else{
        printf("Yes\n");
    }
     
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ';' before '}' token
   12 |          printf("No\n")
      |                        ^
      |                        ;
   13 |     }else{
      |     ~
Language: C++

#include<iostream>
using namespace std;
int main (){
   string s1, s2;
   cin >> s1;
   cin >> s2;
   int s3 = s1 + s1 + s1;
   int s.find(s2);
   if (s.find(s2) == std::s3::npos) {
    cout << "Yes" <<endl;
   }
   else {
       cout << "No" << endl;
   }
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in initialization
    7 |    int s3 = s1 + s1 + s1;
      |             ~~~~~~~~^~~~
      |                     |
      |                     std::__cxx11::basic_string<char>
a.cc:8:9: error: expected initializer before '.' token
    8 |    int s.find(s2);
      |         ^
a.cc:9:8: error: 's' was not declared in this scope; did you mean 's3'?
    9 |    if (s.find(s2) == std::s3::npos) {
      |        ^
      |        s3
a.cc:9:27: error: 'std::s3' has not been declared
    9 |    if (s.find(s2) == std::s3::npos) {
      |                           ^~
Language: C++

#include<iostream>
using namespace std;
int main (){
   string s1, s2;
   cin >> s1;
   cin >> s2;
   int s3 = s1 + s1 + s1;
   int s3.find(s2);
   if (s3.find(s2) == std::s3::npos) {
    cout << "Yes" <<endl;
   }
   else {
       cout << "No" << endl;
   }
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in initialization
    7 |    int s3 = s1 + s1 + s1;
      |             ~~~~~~~~^~~~
      |                     |
      |                     std::__cxx11::basic_string<char>
a.cc:8:10: error: expected initializer before '.' token
    8 |    int s3.find(s2);
      |          ^
a.cc:9:11: error: request for member 'find' in 's3', which is of non-class type 'int'
    9 |    if (s3.find(s2) == std::s3::npos) {
      |           ^~~~
a.cc:9:28: error: 'std::s3' has not been declared
    9 |    if (s3.find(s2) == std::s3::npos) {
      |                            ^~
Language: C++

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

int main(){
  string s,p;
  int i,j;
  cin >> s >> p;
  scanf("%s %s", s , p);
  if ( strstr( s , p ) == NULL ) printf("NO\n");
else printf("Yes\n");
  return 0;
}
  
      
 



Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: no matching function for call to 'strstr(std::string&, std::string&)'
   11 |   if ( strstr( s , p ) == NULL ) printf("NO\n");
      |        ~~~~~~^~~~~~~~~
In file included from a.cc:3:
/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<iostream>
using namespace std;
int main(){
    string s1, s2;
    cin >> s1;
    cin >> s2;
    string s1 + s1;
    if (s3.find(s2) = 1){
        cout << "Yes" << endl;
    }
    else {
        cout << "No" <<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected initializer before '+' token
    7 |     string s1 + s1;
      |               ^
a.cc:8:9: error: 's3' was not declared in this scope; did you mean 's2'?
    8 |     if (s3.find(s2) = 1){
      |         ^~
      |         s2
Language: C++

#include<iostream>
using namespace std;
int main(){
    string s1, s2;
    cin >> s1;
    cin >> s2;
    string s3 = s1 + s1;
    if (s3.find(s2) !== 1){
        cout << "Yes" << endl;
    }
    else {
        cout << "No" <<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected primary-expression before '=' token
    8 |     if (s3.find(s2) !== 1){
      |                       ^
Language: C++

n=raw_input()*2
print'Yes' if raw_input() in n else'No'


Compiler output:
a.cc:2:6: warning: multi-character character constant [-Wmultichar]
    2 | print'Yes' if raw_input() in n else'No'
      |      ^~~~~
a.cc:2:36: warning: multi-character character constant [-Wmultichar]
    2 | print'Yes' if raw_input() in n else'No'
      |                                    ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n=raw_input()*2
      | ^
Language: C++

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

int main(){
    char str1[201]={},str2[101]={},str3[101]={};
    scanf("%s %s",str1,str2);
    str3=str1;
    strcat(str1,str3);
    if(strstr(str1,str2)==NULL) printf("No\n");
    else printf("Yes\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: incompatible types in assignment of 'char [201]' to 'char [101]'
    8 |     str3=str1;
      |     ~~~~^~~~~
Language: C++

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




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<cstring>
int main(){
    char s[201],t[101],r[101];
    scanf("%s %s",s,r);
    strcpy(t,s);
    strcat(t,s);
    if(strstr(s,r)==NULL) printf("No\n")
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: expected ';' before '}' token
    9 |     if(strstr(s,r)==NULL) printf("No\n")
      |                                         ^
      |                                         ;
   10 | }
      | ~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
int main(){
    char s[201],t[101],r[101];
    scanf("%s %s",s,r);
    strcpy(t,s);
    strcat(t,s);
    if(strstr(s,r)==NULL) printf("No\n")
    else printf("Yes\n"
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: expected ';' before 'else'
    9 |     if(strstr(s,r)==NULL) printf("No\n")
      |                                         ^
      |                                         ;
   10 |     else printf("Yes\n"
      |     ~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
int main(){
    char s[201],t[101],r[101];
    scanf("%s %s",s,r);
    strcpy(t,s);
    strcat(t,s);
    if(strstr(s,r)==NULL) printf("No\n")
    else printf("Yes\n")
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: expected ';' before 'else'
    9 |     if(strstr(s,r)==NULL) printf("No\n")
      |                                         ^
      |                                         ;
   10 |     else printf("Yes\n")
      |     ~~~~
Language: C++

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

int main() {
    char s, p, ch;
    string str[100];
    
    scanf("%c\n", s);
    scanf("%c\n", p);
    strcat(ch, s);
    strcat(ch, s)
    if (strstr(ch, p) == NULL) printf("No\n");
    else printf("Yes\n");
    
    return 0;
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string str[100];
      |     ^~~~~~
a.cc:3:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    2 | #include<cstdio>
  +++ |+#include <string>
    3 | using namespace std;
a.cc:11:12: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   11 |     strcat(ch, s);
      |            ^~
      |            |
      |            char
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:1:
/usr/include/string.h:149:39: note:   initializing argument 1 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:11:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |     strcat(ch, s);
      |                ^
      |                |
      |                char
/usr/include/string.h:149:70: note:   initializing argument 2 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:12:12: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   12 |     strcat(ch, s)
      |            ^~
      |            |
      |            char
/usr/include/string.h:149:39: note:   initializing argument 1 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:12:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   12 |     strcat(ch, s)
      |                ^
      |                |
      |                char
/usr/include/string.h:149:70: note:   initializing argument 2 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:12:18: error: expected ';' before 'if'
   12 |     strcat(ch, s)
      |                  ^
      |                  ;
   13 |     if (strstr(ch, p) == NULL) printf("No\n");
      |     ~~            
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else printf("Yes\n");
      |     ^~~~
Language: C++

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

int main() {
    char s, p, ch;
    
    scanf("%c\n", s);
    scanf("%c\n", p);
    strcat(ch, s);
    strcat(ch, s)
    if (strstr(ch, p) == NULL) printf("No\n");
    else printf("Yes\n");
    
    return 0;
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   10 |     strcat(ch, s);
      |            ^~
      |            |
      |            char
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:1:
/usr/include/string.h:149:39: note:   initializing argument 1 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:10:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   10 |     strcat(ch, s);
      |                ^
      |                |
      |                char
/usr/include/string.h:149:70: note:   initializing argument 2 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:11:12: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   11 |     strcat(ch, s)
      |            ^~
      |            |
      |            char
/usr/include/string.h:149:39: note:   initializing argument 1 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:11:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |     strcat(ch, s)
      |                ^
      |                |
      |                char
/usr/include/string.h:149:70: note:   initializing argument 2 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:11:18: error: expected ';' before 'if'
   11 |     strcat(ch, s)
      |                  ^
      |                  ;
   12 |     if (strstr(ch, p) == NULL) printf("No\n");
      |     ~~            
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else printf("Yes\n");
      |     ^~~~
Language: C++

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

int main() {
    char s, p;
    char ch = "";
    
    scanf("%c\n", s);
    scanf("%c\n", p);
    strcat(ch, s);
    strcat(ch, s)
    if (strstr(ch, p) == NULL) printf("No\n");
    else printf("Yes\n");
    
    return 0;
    
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    7 |     char ch = "";
      |               ^~
      |               |
      |               const char*
a.cc:11:12: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   11 |     strcat(ch, s);
      |            ^~
      |            |
      |            char
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:1:
/usr/include/string.h:149:39: note:   initializing argument 1 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:11:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |     strcat(ch, s);
      |                ^
      |                |
      |                char
/usr/include/string.h:149:70: note:   initializing argument 2 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:12:12: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   12 |     strcat(ch, s)
      |            ^~
      |            |
      |            char
/usr/include/string.h:149:39: note:   initializing argument 1 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:12:16: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   12 |     strcat(ch, s)
      |                ^
      |                |
      |                char
/usr/include/string.h:149:70: note:   initializing argument 2 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
a.cc:12:18: error: expected ';' before 'if'
   12 |     strcat(ch, s)
      |                  ^
      |                  ;
   13 |     if (strstr(ch, p) == NULL) printf("No\n");
      |     ~~            
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else printf("Yes\n");
      |     ^~~~
Language: C++

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

int main() {
    char s[201], p[101];
    char ch[101];
    
    scanf("%c\n", s);
    scanf("%c\n", p);
    strcpy(ch, s);
    strcat(s,ch)
    if (strstr(ch, p) == NULL) printf("No\n");
    else printf("Yes\n");
    
    return 0;
    
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected ';' before 'if'
   12 |     strcat(s,ch)
      |                 ^
      |                 ;
   13 |     if (strstr(ch, p) == NULL) printf("No\n");
      |     ~~           
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else printf("Yes\n");
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
#include<stdio.h>
using namespace std;

int main(void){
    string str1,str2,ans;
    ans = "";
    cin >> str1 >> str2;
    str1 = str1 + str1;
    for (int i = 0; i < str1.size(); i++){
        for (int j = 0; j < str2.size(); j++){
            if (str1[i] == str2[j]){
                for(k= 0; k < str2.size; k++){
                    ans += str1[j+k];
                }
                
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: 'k' was not declared in this scope
   14 |                 for(k= 0; k < str2.size; k++){
      |                     ^
Language: C++

#include<iostream>
#include<string>
#include<stdio.h>
using namespace std;

int main(void){
    string str1,str2,ans;
    ans = "";
    cin >> str1 >> str2;
    str1 = str1 + str1;
    for (int i = 0; i < str1.size(); i++){
        for (int j = 0; j < str2.size(); j++){
            if (str1[i] == str2[j]){
                for(k= 0; k < str2.size; k++){
                    ans += str1[j+k];
                }
                if (ans == str2){
                    cout << "Yes" << endl;
                    return 0;
                }
            }
        }
    }
    cout << "No" << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: 'k' was not declared in this scope
   14 |                 for(k= 0; k < str2.size; k++){
      |                     ^
Language: C++

#include<iostream>
#include<string>
#include<stdio.h>
using namespace std;

int main(void){
    string str1,str2,ans;
    ans = "";
    cin >> str1 >> str2;
    str1 = str1 + str1;
    for (int i = 0; i < str1.size(); i++){
        for (int j = 0; j < str2.size(); j++){
            if (str1[i] == str2[j]){
                for(int k= 0; k < str2.size; k++){
                    ans += str1[j+k];
                }
                if (ans == str2){
                    cout << "Yes" << endl;
                    return 0;
                }
            }
        }
    }
    cout << "No" << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:40: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   14 |                 for(int k= 0; k < str2.size; k++){
      |                                   ~~~~~^~~~
      |                                            ()
Language: C++

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

int main(){
aiueoeiuaoeiuaoeiueiaueoaiueoaiueoaiueoaiueoaiueoaiueoaiueoaieoaiueoaiueoaiueoaieaueiaiueoaiueoaiueoaiueoaiueoaiueoaieuaiueoaiueoaiueoaiueoaiueoaiueoaiueoaiueoaiueoaiueiaoiuaoeaiueoaiueoaiueoaiueoaiuaiueaiueoaieoaieuaoeiuaoeiuaoeiuaoiuaieuoaiueoaiueoaieieieiejdjfjfjfgjlfjjkldfjjjtgthjjmgiojrgijiog   EUIOEHFIEHFUFHJHJIJIUOJIOJKHIp
ihvdifhidhguoihgiiogheiofuihfidhfu8eyowefjeiufa9uaiagihjgijgihihhaijoah:fjpjpaareturn 0;IOHfihfueihugahgughoieop ujik HJIDJHGIJGORUGJIRJAOJKIOUHOIUIHJOFJGIJIUIFJROJUFIKJFOPEURopfopuopeu-upowu9wupejroeufiehfiefio}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'aiueoeiuaoeiuaoeiueiaueoaiueoaiueoaiueoaiueoaiueoaiueoaiueoaieoaiueoaiueoaiueoaieaueiaiueoaiueoaiueoaiueoaiueoaiueoaieuaiueoaiueoaiueoaiueoaiueoaiueoaiueoaiueoaiueoaiueiaoiuaoeaiueoaiueoaiueoaiueoaiuaiueaiueoaieoaieuaoeiuaoeiuaoeiuaoiuaieuoaiueoaiueoaieieieiejdjfjfjfgjlfjjkldfjjjtgthjjmgiojrgijiog' was not declared in this scope
    6 | aiueoeiuaoeiuaoeiueiaueoaiueoaiueoaiueoaiueoaiueoaiueoaiueoaieoaiueoaiueoaiueoaieaueiaiueoaiueoaiueoaiueoaiueoaiueoaieuaiueoaiueoaiueoaiueoaiueoaiueoaiueoaiueoaiueoaiueiaoiuaoeaiueoaiueoaiueoaiueoaiuaiueaiueoaieoaieuaoeiuaoeiuaoeiuaoiuaieuoaiueoaiueoaieieieiejdjfjfjfgjlfjjkldfjjjtgthjjmgiojrgijiog   EUIOEHFIEHFUFHJHJIJIUOJIOJKHIp
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:89: error: 'IOHfihfueihugahgughoieop' was not declared in this scope
    7 | ihvdifhidhguoihgiiogheiofuihfidhfu8eyowefjeiufa9uaiagihjgijgihihhaijoah:fjpjpaareturn 0;IOHfihfueihugahgughoieop ujik HJIDJHGIJGORUGJIRJAOJKIOUHOIUIHJOFJGIJIUIFJROJUFIKJFOPEURopfopuopeu-upowu9wupejroeufiehfiefio}
      |                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

int main(){
    string str1,str2;
    scanf("%s",str1);
    scanf("%s",str3);
    strcpy(str2, str1);
    strcat(str1, str2);
    if(strstr(str1, str2) == NULL){
        printf("No\n");
    }
    else{
        printf("Yes\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string str1,str2;
      |     ^~~~~~
a.cc:6:5: 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:7:16: error: 'str1' was not declared in this scope
    7 |     scanf("%s",str1);
      |                ^~~~
a.cc:8:16: error: 'str3' was not declared in this scope
    8 |     scanf("%s",str3);
      |                ^~~~
a.cc:9:12: error: 'str2' was not declared in this scope
    9 |     strcpy(str2, str1);
      |            ^~~~
Language: C++

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

int main(){
    string str1,str2;
    scanf("%s",str1);
    scanf("%s",str3);
    strcpy(str2, str1);
    strcat(str1, str2);
    if(strstr(str1, str2) == NULL){
        printf("No\n");
    }
    else{
        printf("Yes\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string str1,str2;
      |     ^~~~~~
a.cc:6:5: 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:7:16: error: 'str1' was not declared in this scope
    7 |     scanf("%s",str1);
      |                ^~~~
a.cc:8:16: error: 'str3' was not declared in this scope
    8 |     scanf("%s",str3);
      |                ^~~~
a.cc:9:12: error: 'str2' was not declared in this scope
    9 |     strcpy(str2, str1);
      |            ^~~~
a.cc:9:5: error: 'strcpy' was not declared in this scope
    9 |     strcpy(str2, str1);
      |     ^~~~~~
a.cc:2:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <stdio.h>
a.cc:10:5: error: 'strcat' was not declared in this scope
   10 |     strcat(str1, str2);
      |     ^~~~~~
a.cc:10:5: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:11:8: error: 'strstr' was not declared in this scope
   11 |     if(strstr(str1, str2) == NULL){
      |        ^~~~~~
a.cc:11:8: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
Language: C++

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

int main(){
    string str1,str2;
    scanf("%s",str1);
    scanf("%s",str3);
    strcpy(str2, str1);
    strcat(str1, str2);
    if(strstr(str1, str3) == NULL){
        printf("No\n");
    }
    else{
        printf("Yes\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string str1,str2;
      |     ^~~~~~
a.cc:6:5: 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:7:16: error: 'str1' was not declared in this scope
    7 |     scanf("%s",str1);
      |                ^~~~
a.cc:8:16: error: 'str3' was not declared in this scope
    8 |     scanf("%s",str3);
      |                ^~~~
a.cc:9:12: error: 'str2' was not declared in this scope
    9 |     strcpy(str2, str1);
      |            ^~~~
a.cc:9:5: error: 'strcpy' was not declared in this scope
    9 |     strcpy(str2, str1);
      |     ^~~~~~
a.cc:2:1: note: 'strcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <stdio.h>
a.cc:10:5: error: 'strcat' was not declared in this scope
   10 |     strcat(str1, str2);
      |     ^~~~~~
a.cc:10:5: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:11:8: error: 'strstr' was not declared in this scope
   11 |     if(strstr(str1, str3) == NULL){
      |        ^~~~~~
a.cc:11:8: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'