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

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

using namespace std;

int main(void){
	string A,B;
	cin >> A;
	cin >> B;
	int flag = 0;
	if(A.size() != B.size()) flag = 1;
	int s = A.size();
	int n,i;
	int flg[s] = {0};
	if(flag == 0){
		for(n=0;n<s;n++){
			for(i=0;i<s;i++){
				if(A[i] != B[(i+n)%s]) flg[n] = 1; 
			}
		}
	}
	int count = 0;
	for(i=0;i<s;i++){
		if(flg[i] == 1) count++;
	}
	if(count != s) cout << "Yes" << endl;
	else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> A;
      |         ^~~
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 | 
a.cc:26:24: error: 'cout' was not declared in this scope
   26 |         if(count != s) cout << "Yes" << endl;
      |                        ^~~~
a.cc:26:24: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:41: error: 'endl' was not declared in this scope
   26 |         if(count != s) cout << "Yes" << endl;
      |                                         ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <string>
  +++ |+#include <ostream>
    3 | 
a.cc:27:14: error: 'cout' was not declared in this scope
   27 |         else cout << "No" << endl;
      |              ^~~~
a.cc:27:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:30: error: 'endl' was not declared in this scope
   27 |         else cout << "No" << endl;
      |                              ^~~~
a.cc:27:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
 
int main(){
string S,T;
bool yes=false;
cin >> S >> T;
 
for(int i=0;i<S.size();i++){
S.rotate(S.begin(),S.end()-1,S.end());
if(S==T)yes = true;
}
 
if(yes)cout << "Yes";else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'rotate'
   12 | S.rotate(S.begin(),S.end()-1,S.end());
      |   ^~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main(){
string S,T;
bool yes=false;
cin >> S >> T;
 
for(int i=0;i<S.size();i++){
S.rotate(S.begin(),S.end()-1,S.end());
if(S==T)yes = true;
}
 
if(yes)cout << "Yes";else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'rotate'
   11 | S.rotate(S.begin(),S.end()-1,S.end());
      |   ^~~~~~
Language: C++

#include <string>
using namespace std;

int main(){
string S,T;
bool yes=false;
cin >> S >> T;

for(int i=0;i<S.size();i++){
S.rotate(S.begin(),S.end()-1,S.end());
if(S==T)yes = true;
}

if(yes)cout << "Yes";else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin >> S >> T;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:10:3: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'rotate'
   10 | S.rotate(S.begin(),S.end()-1,S.end());
      |   ^~~~~~
a.cc:14:8: error: 'cout' was not declared in this scope
   14 | if(yes)cout << "Yes";else cout << "No";
      |        ^~~~
a.cc:14:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:27: error: 'cout' was not declared in this scope
   14 | if(yes)cout << "Yes";else cout << "No";
      |                           ^~~~
a.cc:14:27: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <vector>
using namespace std;
//右に回す
string rot(string S) {
  string T(S.size);
  T + S.at(S.size());
  for (int i = 0; i < S.size()-1; i++) {
    T + S.at(i);
  }
  return T;
}

 int main(){
   string S,P;
   cin >> S >> P;
   string U;
   bool b = false;
   
   for (int j = 0; j < S.size(); j++) {
   	 U = rot(S);
     if (U == P) {
       b = true;
     }
   }
   
   if (b) {
     cout << "Yes" << endl;
   }
   else {
     cout << "No" << endl;
   }
 }
     
     
     
     
   

Compiler output:
a.cc: In function 'std::string rot(std::string)':
a.cc:6:14: error: invalid use of non-static 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]'
    6 |   string T(S.size);
      |            ~~^~~~
In file included from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1076:7: note: declared here
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
a.cc:7:20: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
    7 |   T + S.at(S.size());
      |                    ^
/usr/include/c++/14/bits/basic_string.h:3670:5: note: declared here
 3670 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
      |     ^~~~~~~~
a.cc:9:15: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
    9 |     T + S.at(i);
      |               ^
/usr/include/c++/14/bits/basic_string.h:3670:5: note: declared here
 3670 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
      |     ^~~~~~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
//右に回す
string rot(string S) {
  string T;
  T + S.at(S.size())
  for (int i = 0; i < S.size()-1; i++) {
    T + S.at(i);
  }
  return T;
}

 int main(){
   string S,T;
   cin >> S >> T;
   string U;
   bool j = false;
   
   for (int i = 0; i < S.size(); i++) {
   	 U = rot(S);
     if (U == T) {
       j = true;
     }
   }
   
   if (j) {
     cout << "Yes" << endl;
   }
   else {
     cout << "No" << endl;
   }
 }
     
     
     
     
   

Compiler output:
a.cc: In function 'std::string rot(std::string)':
a.cc:7:21: error: expected ';' before 'for'
    7 |   T + S.at(S.size())
      |                     ^
      |                     ;
    8 |   for (int i = 0; i < S.size()-1; i++) {
      |   ~~~                
a.cc:7:20: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
    7 |   T + S.at(S.size())
      |                    ^
In file included from /usr/include/c++/14/string:54,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3670:5: note: declared here
 3670 |     operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs)
      |     ^~~~~~~~
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   for (int i = 0; i < S.size()-1; i++) {
      |                   ^
Language: C++

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

int main()
{
	string s, t;
	cin >> s >> t;
	bool ans = false;
	for (int i = 0; i < s.length(); i++) {
		if (s == t)
			ans = true;
		s = s.back() + s.substr(0, s.length() - 1);
	}
	if (ans)
		cout << "Yes" << endl;
	else
		cout << 

Compiler output:
a.cc: In function 'int main()':
a.cc:18:24: error: expected primary-expression at end of input
   18 |                 cout <<
      |                        ^
a.cc:18:24: error: expected '}' at end of input
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  string a,b; cin>>a>>b;
  int n=a.length();int k=0;
  while(k<n&&a!=b){
    for(int i=0;i<n;i++){
      b[i]=a[(i+1)%n];}
    k++;}
  if(k<n){cout<<"Yes";}
  esle{cout<<"No";}
}
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'esle' was not declared in this scope
   12 |   esle{cout<<"No";}
      |   ^~~~
Language: C

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

char rotate(char s[]){
  int len = strlen(s);
  char t[len];
  
  int i,j = 1;
  for(i = 0; i < len; i++){
    t[j] == s[i];
    j++;
  }
  t[len - 1] == s[0];
  
  return t[len];
}

int main(){
  
  char S[20],T[20];
  int i = 0;
 
  while(S[i] != '\0'){
    scanf("%c",&S[i]);
    i++;
  }
  
  i = 0;
  while(T[i] != '\0'){
    scanf("%c",&T[i]);
    i++;
  }
 
  int j,len = strlen(S);
  for(j = 0; i < len; i++){
    if(S == T){
      printf("Yes");
      return 0;
    }
    S[] = rotate(S[]);
  }
  
  printf("No");
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:40:7: error: expected expression before ']' token
   40 |     S[] = rotate(S[]);
      |       ^
Language: C++

#include <bits/stdc++.h>

using namespace std ;

long long a [ 200001 ] , c , d , e , f , g , h , k , l , m , n ;

int mn = 1e9 ;

int mx = -1e9 , x ;

string s , t ;

int main ()
{
    cin >> s >> t ;
    s1 = s ;
    sort ( s1 . begin ( ) , s1 . end ( ) ) ;
    if ( s1 == t ){
        cout << "Yes" ;
        return 0 ;
    }
    for ( int i = 1 ; i <= s . size () ; ++ i ){
        for ( int j = i ; j < s . size () ; ++ j ){
            s2 [ j ] = s [ j - i ] ;
        }
        for ( int j = 0 ; j < i ; ++ j ){
            s2 [ j ] = s [ s . size () - i + j ] ;
        }
        if ( s2 == t ){
            cout << "Yes" ;
            return 0 ;
         }
    }
    cout << "No" ;
    return 0 ;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 's1' was not declared in this scope; did you mean 'y1'?
   16 |     s1 = s ;
      |     ^~
      |     y1
a.cc:24:13: error: 's2' was not declared in this scope; did you mean 's'?
   24 |             s2 [ j ] = s [ j - i ] ;
      |             ^~
      |             s
a.cc:27:13: error: 's2' was not declared in this scope; did you mean 's'?
   27 |             s2 [ j ] = s [ s . size () - i + j ] ;
      |             ^~
      |             s
a.cc:29:14: error: 's2' was not declared in this scope; did you mean 's'?
   29 |         if ( s2 == t ){
      |              ^~
      |              s
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
void operate(char a[])
{
	int len=strlen(a);
	char temp=a[len-1];
	int i;
	for(i=len-2;i>=0;i--)
	{
		a[i+1]=a[i];
	}
	a[0]=temp;
	return;
}
int main()
{
	char a[101],b[101];
	gets(a);gets(b);
	int i;
	int len=strlen(a);
	for(i=0;i<=len;i++)
	{
		if(!strcmp(a,b)) {cout<<"Yes"<<endl; return 0;}
		operate(a);
	}
	cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   19 |         gets(a);gets(b);
      |         ^~~~
      |         getw
Language: C

#include<stdio.h>
int main()
{
	int i,j,k,temp,S,T,count=0;
	char s[100],t[100];
	scanf("%s %s",&s,&t);
	S = strlen(s);
	T = strlen(t);
	if(2<=S && S<=100A && S==T){
		for(k=0;k<=S-1;k++){
			count=0;
			for(i=0;i<=S-2;i++){
				temp=s[0];
				s[i]=s[i+1];
				s[S-1]=temp;
			}
			for(j=0;j<=S-1;j++){
				if(s[j]==t[j])count++;
			}
			if(count==S)break;
		}
	}
	printf(count==S?"Yes":"No");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    7 |         S = strlen(s);
      |             ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main()
main.c:7:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    7 |         S = strlen(s);
      |             ^~~~~~
main.c:7:13: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:9:23: error: invalid suffix "A" on integer constant
    9 |         if(2<=S && S<=100A && S==T){
      |                       ^~~~
Language: C

#include <stdio.h>

#define N 100
char*change(char x[],int max)
{
  int i;
  char s[N];
  s[0]=x[max-1];
  for(i=0;i<max-1;i++){
    s[i+1]=x[i];
  }
  return s;
}

int main(void)
{
  int i,j,max;
  char s[N],t[N];
  for(i=0;i<N;i++){
    scanf("%s",s[i]);
    if(s[i]==NULL){
      max=i;
    break;
    }
  }
  for(i=0;i<max+1;i++){
    scanf("%s",t[i]);
  }
  for(i=0;i<max+1;i++){
    s=change(s,max);
    t=change(t,max+1);
  	for(j=0;j<max;j++){
    	if(s[j]!=t[j]){
      		break;
    	}
      	if(i==max-1){
          printf("Yes");
          return 0;
        }
     }
  }
  printf("No");
  return 0;
}

Compiler output:
main.c: In function 'change':
main.c:12:10: warning: function returns address of local variable [-Wreturn-local-addr]
   12 |   return s;
      |          ^
main.c: In function 'main':
main.c:21:12: warning: comparison between pointer and integer
   21 |     if(s[i]==NULL){
      |            ^~
main.c:30:6: error: assignment to expression with array type
   30 |     s=change(s,max);
      |      ^
main.c:31:6: error: assignment to expression with array type
   31 |     t=change(t,max+1);
      |      ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
char s[105],t[105];
int main()
{
    gets(s);
    gets(t);
    int flag;
    for(int i=0;s[i]!='\0';i++)
    {

        if(t[0]==s[i])
        {
            flag=1;
            int x=i+1;
            for(int j=1;t[j]!='\0';j++)
            {
                if(s[x]=='\0')
                {
                    j--;
                    x=0;
                    continue;
                }
                if(t[j]!=s[x++])
                {
                    flag=0;
                    break;
                }

            }
        }
        if(flag)
                break;
    }
    if(flag==0)
            cout<<"No"<<endl;
        else
            cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include <bits/stdc++.h>
using namespace std;
char rev(char a){
  int b=a.size();
  char d=a.at(0);
  for(int i=1;i<b;i++){
    a.at(i-1)=a.at(i);
  }
  a.at(b-1)=d;
  return a;
}
int main(){
  string s,t;
  cin>>s;
  cin>>t;
  int j=0;
  for(int i=0;i<s.size();i++){
    s=rev(s);
    if(s==t){
      j=1;
      break;
    }
    else
      continue;
  }
  if(j==1){
    cout<<"Yes"<<endl;
  }
  else
    cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'char rev(char)':
a.cc:4:11: error: request for member 'size' in 'a', which is of non-class type 'char'
    4 |   int b=a.size();
      |           ^~~~
a.cc:5:12: error: request for member 'at' in 'a', which is of non-class type 'char'
    5 |   char d=a.at(0);
      |            ^~
a.cc:7:7: error: request for member 'at' in 'a', which is of non-class type 'char'
    7 |     a.at(i-1)=a.at(i);
      |       ^~
a.cc:7:17: error: request for member 'at' in 'a', which is of non-class type 'char'
    7 |     a.at(i-1)=a.at(i);
      |                 ^~
a.cc:9:5: error: request for member 'at' in 'a', which is of non-class type 'char'
    9 |   a.at(b-1)=d;
      |     ^~
a.cc: In function 'int main()':
a.cc:18:11: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char'
   18 |     s=rev(s);
      |           ^
      |           |
      |           std::string {aka std::__cxx11::basic_string<char>}
a.cc:3:15: note:   initializing argument 1 of 'char rev(char)'
    3 | char rev(char a){
      |          ~~~~~^
Language: C++

#include <bits/stdc++.h>
using namespace std;
char rev(string a){
  int b=a.size();
  char d=a.at(0);
  for(int i=1;i<b;i++){
    a.at(i-1)=a.at(i);
  }
  a.at(b-1)=d;
  return a;
}
int main(){
  string s,t;
  cin>>s;
  cin>>t;
  int j=0;
  for(int i=0;i<s.size();i++){
    s=rev(s);
    if(s==t){
      j=1;
      break;
    }
    else
      continue;
  }
  if(j==1){
    cout<<"Yes"<<endl;
  }
  else
    cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'char rev(std::string)':
a.cc:10:10: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in return
   10 |   return a;
      |          ^
      |          |
      |          std::string {aka std::__cxx11::basic_string<char>}
Language: C++

#include <bits/stdc++.h>
using namespace std;
stirng rev(string a){
  int b=a.size();
  char d=a.at(0);
  for(int i=1;i<b;i++){
    a.at(i-1)=a.at(i);
  }
  a.at(b-1)=d;
  return a;
}
int main(){
  string s,t;
  cin>>s;
  cin>>t;
  int j=0;
  for(int i=0;i<s.size();i++){
    s=rev(s);
    if(s==t){
      j=1;
      break;
    }
    else
      continue;
  }
  if(j==1){
    cout<<"Yes"<<endl;
  }
  else
    cout<<"No"<<endl;
}


Compiler output:
a.cc:3:1: error: 'stirng' does not name a type
    3 | stirng rev(string a){
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:18:7: error: 'rev' was not declared in this scope
   18 |     s=rev(s);
      |       ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int rev(string a){
  int b=a.size();
  char d=a.at(0);
  for(int i=1;i<b;i++){
    a.at(i-1)=a.at(i);
  }
  a.at(b-1)=d;
  return a;
}
int main(){
  string s,t;
  cin>>s;
  cin>>t;
  int j=0;
  for(int i=0;i<s.size();i++){
    s=rev(s);
    if(s==t){
      j=1;
      break;
    }
    else
      continue;
  }
  if(j==1){
    cout<<"Yes"<<endl;
  }
  else
    cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int rev(std::string)':
a.cc:10:10: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in return
   10 |   return a;
      |          ^
      |          |
      |          std::string {aka std::__cxx11::basic_string<char>}
Language: C++

s=input()
t=input()
u=s*2
if t in u:
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('Yes')
      |           ^~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     print('No')
      |           ^~~~
a.cc:1:1: error: 's' does not name a type
    1 | s=input()
      | ^
Language: C++

#include <stdio.h>
#include <string.h>
int main()
{
    int i, j, l;
    char s[120], t[120], c;
    gets(s);
    gets(t);
    l=strlen(s);
    for(i=0; i<l; i++)
    {
        if(strcmp(s, t)==0){
            printf("Yes\n");
            return 0;
        }
        c=t[l-1];
        for(j=l-1; j>=0; j--)
        {
            t[j]=t[j-1];
        }
        t[0]=c;
    }
    //printf("%s\n", t);
    printf("No\n");

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(s);
      |     ^~~~
      |     getw
Language: C++


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


int main()
{
   int i,la,lb,n;
   char a[110],b[110],tmp;
   gets(a);
   gets(b);
   la=strlen(a);
   lb=strlen(b);
   n=la;
   if(strcmp(a,b)==0){
    cout<<"Yes"<<endl;
    return 0;
   }
   //cout<<la;
   while(n--){
        tmp=a[la-1];
        for(i=la-2; i>=0; i--){
            a[i+1]=a[i];
        }
        a[0]=tmp;
        //puts(a);
        if(strcmp(a,b)==0){
            cout<<"Yes"<<endl;
            return 0;
        }

   }

    cout<<"No"<<endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:4: error: 'gets' was not declared in this scope; did you mean 'getw'?
   13 |    gets(a);
      |    ^~~~
      |    getw
Language: C

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

int main()
{
	int i, c, b, m,j;
	char s[101], a[101],tm,tem,c;
	
	gets(s);
	gets(a);
	b=strlen(s);
	c=strlen(a);
	if (b!=c){
		printf("No\n");
		return 0;
	}
	if (strcmp(s,a)==0){
		printf("Yes\n");
		return 0;
	}
	
	for (i=2;i<=b+1;i++){
			tem=s[b-1];
			c=s[0];
			for (j=0;j<b-1;j++){
				tm=s[1+j];
				s[j+1]=c;
				c=tm;
			}
			s[0]=tem;
			
			if (strcmp(s,a)==0){
				printf("Yes\n");
				return 0;
			}
			//puts(s);
		}
		printf("No\n");
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:36: error: conflicting types for 'c'; have 'char'
    7 |         char s[101], a[101],tm,tem,c;
      |                                    ^
main.c:6:16: note: previous declaration of 'c' with type 'int'
    6 |         int i, c, b, m,j;
      |                ^
main.c:9:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |         gets(s);
      |         ^~~~
      |         fgets
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <map>
#include <cstring>
using namespace std;

int main()
{
    int t=0;
    map<char,int>maps;
    char a[101];
    char b[101];
    scanf("%s",a);
    for(i=0;i<strlen(a);i++)
        maps[a[i]]=1;
    scanf("%s",b);
    for(i=0;i<strlen(a);i++)
        if(maps[b[i]]!=1)
            t=1;
            if(t)
                printf("N0\n");
            else
                printf("Yes\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'i' was not declared in this scope
   15 |     for(i=0;i<strlen(a);i++)
      |         ^
a.cc:18:9: error: 'i' was not declared in this scope
   18 |     for(i=0;i<strlen(a);i++)
      |         ^
Language: Java

import java.util.*;
public class B103{
    public static void main(String[] args) {
        new Main().run();
    }

    void run() {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int length = a.length();

        String afterA = a;

        for(int i=0; i<length; i++){
            char charA = afterA.charAt(length-1);
            afterA = charA + afterA.substring(0,length-1);
            if(afterA.equals(b)){
                System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}


Compiler output:
Main.java:2: error: class B103 is public, should be declared in a file named B103.java
public class B103{
       ^
Main.java:4: error: cannot access Main
        new Main().run();
            ^
  bad source file: ./Main.java
    file does not contain class Main
    Please remove or make sure it appears in the correct subdirectory of the sourcepath.
2 errors
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args) {
        new Main().run();
    }

    void run() {
        Sccaner sc = new Sccaner(System.in);
        String a = sc.next();
        String b = sc.next();
        int length = a.length();

        String afterA = a;

        for(int i=0; i<length; i++){
            char charA = afterA.charAt(length-1);
            afterA = charA + afterA.substring(0,length-1);
            if(afterA.equals(b)){
                System.out.println("Yes");
                return;
            }
        }

    }
}


Compiler output:
Main.java:8: error: cannot find symbol
        Sccaner sc = new Sccaner(System.in);
        ^
  symbol:   class Sccaner
  location: class Main
Main.java:8: error: cannot find symbol
        Sccaner sc = new Sccaner(System.in);
                         ^
  symbol:   class Sccaner
  location: class Main
2 errors
Language: Java

import java.util.*;
public class B103{
    public static void main(String[] args) {
        new Main().run();
    }

    void run() {
        Sccaner sc = new Sccaner(System.in);
        String a = sc.next();
        String b = sc.next();
        int length = a.length();

        String afterA = a;

        for(int i=0; i<length; i++){
            char charA = afterA.charAt(length-1);
            afterA = charA + afterA.substring(0,length-1);
            if(afterA.equals(b)){
                System.out.println("Yes");
                return;
            }
        }

    }
}


Compiler output:
Main.java:2: error: class B103 is public, should be declared in a file named B103.java
public class B103{
       ^
Main.java:4: error: cannot access Main
        new Main().run();
            ^
  bad source file: ./Main.java
    file does not contain class Main
    Please remove or make sure it appears in the correct subdirectory of the sourcepath.
Main.java:8: error: cannot find symbol
        Sccaner sc = new Sccaner(System.in);
        ^
  symbol:   class Sccaner
  location: class B103
Main.java:8: error: cannot find symbol
        Sccaner sc = new Sccaner(System.in);
                         ^
  symbol:   class Sccaner
  location: class B103
4 errors
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
  string S, T;
  cin >> S >> T;
  bool a = false;
  for(int i = 0; i < S.size(); i++){
    if(S == T){
      a = true;
      break;
    }
    T = T.back() + T.substr(0, T.size() - 1);
  }
  if(a){
    cout << "Yes";
  }else{
    cout << "No";
  }
  return 0;

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

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

int main(){
  string s, t;
  int flag = 0;
  cin >> s >> t;
  for (int i=1; i<s.size(); i++)
    if((s.substr(i) == t.substr(0,t.size()-i) && (s.substr(0,i)==t.substr(t.size()-i)))
       flag = 1;
   cout << (flag?"Yes":"No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:88: error: expected ';' before 'flag'
   10 |     if((s.substr(i) == t.substr(0,t.size()-i) && (s.substr(0,i)==t.substr(t.size()-i)))
      |                                                                                        ^
      |                                                                                        ;
   11 |        flag = 1;
      |        ~~~~                                                                             
a.cc:12:37: error: expected ')' before ';' token
   12 |    cout << (flag?"Yes":"No") << endl;
      |                                     ^
      |                                     )
a.cc:10:7: note: to match this '('
   10 |     if((s.substr(i) == t.substr(0,t.size()-i) && (s.substr(0,i)==t.substr(t.size()-i)))
      |       ^
Language: C++

#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;

int main()
{
  char a[105], b[105];
  int n, i, f, j;
  cin >> a >> b;
  n=strlen(s);
  char r[n+1];

  for(i=0; i<n; i++){
    f=0;
    for(j=0; j<n; j++) {
      if(a[i]==b[(i+j)%n])
	f++;
    }
    if(f=n)
      {  cout << "Yes";
	return 0;
      }
    
  }

  cout << "No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 's' was not declared in this scope
   11 |   n=strlen(s);
      |            ^
Language: C++

#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;

int main()
{
  char s[105], t[105];
  int n, i, f;
  cin >> s >> t;
  n=strlen(s);
  char r[n+1];

  for(i=0; i<n; i++){
    f=0;
    for(j=0; j<n; j++) {
      if(a[i]==b[(i+j)%n])
	f++;
    }
    if(f=n)
      {  cout << "Yes";
	return 0;
      }
    
  }

  cout << "No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'j' was not declared in this scope
   16 |     for(j=0; j<n; j++) {
      |         ^
a.cc:17:10: error: 'a' was not declared in this scope
   17 |       if(a[i]==b[(i+j)%n])
      |          ^
a.cc:17:16: error: 'b' was not declared in this scope
   17 |       if(a[i]==b[(i+j)%n])
      |                ^
Language: C++

#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;

int main()
{
  char s[], t[];
  int n, i, f;
  cin >> s >> t;
  n=strlen(s);
  char r[n+1];

  for(i=0; i<n; i++){
    f=0;
    for(j=0; j<n; j++) {
      if(a[i]==b[(i+j)%n])
	f++;
    }
    if(f=n)
      {  cout << "Yes";
	return 0;
      }
    
  }

  cout << "No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: storage size of 's' isn't known
    8 |   char s[], t[];
      |        ^
a.cc:8:13: error: storage size of 't' isn't known
    8 |   char s[], t[];
      |             ^
a.cc:16:9: error: 'j' was not declared in this scope
   16 |     for(j=0; j<n; j++) {
      |         ^
a.cc:17:10: error: 'a' was not declared in this scope
   17 |       if(a[i]==b[(i+j)%n])
      |          ^
a.cc:17:16: error: 'b' was not declared in this scope
   17 |       if(a[i]==b[(i+j)%n])
      |                ^
Language: C++

#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;

int main()
{
  char s[], t[]
    int n, i, f;
  cin >> s >> t;
  n=strlen(s);
  char r[n+1];

  for(i=0; i<n; i++){
    f=0;
    for(j=0; j<n; j++) {
      if(a[i]==b[(i+j)%n])
	f++;
    }
    if(f=n)
      {  cout << "Yes";
	return 0;
      }
    
  }

  cout << "No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: storage size of 's' isn't known
    8 |   char s[], t[]
      |        ^
a.cc:9:5: error: expected initializer before 'int'
    9 |     int n, i, f;
      |     ^~~
a.cc:10:15: error: 't' was not declared in this scope; did you mean 'tm'?
   10 |   cin >> s >> t;
      |               ^
      |               tm
a.cc:11:3: error: 'n' was not declared in this scope; did you mean 'yn'?
   11 |   n=strlen(s);
      |   ^
      |   yn
a.cc:14:7: error: 'i' was not declared in this scope
   14 |   for(i=0; i<n; i++){
      |       ^
a.cc:15:5: error: 'f' was not declared in this scope
   15 |     f=0;
      |     ^
a.cc:16:9: error: 'j' was not declared in this scope; did you mean 'jn'?
   16 |     for(j=0; j<n; j++) {
      |         ^
      |         jn
a.cc:17:10: error: 'a' was not declared in this scope
   17 |       if(a[i]==b[(i+j)%n])
      |          ^
a.cc:17:16: error: 'b' was not declared in this scope
   17 |       if(a[i]==b[(i+j)%n])
      |                ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int c,i;
  char a[101],b[101];
  cin >> a >> b;
  for(i=0;i<a.size();i++){
    if(a==b){
      c=1;break;
  }
    a = a.back() + a.substr(0,a.size()-1);
}
  if(c==1) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: request for member 'size' in 'a', which is of non-class type 'char [101]'
    7 |   for(i=0;i<a.size();i++){
      |               ^~~~
a.cc:11:11: error: request for member 'back' in 'a', which is of non-class type 'char [101]'
   11 |     a = a.back() + a.substr(0,a.size()-1);
      |           ^~~~
a.cc:11:22: error: request for member 'substr' in 'a', which is of non-class type 'char [101]'
   11 |     a = a.back() + a.substr(0,a.size()-1);
      |                      ^~~~~~
a.cc:11:33: error: request for member 'size' in 'a', which is of non-class type 'char [101]'
   11 |     a = a.back() + a.substr(0,a.size()-1);
      |                                 ^~~~
Language: Java

import java.util.*;

public class Begin103{
    public static void main (String[] args){
        Scanner scan = new Scanner(System.in);
//
        String str1 = scan.nextLine();
        String str2 = scan.nextLine();
        if(str1.length() != str2.length()){
            System.out.println("error");
            return;
        }
        if(str1.length() == 1){
            if(str1.equals(str2)){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }            
            return;
        }
//
        String[] strArry1 = new String[str1.length()];
        String[] strArry2 = new String[str2.length()];
//
        setArray(strArry1, str1);
        setArray(strArry2, str2);
//
        String[] wstrArry = new String[str1.length()];
            for (int i = 0; i < strArry1.length; i++){
                cnvArry(wstrArry,strArry1);
                if(comp(wstrArry,strArry2) == 0){
                    System.out.println("Yes");
                    return;
                }
            }            
            System.out.println("No");
            return;
    }
/*
    split strings
*/
    public static void setArray(String[] array, String str){
        for (int i = 0; i < array.length; i++){
            array[i] = String.valueOf(str.charAt(i));
        }
    }
/*
    compare strings
*/
    public static int comp(String[] wstrArry, String[] strArry2){
        for (int i = 0; i < wstrArry.length; i++){
            if(wstrArry[i].equals(strArry2[i])){
                continue;
            }else{                
                return 1;
            }
        }
        return 0;        
    }
/*
    convert
*/
    public static void cnvArry(String[] wstrArry, String[] strArry1){
        wstrArry[0] = strArry1[strArry1.length - 1];
        System.out.println(wstrArry[0]);
        for (int j = 0; j < strArry1.length-1; j++){
            wstrArry[j+1] = strArry1[j];
        }
//
        for (int k = 0; k < strArry1.length; k++){
            strArry1[k] = wstrArry[k];
        }
    }
}

Compiler output:
Main.java:3: error: class Begin103 is public, should be declared in a file named Begin103.java
public class Begin103{
       ^
1 error
Language: C++

#include<iostream>
using namespace std;

int main(){
 string A, B;
 int flag;
 cin >> A >> B;
 for (int i = 0; i < A.size; i++){
  flag = 0;
  for(int t = 0; t < A.size; t++){
   if(A[t] != B[(t+i)%A.size]){
    flag =1;
    break;
   } 
  }
 if(flag == 0)
  break;
 }
 if(flag == 0) cout << "Yes";
 else cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: 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 '()' ?)
    8 |  for (int i = 0; i < A.size; i++){
      |                      ~~^~~~
      |                            ()
a.cc:10:24: 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 '()' ?)
   10 |   for(int t = 0; t < A.size; t++){
      |                      ~~^~~~
      |                            ()
a.cc:11:25: 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 '()' ?)
   11 |    if(A[t] != B[(t+i)%A.size]){
      |                       ~~^~~~
      |                             ()
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string S,T;
  cin>>S>>T;
  int L=S.size();
  for(int i=0;i<L;i++){
    string s;
    for(int j=0;j<N;j++){
      s=s+S[(i+j>=L?i+j-L:i+j)];
    }
    if(s==T){
      cout<<"Yes"<<endl;
      return 0;
    }
  }
  cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'N' was not declared in this scope
    9 |     for(int j=0;j<N;j++){
      |                   ^
Language: C++

#include "bits/stdc++.h"
#define rep(i,a,n) for(int i=a;i<(int)(n);i++)
using namespace std;
int main(){
  string s,t;
  cin>>s>>t;
  int n=int(s,size());
  rep(i,0,2*n){
    s=s[n-1]+s.substr(0,n-1);
    if(s==t){
      cout<<"Yes"<<endl;
        return 0;
    }
  }
  cout<<"No"<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: no matching function for call to 'size()'
    7 |   int n=int(s,size());
      |               ~~~~^~
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:262:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  262 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:262:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:272:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  272 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/14/bits/range_access.h:272:5: note:   candidate expects 1 argument, 0 provided
a.cc:7:21: error: expression list treated as compound expression in functional cast [-fpermissive]
    7 |   int n=int(s,size());
      |                     ^
Language: Java

import java.util. *;
public class B103b {
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	String ans = "No";
	String s = sc.next();
	String t = sc.next();
	t += t;
	if(t.contains(s)) ans = "Yes";
	System.out.println(ans);
    }
}


Compiler output:
Main.java:2: error: class B103b is public, should be declared in a file named B103b.java
public class B103b {
       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
string s1, s2;
int main()
{
    cin >> s1 >> s2;
    for(int i = 0; i < s1.length(); i++)
    {
        for(int j = 0; j < s2.length(); j++)
        {
            if(s1.substr(i, s1.length()-i) == s2.substr(j, s2.length()-j) &&
               s1.substr(0, i) == s2.substr(0, j)
                {
cout << "Yes" << "\n";
return 0;
                }
        }
    }
cout << "No" << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:50: error: expected ')' before '{' token
   12 |                s1.substr(0, i) == s2.substr(0, j)
      |                                                  ^
      |                                                  )
   13 |                 {
      |                 ~                                 
a.cc:11:15: note: to match this '('
   11 |             if(s1.substr(i, s1.length()-i) == s2.substr(j, s2.length()-j) &&
      |               ^
a.cc:17:9: error: expected primary-expression before '}' token
   17 |         }
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
char s[101],t[101];
int i,j,siz,c;
  scanf("%s %s",s,t);
  for(i=0;s[i]!='\0';i++);
  siz=i;
  c=siz-1
  for(i=0;i<siz;i++){
  for(j=siz-1-i;j>-1-i;j--){
  if(j>=0){if(s[j]!=t[c])break;}
  else{if(s[siz+j]!=t[c])break;}
    c--;
  }
    if(j==-1-i)break;
    c=siz-1;
  }
  if(i==siz)printf("No");
  else printf("Yes");
  return 0;
 
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected ';' before 'for'
    9 |   c=siz-1
      |          ^
      |          ;
   10 |   for(i=0;i<siz;i++){
      |   ~~~     
a.cc:10:20: error: expected ';' before ')' token
   10 |   for(i=0;i<siz;i++){
      |                    ^
      |                    ;
Language: Java

import java.util.*;

public class Main{
  public static void main{
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String t = sc.next();

    s += s;

    if(s.contains(t)){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:4: error: '(' expected
  public static void main{
                         ^
1 error
Language: Java

import java.util.*

public class Main{
  public static void main{
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String t = sc.next();

    s += s;

    if(s.contains(t)){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:4: error: '(' expected
  public static void main{
                         ^
2 errors
Language: C++

#include "bits/stdc++.h"
//#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
int main(){
  string S,T,Ans;
  cin>>S>>T;
  int Mozi=sizeof(S)/sizeof(string);
  rep(i,Mozi){
    if(S[0]==T[i]){
      rep(j,Mozi){
        if(S[j]!=T[i+j])Ans=No;
        else Ans=Yes;
      }
    }
  }
  cout<<Ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: 'No' was not declared in this scope
   12 |         if(S[j]!=T[i+j])Ans=No;
      |                             ^~
a.cc:13:18: error: 'Yes' was not declared in this scope
   13 |         else Ans=Yes;
      |                  ^~~
Language: C++

#include "bits/stdc++.h"
//#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
int main(){
  string S,T;
  cin>>S>>T;
  int Mozi=sizeof(S)/sizeof(string);
  rep(i,Mozi){
    if(S[0]==T[i]){
      rep(j,Mozi){
        if(S[j]!=T[i+j])(string)(Ans)=No;
        else (string)(Ans)=Yes;
      }
    }
  }
  cout<<Ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:34: error: 'Ans' was not declared in this scope
   12 |         if(S[j]!=T[i+j])(string)(Ans)=No;
      |                                  ^~~
a.cc:12:39: error: 'No' was not declared in this scope
   12 |         if(S[j]!=T[i+j])(string)(Ans)=No;
      |                                       ^~
a.cc:13:23: error: 'Ans' was not declared in this scope
   13 |         else (string)(Ans)=Yes;
      |                       ^~~
a.cc:13:28: error: 'Yes' was not declared in this scope
   13 |         else (string)(Ans)=Yes;
      |                            ^~~
a.cc:17:9: error: 'Ans' was not declared in this scope
   17 |   cout<<Ans<<endl;
      |         ^~~
Language: C++

#include "bits/stdc++.h"
//#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
int main(){
  string S,T;
  cin>>S>>T;
  int Mozi=sizeof(S)/sizeof(string);
  rep(i,Mozi){
    if(S[0]==T[i]){
      rep(j,Mozi){
        if(S[j]!=T[i+j])string Ans=No;
        else string Ans=Yes;
      }
    }
  }
  cout<<Ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:36: error: 'No' was not declared in this scope
   12 |         if(S[j]!=T[i+j])string Ans=No;
      |                                    ^~
a.cc:13:25: error: 'Yes' was not declared in this scope
   13 |         else string Ans=Yes;
      |                         ^~~
a.cc:17:9: error: 'Ans' was not declared in this scope
   17 |   cout<<Ans<<endl;
      |         ^~~
Language: C++

 #include <stdio.h>
#include <stdlib.h>
#include <stdlib>
int main(void){
   int i;
    srand(10);
    i = rand()%2+1;
if(i == 1){
printf("No");
      }else{
printf("Yes");
      }

return 0;
}

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

 #include <stdio.h>
#include <stdlib.h>
int main(void){
    int i;
    int j;
    int flg = 0;
    char a[101];
    char b[101];  
    scanf("%s",a);
    char aa[101];
    aa = a;
    scanf("%s",b);
for(i = 0;a[i] != '￥0';i++)
int len = i-1;
    for(i=0;i<len;i++){
if(a[i] = b[i]){
for(j = 0;j<i;j++){
aa[len - i + j] = a[j];
}
for(j = i;j<len;j++){
aa[j-i] = a[j];
}
if(aa = b){
    flg = 1;
    break;
}
}
}
if(flg == 0){
printf("No");
      }else{
printf("Yes");
      }

return 0;
}

Compiler output:
a.cc:13:19: warning: multi-character character constant [-Wmultichar]
   13 | for(i = 0;a[i] != '￥0';i++)
      |                   ^~~~~
a.cc: In function 'int main()':
a.cc:11:8: error: invalid array assignment
   11 |     aa = a;
      |     ~~~^~~
a.cc:15:15: error: 'len' was not declared in this scope; did you mean 'mblen'?
   15 |     for(i=0;i<len;i++){
      |               ^~~
      |               mblen
a.cc:23:7: error: invalid array assignment
   23 | if(aa = b){
      |    ~~~^~~
Language: C++

 #include <stdio.h>
#include <stdlib.h>
int main(void){
    int i;
    int j;
    int flg = 0;
    char a;
    char b;  
    scanf("%s",a);
    char aa = a;
    scanf("%s",b);
for(i = 0;a[i] != '￥0';i++)
int len = i-1;
    for(i=0;i<len;i++){
if(a(i) = b(i)){
for(j = 0;j<i;j++){
aa(len - i + j) = a(j);
}
for(j = i;j<len;j++){
aa(j-i) = a(j);
}
if(aa = b){
    flg = 1;
    break;
}
}
}
if(flg == 0){
printf("No");
      }else{
printf("Yes");
      }

return 0;
}

Compiler output:
a.cc:12:19: warning: multi-character character constant [-Wmultichar]
   12 | for(i = 0;a[i] != '￥0';i++)
      |                   ^~~~~
a.cc: In function 'int main()':
a.cc:12:12: error: invalid types 'char[int]' for array subscript
   12 | for(i = 0;a[i] != '￥0';i++)
      |            ^
a.cc:14:15: error: 'len' was not declared in this scope; did you mean 'mblen'?
   14 |     for(i=0;i<len;i++){
      |               ^~~
      |               mblen
a.cc:15:5: error: 'a' cannot be used as a function
   15 | if(a(i) = b(i)){
      |    ~^~~
a.cc:15:12: error: 'b' cannot be used as a function
   15 | if(a(i) = b(i)){
      |           ~^~~
a.cc:17:15: error: 'aa' cannot be used as a function
   17 | aa(len - i + j) = a(j);
      |               ^
a.cc:17:20: error: 'a' cannot be used as a function
   17 | aa(len - i + j) = a(j);
      |                   ~^~~
a.cc:20:3: error: 'aa' cannot be used as a function
   20 | aa(j-i) = a(j);
      | ~~^~~~~
a.cc:20:12: error: 'a' cannot be used as a function
   20 | aa(j-i) = a(j);
      |           ~^~~
Language: C++

 #include <stdio.h>
#include <stdlib.h>
#include <string.h>
    
int main(void){
    int i;
    int j;
    int flg = 0;
    string a;
    string b;  
    scanf("%s",a);
    string aa = a;
    scanf("%s",b);
for(i=0;i<a.Length;i++){
if(a(i) = b(i)){
for(j = 0;j<i;j++){
aa(a.Length - i + j) = a(j);
}
for(j = i;j<a.Length;j++){
aa(j-i) = a(j);
}
if(aa = b){
    flg = 1;
    break;
}
}
}
if(flg == 0){
printf("No");
      }else{
printf("Yes");
      }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'string' was not declared in this scope; did you mean 'stdin'?
    9 |     string a;
      |     ^~~~~~
      |     stdin
a.cc:10:11: error: expected ';' before 'b'
   10 |     string b;
      |           ^~
      |           ;
a.cc:11:16: error: 'a' was not declared in this scope
   11 |     scanf("%s",a);
      |                ^
a.cc:12:11: error: expected ';' before 'aa'
   12 |     string aa = a;
      |           ^~~
      |           ;
a.cc:13:16: error: 'b' was not declared in this scope
   13 |     scanf("%s",b);
      |                ^
a.cc:17:1: error: 'aa' was not declared in this scope
   17 | aa(a.Length - i + j) = a(j);
      | ^~
a.cc:20:1: error: 'aa' was not declared in this scope
   20 | aa(j-i) = a(j);
      | ^~
a.cc:22:4: error: 'aa' was not declared in this scope
   22 | if(aa = b){
      |    ^~