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

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

int main(){
    string str1[101],str2[101];
    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[101],str2[101];
      |     ^~~~~~
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>'
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
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:8:16: error: 'str3' was not declared in this scope; did you mean 'str2'?
    8 |     scanf("%s",str3);
      |                ^~~~
      |                str2
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>'
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main(){
    string str1,str2;
    scanf("%s",str1);
    scanf("%s",str3);
    strcpy(str2, str1);
    strcat(str1, str2);
    if((str1, str3) == NULL){
        printf("No\n");
    }
    else{
        printf("Yes\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'str3' was not declared in this scope; did you mean 'str2'?
    8 |     scanf("%s",str3);
      |                ^~~~
      |                str2
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>'
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
#include <string.h>
using namespace std;
int main(){
    string str1,str2;
    scanf("%s",str1);
    scanf("%s",str3);
    strcpy(str2, str1);
    strcat(str1, str2);
    if((str1, str3) == NULL){
        printf("No\n");
    }
    else{
        printf("Yes\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'str3' was not declared in this scope; did you mean 'str2'?
    9 |     scanf("%s",str3);
      |                ^~~~
      |                str2
a.cc:10:12: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   10 |     strcpy(str2, str1);
      |            ^~~~
      |            |
      |            std::string {aka std::__cxx11::basic_string<char>}
In file included from a.cc:4:
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:11:12: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   11 |     strcat(str1, str2);
      |            ^~~~
      |            |
      |            std::string {aka std::__cxx11::basic_string<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)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
#include <string.h>
using namespace std;
int main(){
    string str1[101],str2[101],str3[202];
    scanf("%s",str1);
    scanf("%s",str3);
    strcpy(str2, str1);
    strcat(str1, str2);
    if((str1, str3) == NULL){
        printf("No\n");
    }
    else{
        printf("Yes\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: cannot convert 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'char*'
   10 |     strcpy(str2, str1);
      |            ^~~~
      |            |
      |            std::string* {aka std::__cxx11::basic_string<char>*}
In file included from a.cc:4:
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:11:12: error: cannot convert 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'char*'
   11 |     strcat(str1, str2);
      |            ^~~~
      |            |
      |            std::string* {aka std::__cxx11::basic_string<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)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string>
#include <string.h>
using namespace std;
int main(){
    string str3[101],str2[101],str1[202];
    scanf("%s",str1);
    scanf("%s",str3);
    strcpy(str2, str1);
    strcat(str1, str2);
    if((str1, str3) == NULL){
        printf("No\n");
    }
    else{
        printf("Yes\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: cannot convert 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'char*'
   10 |     strcpy(str2, str1);
      |            ^~~~
      |            |
      |            std::string* {aka std::__cxx11::basic_string<char>*}
In file included from a.cc:4:
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:11:12: error: cannot convert 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} to 'char*'
   11 |     strcat(str1, str2);
      |            ^~~~
      |            |
      |            std::string* {aka std::__cxx11::basic_string<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)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
#include<string>
using namespace std;
int main(){
    char a,b;
    scanf("%s %s",a,b);
    char c=a+a;
    if(strcm(b,c)==0){
        printf("No\n");
    }else{
        printf("Yes\n");
    }
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'strcm' was not declared in this scope; did you mean 'struct'?
   10 |     if(strcm(b,c)==0){
      |        ^~~~~
      |        struct
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
#include<string>
using namespace std;
int main(){
    char a,b;
    scanf("%s %s",a,b);
    char c=a+a;
    if(strcmp(b,c)==0){
        printf("No\n");
    }else{
        printf("Yes\n");
    }
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'strcmp' was not declared in this scope
   10 |     if(strcmp(b,c)==0){
      |        ^~~~~~
a.cc:4:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<cstdio>
  +++ |+#include <cstring>
    4 | #include<string>
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
#include<string>
#include<cstring>
using namespace std;
int main(){
    char a,b;
    scanf("%s %s",a,b);
    char c=a+a;
    if(strcmp(b,c)==0){
        printf("No\n");
    }else{
        printf("Yes\n");
    }
    return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |     if(strcmp(b,c)==0){
      |               ^
      |               |
      |               char
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:5:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:11:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |     if(strcmp(b,c)==0){
      |                 ^
      |                 |
      |                 char
/usr/include/string.h:156:50: note:   initializing argument 2 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int main() {
    char ch;
    int ring[100],search[100],change[100];
    scanf("%s %s",ring , search);
    strcpy(ring, change);
    strcat(ring, change);
    printf("%s",ring);
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: cannot convert 'int*' to 'char*'
    9 |     strcpy(ring, change);
      |            ^~~~
      |            |
      |            int*
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:3:
/usr/include/string.h:141:39: note:   initializing argument 1 of 'char* strcpy(char*, const char*)'
  141 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
a.cc:10:12: error: cannot convert 'int*' to 'char*'
   10 |     strcat(ring, change);
      |            ^~~~
      |            |
      |            int*
/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)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
#include<string>
#include<string.h>
using namespace std;
int main(){
    char a,b;
    scanf("%s %s",a,b);
    char c=a+a;
    if(strstr(b,c)==0){
        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(char&, char&)'
   11 |     if(strstr(b,c)==0){
      |        ~~~~~~^~~~~
In file included from a.cc:5:
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)' (near match)
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:14: note:   conversion of argument 2 would be ill-formed:
a.cc:11:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |     if(strstr(b,c)==0){
      |                 ^
      |                 |
      |                 char
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)' (near match)
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:20: note:   conversion of argument 2 would be ill-formed:
a.cc:11:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |     if(strstr(b,c)==0){
      |                 ^
      |                 |
      |                 char
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
#include<string>
#include<string.h>
using namespace std;
int main(){
    char a,b;
    scanf("%s %s",a,b);
    char c=a+a;
    if(strstr(b,c)==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(char&, char&)'
   11 |     if(strstr(b,c)==NULL){
      |        ~~~~~~^~~~~
In file included from a.cc:5:
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)' (near match)
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:14: note:   conversion of argument 2 would be ill-formed:
a.cc:11:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |     if(strstr(b,c)==NULL){
      |                 ^
      |                 |
      |                 char
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)' (near match)
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:20: note:   conversion of argument 2 would be ill-formed:
a.cc:11:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   11 |     if(strstr(b,c)==NULL){
      |                 ^
      |                 |
      |                 char
Language: C++

#include<cstdio>
#include<<cstring>

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


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

#include<cstdio>
#include<<cstring>

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


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

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

using namespace std;
int main(){
    string s1,s2;
    scanf("%s",s1);
    scanf("%s",s2);
    for(int i = 0;i < s2.length;i++){
        if(s1.find(s2[i])){
            if(i = s2.length() - 1) printf("Yes");
        } else{
            printf("No") break;
        }
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    9 |     for(int i = 0;i < s2.length;i++){
      |                       ~~~^~~~~~
      |                                ()
a.cc:13:25: error: expected ';' before 'break'
   13 |             printf("No") break;
      |                         ^~~~~~
      |                         ;
Language: C++

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

using namespace std;
int main(){
    string s1,s2;
    scanf("%s",s1);
    scanf("%s",s2);
    for(int i = 0;i < s2.length();i++){
        if(s1.find(s2[i])){
            if(i = s2.length() - 1) printf("Yes");
        } else{
            printf("No") break;
        }
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expected ';' before 'break'
   13 |             printf("No") break;
      |                         ^~~~~~
      |                         ;
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
#include<string>
#include<string.h>
using namespace std;
int main(){
    char str1[100],str2[100],str3[300];
    scanf("%s %s",str1,str2);
    str3 +=str1;
    if(strstr(str3,str2)==NULL){
        printf("No\n");
    }else{
        printf("Yes\n");
    }
    return 0;
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: invalid operands of types 'char [300]' and 'char*' to binary 'operator+'
   10 |     str3 +=str1;
      |     ~~~~~^~~~~~
a.cc:10:10: note:   in evaluation of 'operator+=(char [300], char*)'
Language: C++

#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
int main(){
    char s, p;
    scanf("%s %s", s, p);
    c = s+s
    if(strstr(c,p)==NULL){
        printf("No\n");
    }
    else printf("Yes\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'c' was not declared in this scope
    8 |     c = s+s
      |     ^
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else printf("Yes\n");
      |     ^~~~
Language: C++

#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
int main(){
    char s, p, c;
    scanf("%s %s", s, p);
    c = s+s
    if(strstr(c,p)==NULL){
        printf("No\n");
    }
    else printf("Yes\n");
    return 0;
}


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

#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
int main(){
    char s, p, c;
    scanf("%s %s", s, p);
    c = s+s
    if(strstr(c,p)==NULL){
        printf("No\n");
    }else printf("Yes\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'if'
    8 |     c = s+s
      |            ^
      |            ;
    9 |     if(strstr(c,p)==NULL){
      |     ~~      
a.cc:11:6: error: 'else' without a previous 'if'
   11 |     }else printf("Yes\n");
      |      ^~~~
Language: C++

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

using namespace std;
int main(){
    string s1,s2;
    getline(cin,s1);
    getline(cin,s2);
    for(int i = 0;i < s2.length();i++){
        if(s1.find(s2[i])){
            if(i = s2.length() - 1) printf("Yes");
        } else{
            printf("No");
            break;
        }
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'cin' was not declared in this scope
    7 |     getline(cin,s1);
      |             ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 |
Language: C++

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

using namespace std;
int main(){
    string s1,s2;
    cin >> s1;
    cin >> s2;
    for(int i = 0;i < s2.length();i++){
        if(s1.find(s2[i])){
            if(i = s2.length() - 1) printf("Yes"\n);
        } else{
            printf("No"\n);
            break;
        }
    }
    
}


Compiler output:
a.cc:12:49: error: stray '\' in program
   12 |             if(i = s2.length() - 1) printf("Yes"\n);
      |                                                 ^
a.cc:14:24: error: stray '\' in program
   14 |             printf("No"\n);
      |                        ^
a.cc: In function 'int main()':
a.cc:12:49: error: expected ')' before 'n'
   12 |             if(i = s2.length() - 1) printf("Yes"\n);
      |                                           ~     ^~
      |                                                 )
a.cc:14:24: error: expected ')' before 'n'
   14 |             printf("No"\n);
      |                   ~    ^~
      |                        )
Language: C++

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

using namespace std;
int main(){
    string s1,s2;
    cin >> s1;
    cin >> s2;
    for(int i = 0;i < s2.length();i++){
        if(s1.find(s2[i])){
            s2[i] = '';
            if(i = s2.length() - 1) printf("Yes\n");
        } else{
            printf("No\n");
            break;
        }
    }
    
}


Compiler output:
a.cc:12:21: error: empty character constant
   12 |             s2[i] = '';
      |                     ^~
Language: C++

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

using namespace std;
int main(){
    string s1,s2;
    cin >> s1;
    cin >> s2;
    for(int i = 0;i < s2.length();i++){
        if(s1.find(s2[i])){
            s2[i] = null;
            if(i = s2.length() - 1) printf("Yes\n");
        } else{
            printf("No\n");
            break;
        }
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'null' was not declared in this scope
   12 |             s2[i] = null;
      |                     ^~~~
Language: C++

#include<cstdio>
#include<cstring>
#include<iostream>
using namespace std;
int main(){
    char s, p, c;
    scanf("%s %s", s, p);
    c = s+s;
    if(strstr(c,p)==NULL){
        printf("No\n");
    }else printf("Yes\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: no matching function for call to 'strstr(char&, char&)'
    9 |     if(strstr(c,p)==NULL){
      |        ~~~~~~^~~~~
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)' (near match)
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:14: note:   conversion of argument 2 would be ill-formed:
a.cc:9:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    9 |     if(strstr(c,p)==NULL){
      |                 ^
      |                 |
      |                 char
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)' (near match)
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:20: note:   conversion of argument 2 would be ill-formed:
a.cc:9:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    9 |     if(strstr(c,p)==NULL){
      |                 ^
      |                 |
      |                 char
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
#include<cstring>
#include<string>
#include<string.h>
using namespace std;
int main(){
    char str1,str2,str3;
    scanf("%s %s",str1,str2);
    str3 = str1;
    strcat(str3,str1);
    if(strstr(str3,str2)==NULL){
        printf("No\n");
    }else{
        printf("Yes\n");
    }
    return 0;
    
}




Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   12 |     strcat(str3,str1);
      |            ^~~~
      |            |
      |            char
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:4:
/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:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   12 |     strcat(str3,str1);
      |                 ^~~~
      |                 |
      |                 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:13:14: error: no matching function for call to 'strstr(char&, char&)'
   13 |     if(strstr(str3,str2)==NULL){
      |        ~~~~~~^~~~~~~~~~~
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)' (near match)
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:14: note:   conversion of argument 2 would be ill-formed:
a.cc:13:20: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   13 |     if(strstr(str3,str2)==NULL){
      |                    ^~~~
      |                    |
      |                    char
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)' (near match)
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:20: note:   conversion of argument 2 would be ill-formed:
a.cc:13:20: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   13 |     if(strstr(str3,str2)==NULL){
      |                    ^~~~
      |                    |
      |                    char
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
#include<cstring>
#include<string>
#include<string.h>
using namespace std;
int main(){
    char str1,str2,str3;
    scanf("%s %s",str1,str2);
    str3 = str1;
    strcat(str3,str1);
    if(strstr(str3,str2)!=NULL){
        printf("No\n");
    }else{
        printf("Yes\n");
    }
    return 0;
    
}




Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   12 |     strcat(str3,str1);
      |            ^~~~
      |            |
      |            char
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:4:
/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:17: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   12 |     strcat(str3,str1);
      |                 ^~~~
      |                 |
      |                 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:13:14: error: no matching function for call to 'strstr(char&, char&)'
   13 |     if(strstr(str3,str2)!=NULL){
      |        ~~~~~~^~~~~~~~~~~
/usr/include/string.h:330:14: note: candidate: 'char* strstr(char*, const char*)' (near match)
  330 | extern char *strstr (char *__haystack, const char *__needle)
      |              ^~~~~~
/usr/include/string.h:330:14: note:   conversion of argument 2 would be ill-formed:
a.cc:13:20: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   13 |     if(strstr(str3,str2)!=NULL){
      |                    ^~~~
      |                    |
      |                    char
/usr/include/string.h:332:20: note: candidate: 'const char* strstr(const char*, const char*)' (near match)
  332 | extern const char *strstr (const char *__haystack, const char *__needle)
      |                    ^~~~~~
/usr/include/string.h:332:20: note:   conversion of argument 2 would be ill-formed:
a.cc:13:20: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   13 |     if(strstr(str3,str2)!=NULL){
      |                    ^~~~
      |                    |
      |                    char
Language: C++

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

using namespace std;
int main(){
    string s1,s2;
    cin >> s1;
    cin >> s2;
    for(int i = 0;i < s2.length();i++){
        if(s1.find(s2[i])){
            s2[i] = "1";
            if(i = s2.length() - 1) printf("Yes\n");
        } else{
            printf("No\n");
            break;
        }
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   12 |             s2[i] = "1";
      |                     ^~~
      |                     |
      |                     const char*
Language: C++

#include<iostream>
#include<cctype>
#include<cstdio>
#include<cstring>
#include<string>
#include<string.h>
using namespace std;
int main(){
    string str1,str2,str3;
    scanf("%s %s",str1,str2);
    str3 = str1;
    strcat(str3,str1);
    if(strstr(str3,str2)==NULL){
        printf("No\n");
    }else{
        printf("Yes\n");
    }
    return 0;
    
}




Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   12 |     strcat(str3,str1);
      |            ^~~~
      |            |
      |            std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:4:
/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:13:14: error: no matching function for call to 'strstr(std::string&, std::string&)'
   13 |     if(strstr(str3,str2)==NULL){
      |        ~~~~~~^~~~~~~~~~~
/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>
#include<cctype>
#include<cstdio>
#include<cstring>
#include<string>
#include<string.h>
using namespace std;
int main(){
    char str1[1000],str2[1000],str3[1000];
    scanf("%s %s",str1,str2);
    str3 = str1;
    strcat(str3,str1);
    if(strstr(str3,str2)==NULL){
        printf("No\n");
    }else{
        printf("Yes\n");
    }
    return 0;
    
}




Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: invalid array assignment
   11 |     str3 = str1;
      |     ~~~~~^~~~~~
Language: C++

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

using namespace std;
int main(){
    string s1,s2;
    cin >> s1;
    cin >> s2;
        if(s1.find(s2[i])){
            printf("Yes\n");
        } else{
            printf("No\n");
        }
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: 'i' was not declared in this scope
   10 |         if(s1.find(s2[i])){
      |                       ^
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

using namespace std;
int main(){
    string s1,s2;
    cin >> s1;
    cin >> s2;
    if(s1.find(s2[i])){
        printf("Yes\n");
    } else{
        printf("No\n");
    }
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'i' was not declared in this scope
   10 |     if(s1.find(s2[i])){
      |                   ^
Language: C++

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

using namespace std;
int main(){
    string s,p;
    cin >> s;
    cin >> p;
    s = s + s
    if(s.find(p)){
        printf("Yes\n");
    } else{
        printf("No\n");
    }
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'if'
   10 |     s = s + s
      |              ^
      |              ;
   11 |     if(s.find(p)){
      |     ~~        
a.cc:13:7: error: 'else' without a previous 'if'
   13 |     } else{
      |       ^~~~
Language: C++

#include<iostream>
#include<cstring>
#include<stdio.h>
using namespace std;
int main() {
    
    char str1[100], str2[100];

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

    if ( strstr(str1, str2) == NULL ) {
        
        printf("No\n");

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ';' before 'if'
   11 |     strcat(str1, str1)
      |                       ^
      |                       ;
   12 | 
   13 |     if ( strstr(str1, str2) == NULL ) {
      |     ~~                 
a.cc:17:7: error: 'else' without a previous 'if'
   17 |     } else {
      |       ^~~~
Language: C++

#include<iostream>
#include<cstring>
#include<stdio.h>
using namespace std;
int main() {
    
    char str1[100], str2[100], str3[100];

    scanf("%s %s", str1, str2);
    
    str3 = str1
    
    strcat(str1, str3);

    if ( strstr(str1, str2) == NULL ) {
        
        printf("No\n");

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: invalid array assignment
   11 |     str3 = str1
      |     ~~~~~^~~~~~
Language: C++

#include<iostream>
#include<cstring>
#include<stdio.h>
using namespace std;
int main() {
    
    char str1[100], str2[100], str3[100];

    scanf("%s %s", str1, str2);
    
    str3 = str1;
    
    strcat(str1, str3);

    if ( strstr(str1, str2) == NULL ) {
        
        printf("No\n");

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: invalid array assignment
   11 |     str3 = str1;
      |     ~~~~~^~~~~~
Language: C++

#include<cstdio>
#include<cctype>
#include<string>
using namespace std;
int main(){
    char x[100];
    char y[100];
    scanf("%s",&x);
    scanf("%s",&y);
    for(int i=0;i<=100;i++){
        for(int a=0;a<=100;a++){
            if(x[i]==y[i]) erase
        }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: 'erase' was not declared in this scope
   12 |             if(x[i]==y[i]) erase
      |                            ^~~~~
Language: C++

#include<iostream>
#include<cstring>
#include<stdio.h>
using namespace std;
int main() {
    
    char str1[500], str2[501], str3[501];

    scanf("%s %s", str1, str2);
    
    strcat(str1, str1);
    
    count1 = str1.length();
    
    count2 = str2.length();

    for (int i = 0; i <= count1 - count2 + 1; i ++) {
        
        char str = str1.substr(i,count2);
        
        if (str == str2) {
            
            cout << 'Yes' << endl;
        
        } else {
            
            cout << 'No' << endl;
            
        }
    }
    
    return 0;
}




Compiler output:
a.cc:23:21: warning: multi-character character constant [-Wmultichar]
   23 |             cout << 'Yes' << endl;
      |                     ^~~~~
a.cc:27:21: warning: multi-character character constant [-Wmultichar]
   27 |             cout << 'No' << endl;
      |                     ^~~~
a.cc: In function 'int main()':
a.cc:13:5: error: 'count1' was not declared in this scope
   13 |     count1 = str1.length();
      |     ^~~~~~
a.cc:13:19: error: request for member 'length' in 'str1', which is of non-class type 'char [500]'
   13 |     count1 = str1.length();
      |                   ^~~~~~
a.cc:15:5: error: 'count2' was not declared in this scope
   15 |     count2 = str2.length();
      |     ^~~~~~
a.cc:15:19: error: request for member 'length' in 'str2', which is of non-class type 'char [501]'
   15 |     count2 = str2.length();
      |                   ^~~~~~
a.cc:19:25: error: request for member 'substr' in 'str1', which is of non-class type 'char [500]'
   19 |         char str = str1.substr(i,count2);
      |                         ^~~~~~
a.cc:21:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         if (str == str2) {
      |             ~~~~^~~~~~~
Language: C++

#include<iostream>
#include<cstring>
#include<stdio.h>
using namespace std;
int main() {
    
    char str1[500], str2[501], str3[501];

    scanf("%s %s", str1, str2);
    
    strcat(str1, str1);
    
    int count1 = str1.length();
    
    int count2 = str2.length();

    for (int i = 0; i <= count1 - count2 + 1; i ++) {
        
        char str = str1.substr(i,count2);
        
        if (str == str2) {
            
            cout << 'Yes' << endl;
        
        } else {
            
            cout << 'No' << endl;
            
        }
    }
    
    return 0;
}




Compiler output:
a.cc:23:21: warning: multi-character character constant [-Wmultichar]
   23 |             cout << 'Yes' << endl;
      |                     ^~~~~
a.cc:27:21: warning: multi-character character constant [-Wmultichar]
   27 |             cout << 'No' << endl;
      |                     ^~~~
a.cc: In function 'int main()':
a.cc:13:23: error: request for member 'length' in 'str1', which is of non-class type 'char [500]'
   13 |     int count1 = str1.length();
      |                       ^~~~~~
a.cc:15:23: error: request for member 'length' in 'str2', which is of non-class type 'char [501]'
   15 |     int count2 = str2.length();
      |                       ^~~~~~
a.cc:19:25: error: request for member 'substr' in 'str1', which is of non-class type 'char [500]'
   19 |         char str = str1.substr(i,count2);
      |                         ^~~~~~
a.cc:21:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         if (str == str2) {
      |             ~~~~^~~~~~~
Language: C++

#include<iostream>
#include<cstring>
#include<stdio.h>
using namespace std;
int main() {
    
    string str1, str2;

    scanf("%s %s", str1, str2);
    
    strcat(str1, str1);
    
    int count1 = str1.length();
    
    int count2 = str2.length();

    for (int i = 0; i <= count1 - count2 + 1; i ++) {
        
        string str = str1.substr(i,count2);
        
        if (str == str2) {
            
            cout << 'Yes' << endl;
        
        } else {
            
            cout << 'No' << endl;
            
        }
    }
    
    return 0;
}




Compiler output:
a.cc:23:21: warning: multi-character character constant [-Wmultichar]
   23 |             cout << 'Yes' << endl;
      |                     ^~~~~
a.cc:27:21: warning: multi-character character constant [-Wmultichar]
   27 |             cout << 'No' << endl;
      |                     ^~~~
a.cc: In function 'int main()':
a.cc:11:12: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   11 |     strcat(str1, str1);
      |            ^~~~
      |            |
      |            std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/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)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include<cstdio>
#include<cstring>
using namespace std;
int main(){
    char str11[100], str2[100], key[100];
    scanf("%c %c", str1, key);
    strcpy(str1, str2);
    strcat(str1, str2);
    if(strstr(key, str1) == NULL) printf("No\n");
    else printf("Yes\n");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'str1' was not declared in this scope; did you mean 'str2'?
    6 |     scanf("%c %c", str1, key);
      |                    ^~~~
      |                    str2
Language: C++

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

innt main(){
   char str1[100], str2[100];

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

   if ( strstr(str1, str2) == NULL ) printf("No\n");
   else printf("Yes\n");
    
    
    return 0;
}


Compiler output:
a.cc:5:1: error: 'innt' does not name a type; did you mean 'int'?
    5 | innt main(){
      | ^~~~
      | int
Language: C++

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

int main(){
   char str1[100], str2[100];

   scanf("%s %s", 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:10:9: error: 'strstr' was not declared in this scope
   10 |    if ( strstr(str1, str2) == NULL ) printf("No\n");
      |         ^~~~~~
a.cc:2:1: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<stdio.h>
Language: C++

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

int main(){
   char str1[100], str2[100];

   scanf("%s %s", 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:10:9: error: 'strstr' was not declared in this scope
   10 |    if ( strstr(str1, str2) == NULL ) {
      |         ^~~~~~
a.cc:2:1: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<stdio.h>
Language: C++

int main(){
    char x;
    int a=0;
    int b=0;
    int c=0;
    char P[100];
    char T[100];
    for(int i=0;i<=100;i++){
        scanf("%c",&x);
        P[i]=x;
    }
    for(int i=0;i<=100;i++){
        scanf("%c",&x);
        T[i]=x;
    }
    for(char s='a';s<='z';s++){
        for(int i=0;i<=100;i++){
            if(P[i]==s) a+=1;
            if(T[i]==s) b+=1
        }
        if(b>a) c+=1
        t=0;
        a=0;
        b=0;
    }
    if(c==0)printf("Yes");
    else printf("NO");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf' was not declared in this scope
    9 |         scanf("%c",&x);
      |         ^~~~~
a.cc:13:9: error: 'scanf' was not declared in this scope
   13 |         scanf("%c",&x);
      |         ^~~~~
a.cc:19:29: error: expected ';' before '}' token
   19 |             if(T[i]==s) b+=1
      |                             ^
      |                             ;
   20 |         }
      |         ~                    
a.cc:21:21: error: expected ';' before 't'
   21 |         if(b>a) c+=1
      |                     ^
      |                     ;
   22 |         t=0;
      |         ~            
a.cc:26:13: error: 'printf' was not declared in this scope
   26 |     if(c==0)printf("Yes");
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:27:10: error: 'printf' was not declared in this scope
   27 |     else printf("NO");
      |          ^~~~~~
a.cc:27:10: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char x;
    int a=0;
    int b=0;
    int c=0;
    char P[100];
    char T[100];
    for(int i=0;i<=100;i++){
        scanf("%c",&x);
        P[i]=x;
    }
    for(int i=0;i<=100;i++){
        scanf("%c",&x);
        T[i]=x;
    }
    for(char s='a';s<='z';s++){
        for(int i=0;i<=100;i++){
            if(P[i]==s) a+=1;
            if(T[i]==s) b+=1
        }
        if(b>a) c+=1
        t=0;
        a=0;
        b=0;
    }
    if(c==0)printf("Yes");
    else printf("NO");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:29: error: expected ';' before '}' token
   22 |             if(T[i]==s) b+=1
      |                             ^
      |                             ;
   23 |         }
      |         ~                    
a.cc:24:21: error: expected ';' before 't'
   24 |         if(b>a) c+=1
      |                     ^
      |                     ;
   25 |         t=0;
      |         ~
Language: C++

#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char x;
    int a=0;
    int b=0;
    int c=0;
    char P[100];
    char T[100];
    for(int i=0;i<=100;i++){
        scanf("%c",&x);
        P[i]=x;
    }
    for(int i=0;i<=100;i++){
        scanf("%c",&x);
        T[i]=x;
    }
    for(char s='a';s<='z';s++){
        for(int i=0;i<=100;i++){
            if(P[i]==s) a+=1;
            if(T[i]==s) b+=1
        }
        if(b>a) c+=1;
        t=0;
        a=0;
        b=0;
    }
    if(c==0)printf("Yes");
    else printf("NO");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:29: error: expected ';' before '}' token
   22 |             if(T[i]==s) b+=1
      |                             ^
      |                             ;
   23 |         }
      |         ~                    
a.cc:25:9: error: 't' was not declared in this scope
   25 |         t=0;
      |         ^
Language: C++

#include<cstdio>
#include<cctype>
using namespace std;
int main(){
    char x;
    int a=0;
    int b=0;
    int c=0;
    char P[100];
    char T[100];
    for(int i=0;i<=100;i++){
        scanf("%c",&x);
        P[i]=x;
    }
    for(int i=0;i<=100;i++){
        scanf("%c",&x);
        T[i]=x;
    }
    for(char s='a';s<='z';s++){
        for(int i=0;i<=100;i++){
            if(P[i]==s) a+=1;
            if(T[i]==s) b+=1
        }
        if(b>a) c+=1;
        a=0;
        b=0;
    }
    if(c==0)printf("Yes");
    else printf("NO");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:29: error: expected ';' before '}' token
   22 |             if(T[i]==s) b+=1
      |                             ^
      |                             ;
   23 |         }
      |         ~