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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    string s,t;
    cin>>s>>t;
    bool f=0;
    for (int i=0;i<s.size;i++) {
        s=s.substr(1)+s[0];
        if (s==t)
            f=1;
    }
    if (f)
        puts("Yes");
    else
        puts("No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: 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 '()' ?)
    9 |     for (int i=0;i<s.size;i++) {
      |                    ~~^~~~
      |                          ()
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;

int main() {
  string s,t; bool count=1;
  cin>>s>>t;
  sort(s.begin(),s.end());
  sort(t.begin(),t.end());
   rep(i,s.size()) {
     if(s[i]!=t[i]) count=0;
     }
  if(count) cout<<"Yes"<<endl;
  else(count==0)  cout<<"No"<< endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before 'cout'
   14 |   else(count==0)  cout<<"No"<< endl;
      |                 ^ ~~~~
      |                 ;
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  string s,t;
  cin>>s>>t;
  if(sign((s+s).find(t))){
    cout<<"Yes";
  }else{
    cout<<"No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'sign' was not declared in this scope; did you mean 'sin'?
    7 |   if(sign((s+s).find(t))){
      |      ^~~~
      |      sin
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
	string a;
	string b;
	cin >> a;
	cin >> b;
	if(a.size() != b.size()){
		cout << "No" << endl;
		return 0;
	}
	for(int i = 0; i < a.size(); i++){
		char z = a[0];
		a.erase(a.begin());
		a.push_back(z);
		if(a == b){
			cout << "Yes" << endl;
			return;
		}
	}
	cout << "No" << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |                         return;
      |                         ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s,t;
  cin>>s>>t;
  bool f=false;
  for(int j=0;j<s.size();j++){
 
    string w=s[s.size()-1];
    s.pop_back();
    s=w+s;

    if(s==t){
      f=true;
      break;
    }
  }
  if(f)
  cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |     string w=s[s.size()-1];
      |                          ^
Language: C++

#include<stdc++.h>
using namespace std;
int main(){
  string s,t;
  cin>>s>>t;
  bool f=false;
  for(int j=0;j<s.size();j++){
  for(int i=1;i<s.size()-2;i++){
    s[0]=s[s.size()-1];
    s[i+1]=s[i];
}
    if(s==t){
      f=true;
      break;
    }
  }
  if(f)
  cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

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

#include<stdc++.h>
using namespace std;
int main(){
  string s,t;
  cin>>s>>t;
  bool f=false;
  for(int j=0;j<s.size();j++){
  for(int i=1;int<s.size()-2;i++){
    s[0]=s[s.size()-1];
    s[i+1]=s[i];
}
    if(s==t){
      f=true;
      break;
    }
  }
  if(f)
  cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

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

#include <bits/stdc++.h>
using namespace std;

int main(){
	string S, T;
	cin >> S >> T;
	S = S + S;
	if(S.find(T) != npos) cout << "Yes" << endl;
	else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'npos' was not declared in this scope
    8 |         if(S.find(T) != npos) cout << "Yes" << endl;
      |                         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string A,C;
  cin >>A>>C;
  int B=A.size(),D;
  for(int i=0;i<B;i++){
    if(A==C){
      D=1;
      break;
    }else{
      A.insert(A.begin(),A[B-1]);
      A.pop_buck();
    }
  }
  if(D)cout <<"Yes" << endl;
  else cout <<"No" << endl;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'pop_buck'; did you mean 'pop_back'?
   13 |       A.pop_buck();
      |         ^~~~~~~~
      |         pop_back
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string A,C;
  cin >>A>>C;
  int B=A.size(),D;
  for(int i=0;i<B;i++){
    if(A==C){
      D=1;
      break;
    }else{
      A.insert(A.begin(),A[B-1]);
      A.pop_buck;
    }
  }
  if(D)cout <<"Yes" << endl;
  else cout <<"No" << endl;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'pop_buck'; did you mean 'pop_back'?
   13 |       A.pop_buck;
      |         ^~~~~~~~
      |         pop_back
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string A;
  cin >>A>>C;
  int B=A.size(),D;
  for(int i=0;i<B;i++){
    if(A==C){
      D=1;
      break;
    }else{
      A.insert(A.begin(),A[B-1]);
      A.pop_buck;
    }
  }
  if(D)cout <<"Yes" << endl;
  else cout <<"No" << endl;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'C' was not declared in this scope
    5 |   cin >>A>>C;
      |            ^
a.cc:13:9: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'pop_buck'; did you mean 'pop_back'?
   13 |       A.pop_buck;
      |         ^~~~~~~~
      |         pop_back
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
	string str;
	cin >> str;
	vector<char> S(str.size());
	vector<char> T(str.size());
	for(int i = 0; i < str.size(); i++){
		S.st(i) = str.at(i);
		cin >> T.at(i);
	}
	sort(S.begin(), S.end());
	sort(T.begin(), T.end());
	bool jdg = true;
	for(int i = 0; i < str.size(); i++){
		if(S.at(i) != T.at(i)){
			jdg = false;
		}
	}
	
	if(jdg) cout << "Yes" << endl;
	else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'class std::vector<char>' has no member named 'st'; did you mean 'at'?
   10 |                 S.st(i) = str.at(i);
      |                   ^~
      |                   at
Language: C++

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

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

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: 'n' was not declared in this scope
   24 |     for(int j=0; n<S.size(); ++j){
      |                  ^
a.cc:32:6: error: 'CAN' was not declared in this scope; did you mean 'NAN'?
   32 |   if(CAN) cout<<"Yes"<<endl;
      |      ^~~
      |      NAN
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  string S, T
  cin >> S >> T;
  
  size_t size = S.length();
  
  for(int i=0; i<size; i++){
    if(S.compare(T) == 0){
      cout << "Yes" << endl;
      return 0;
    }
    
    S = S[size-1] + S.substr(0, size-2);
    
  }
  cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> S >> T;
      |   ^~~
a.cc:11:18: error: 'T' was not declared in this scope
   11 |     if(S.compare(T) == 0){
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
string S,T;
cin >> S >> T;

sort(S.begin(),S.end());
sort(T.begin(),T.end());

  if(S==T){
    cout << "Yes"
  }else{
    cout << "No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected ';' before '}' token
   12 |     cout << "Yes"
      |                  ^
      |                  ;
   13 |   }else{
      |   ~
Language: C++

#include<stdio.h>
#include<cstring>

using namespace std;

void exchange(char a[], int left, int right) {
	int i = left, j = right;
	char temp;
	while (i < j) {
		temp = a[i];
		a[i] = a[j];
		a[j] = temp;
		i++;
		j--;
	}
}

void reserve(char a[], int n, int i) {
	exchange(a, 0, i - 1);
	exchange(a, i, n - 1);
	exchange(a, 0, n - 1);
	return;
}

int main() {
	char str[110], str1[110];
	int n, round = 0;
	scanf_s("%s", str, sizeof(str));;
	scanf_s("%s", str1, sizeof(str1));
	if (strlen(str) != strlen(str1)) {
		printf("No");
		return 0;
	}
	n = strlen(str);
	while (round <= n) {
		reserve(str, n, 1);
		if (strcmp(str, str1) == 0) {
			printf("Yes");
			return 0;
		}
		round++;
	}
	printf("No");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   28 |         scanf_s("%s", str, sizeof(str));;
      |         ^~~~~~~
      |         scanf
Language: C++

#include <bits/stdc++.h>
using namespace std;
char S[100];
char T[102];
int len=0;
bool flag=false;
void rotate(char *t){
	int l= len;
	while(l>0){
		t[l]=t[l-1];
		l--;
	}
	t[0]=t[len];
	t[len]='\0';
}
int main(){
	gets(S);
	gets(T);
	while(S[len]!='\0'){
		len++;
	}
	for(int i=0;i<len;i++){
		while(S[i]!='\0'){
		if(S[i]==T[i]){
			flag=true;
		}else{
			flag=false;
			break;
		}
		i++;
		}
		if(flag){
			printf("yes");
		}else{
			rotate(T);
		}
	}
	if(!flag){
		printf("no");	
	}
	return 0;	
} 

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

#include <bits/stdc++.h>

using namespace std;

const int N=105;
//char str1[N],str2[N];
string s1,s2;
int l1,l2;

int main()
{
   // scanf("%s %s",str1,str2);
    cin>>s1>>s2;
   // if(strlen(str1)!=strlen(str2)||strcmp(str1,str2)==0)
    if(s1==s2)
    {
        printf("Yes\n");
        return 0;
    }
    if(s1.length()!=s2.length())
    {
        printf("No\n");
        return 0;
    }
    char c=s1[0];
    int index=-1;
    while(true)
    {
        index=s2.find(c,index+1);
        if(index==-1)
        {
            printf("No\n");
            return 0;
        }
        int i;
        for(i=0;i<s2.length()-index;i++)
        {
            if(s1[i]!=s2[index+i])
                break;
        }
        int l=s2.length()-index;
        if(index+i==s2.length())
        {
            for(i=0;i<index;i++)
            {
                if(s2[i]!=s1[l+i])



Compiler output:
a.cc: In function 'int main()':
a.cc:46:35: error: expected statement at end of input
   46 |                 if(s2[i]!=s1[l+i])
      |                                   ^
a.cc:46:35: error: expected '}' at end of input
a.cc:45:13: note: to match this '{'
   45 |             {
      |             ^
a.cc:46:35: error: expected '}' at end of input
   46 |                 if(s2[i]!=s1[l+i])
      |                                   ^
a.cc:43:9: note: to match this '{'
   43 |         {
      |         ^
a.cc:46:35: error: expected '}' at end of input
   46 |                 if(s2[i]!=s1[l+i])
      |                                   ^
a.cc:28:5: note: to match this '{'
   28 |     {
      |     ^
a.cc:46:35: error: expected '}' at end of input
   46 |                 if(s2[i]!=s1[l+i])
      |                                   ^
a.cc:11:1: note: to match this '{'
   11 | {
      | ^
Language: C

#include <bits/stdc++.h>

using namespace std;

const int N=105;
//char str1[N],str2[N];
string s1,s2;
int l1,l2;

int main()
{
   // scanf("%s %s",str1,str2);
    cin>>s1>>s2;
   // if(strlen(str1)!=strlen(str2)||strcmp(str1,str2)==0)
    if(s1==s2)
    {
        printf("Yes\n");
        return 0;
    }
    if(s1.length()!=s2.length())
    {
        printf("No\n");
        return 0;
    }
    char c=s1[0];
    int index=-1;
    while(true)
    {
        index=s2.find(c,index+1);
        if(index==-1)
        {
            printf("No\n");
            return 0;
        }
        int i;
        for(i=0;i<s2.length()-index;i++)
        {
            if(s1[i]!=s2[index+i])
                break;
        }
        int l=s2.length()-index;
        if(index+i==s2.length())
        {
            for(i=0;i<index;i++)
            {
                if(s2[i]!=s1[l+i])
                    break;
            }
            if(i==index)
            {
                printf("Yes\n");
                return 0;
            }
        }
    }
    return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
	maps<char,int> count_s,count_t;
  	string s,t;
  	cin>>s>>t;
  	for(int i=0 ; i<s.length() ; ++i)
    {
    	++count_s[s[i]];
      	++count_t[t[i]];
    }
  	for(auto &i:count_s)
    {
    	if(i.second!=count_t[i.first])
        {
        	cout<<"No"<<endl;
          	return 0;
        }
    }
  	cout<<"Yes"<<endl;
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'maps' was not declared in this scope
    6 |         maps<char,int> count_s,count_t;
      |         ^~~~
a.cc:6:14: error: expected primary-expression before 'char'
    6 |         maps<char,int> count_s,count_t;
      |              ^~~~
a.cc:11:11: error: 'count_s' was not declared in this scope
   11 |         ++count_s[s[i]];
      |           ^~~~~~~
a.cc:12:11: error: 'count_t' was not declared in this scope
   12 |         ++count_t[t[i]];
      |           ^~~~~~~
a.cc:14:21: error: 'count_s' was not declared in this scope
   14 |         for(auto &i:count_s)
      |                     ^~~~~~~
a.cc:16:22: error: 'count_t' was not declared in this scope
   16 |         if(i.second!=count_t[i.first])
      |                      ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   13 |       string a=s[0];
      |                   ^
Language: C++

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

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  string s,t; cin>>s >>t;
  string ans="No";
  for(int i=0;i<s.size();i++){
    int cnt=0
    for(int j=0;j<s.size();j++){
      if(s[i+j]==t[j])cnt++;
    }
    if(cnt==s.size())ans="Yes";
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'for'
    9 |     for(int j=0;j<s.size();j++){
      |     ^~~
a.cc:9:17: error: 'j' was not declared in this scope
    9 |     for(int j=0;j<s.size();j++){
      |                 ^
Language: C

#include<iostream>
#include <vector>

using namespace std;

int main(){
    string s, t;
    cin >> s >> t;
    vector<int> a(26, 0);
    vector<int> b(26, 0);

    for (int i = 0; i < s.size();i++){
        int tmp = s[i] - 'a';
        a[tmp]++;
    }
    for (int i = 0; i < t.size();i++){
        int tmp = t[i] - 'a';
        b[tmp]++;
    }
    bool ok = true;
    for (int i = 0; i < 26;i++){
        if(a[i]!=b[i])ok = false;
    }
    if(ok){
        cout << "Yes";
    }else{
        cout << "No";
    }
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
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;
      break;
    }
    else{
      S=S[S.length()-1]+S.substr(1, S.length()-1)
    }
  }
  if(ans)cout << "Yes";
  else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:50: error: expected ';' before '}' token
   14 |       S=S[S.length()-1]+S.substr(1, S.length()-1)
      |                                                  ^
      |                                                  ;
   15 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

#define REP(i, n) for(int i=0; i<n;i++)
#define REPR(i, n) for(int i=n-1 ; i>=0; i--)
#define FOR(i, m, n) for(int i=m; i<n; i++)

#define INF 2e9
#define ll long long

int main(){
    string s, t;
    cin>>s>>t;

    int i, j;

    for(i=0; i<s.length(); i++){
        if(s==t){
            cout<<"Yes"<<endl;
            return 0;
        }
        s = s.back + s.substr(0, s,size()-1);
    }

    cout<<"No"<<endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:40: error: no matching function for call to 'size()'
   22 |         s = s.back + s.substr(0, s,size()-1);
      |                                    ~~~~^~
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
Language: C++

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

int ch(string a[]){
  char b;
  b = a[a.length()-1];
  
  for(i=a.length()-1;i>0;i--){
    a[i] = a[i-1];
  }
  a[0] = b;
  return 0;
}

  
int main(){
  sting a,b;
  cin>>a>>b;
  int i=0;
  char c;
  
  while(i<a.length()){
    if(a==b){
      cout<<"Yes"<<endl;
      return 0;
    }
    ch(a);
    i++;
  }
  
  cout<<"No"<<endl;
  return 0;
}
    
    
    
    

Compiler output:
a.cc: In function 'int ch(std::string*)':
a.cc:7:11: error: request for member 'length' in 'a', which is of pointer type 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} (maybe you meant to use '->' ?)
    7 |   b = a[a.length()-1];
      |           ^~~~~~
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i=a.length()-1;i>0;i--){
      |       ^
a.cc:9:11: error: request for member 'length' in 'a', which is of pointer type 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} (maybe you meant to use '->' ?)
    9 |   for(i=a.length()-1;i>0;i--){
      |           ^~~~~~
a.cc: In function 'int main()':
a.cc:18:3: error: 'sting' was not declared in this scope
   18 |   sting a,b;
      |   ^~~~~
a.cc:19:8: error: 'a' was not declared in this scope
   19 |   cin>>a>>b;
      |        ^
a.cc:19:11: error: 'b' was not declared in this scope
   19 |   cin>>a>>b;
      |           ^
Language: C++

#include<iostream>
using namespace std;

int ch(string a[]){
  char b;
  b = a[a.length()-1];
  
  for(i=a.length()-1;i>0;i--){
    a[i] = a[i-1];
  }
  a[0] = b;
  return 0;
}

  
int main(){
  sting a,b;
  cin>>a>>b;
  int i=0;
  char c;
  
  while(i<a.length()){
    if(a==b){
      cout<<"Yes"<<endl;
      return 0;
    }
    ch(a);
    i++;
  }
  
  cout<<"No"<<endl;
  return 0;
}
    
    
    
    

Compiler output:
a.cc: In function 'int ch(std::string*)':
a.cc:6:11: error: request for member 'length' in 'a', which is of pointer type 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} (maybe you meant to use '->' ?)
    6 |   b = a[a.length()-1];
      |           ^~~~~~
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=a.length()-1;i>0;i--){
      |       ^
a.cc:8:11: error: request for member 'length' in 'a', which is of pointer type 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} (maybe you meant to use '->' ?)
    8 |   for(i=a.length()-1;i>0;i--){
      |           ^~~~~~
a.cc: In function 'int main()':
a.cc:17:3: error: 'sting' was not declared in this scope
   17 |   sting a,b;
      |   ^~~~~
a.cc:18:8: error: 'a' was not declared in this scope
   18 |   cin>>a>>b;
      |        ^
a.cc:18:11: error: 'b' was not declared in this scope
   18 |   cin>>a>>b;
      |           ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main()
{
  string s,t,ans="No";
  cin>>s>>t;
  int n=s.length;
  for(int i=0;i<n+1;i++){
    if(s==t)ans="Yes";
    s=s.substr(0,n-1)+s[n-1];
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: cannot convert 'std::__cxx11::basic_string<char>::length' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type 'int'
   10 |   int n=s.length;
      |           ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected primary-expression before 'for'
    5 |  bool ans = for (int i if (S ==
      |             ^~~
a.cc:7:1: error: expected primary-expression before '=' token
    7 | = 0; i < S.size(); ++i) { T) {
      | ^
a.cc:7:6: error: 'i' was not declared in this scope
    7 | = 0; i < S.size(); ++i) { T) {
      |      ^
Language: C++

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

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

#include <iostream>
#include <string>
#include <algorithm>
#include <iomanip>
#include <ios>
#include <vector>
using namespace std;
int main(void){
  string s,t;
  cin >> s >> t;
  bool check = false;
  
  if(s == t){
    cout << "Yes" << endl;
  }
  else{
    int i = 0;
  	int n = s.length();
    while(i < n){
      s -= s[n -1];
      i++;
      if(s == t){
        check = true;
        break;
      }
    }
  
  
  if(check)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: no match for 'operator-=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
   20 |       s -= s[n -1];
Language: C

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
   clrscr();
   char str[20];
   printf("Enter the String (Enter First Name) in Uppercase:");
   scanf("%s", str);
   for(i=0;i<=strlen(str);i++)
{
   if(str[i]=65 && str[i]<92)
    {
     str[i]=str[i]+32;
     }
printf("\n The String in Lowercase=%s",str);
  getch();
} 
      

Compiler output:
main.c:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main(){
  string S,T;
  cin >> S >> T;
  
  string ans = "No";
  int N = S.size();
  for(int i = 0;i < N;i++){
    string L;
    for(int j = 0;j < N;j++){
     if(j < i){
    L.at(j) = S.at(N - i + j)
     }
      else{
        L.at(j) = S.at(j - i);
      }
    }
    if(L == T) ans = "Yes";
  }  
  
  cout << ans << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: expected ';' before '}' token
   14 |     L.at(j) = S.at(N - i + j)
      |                              ^
      |                              ;
   15 |      }
      |      ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  string S,T,Text;
  
  cin>>S>>T;
  for(int i=0;i<S.size();i++){
    if(T==S.substr(i)+S.substr(0,i){
      cout<<"Yes"<<endl;
      return 0;
    }
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: expected ')' before '{' token
    9 |     if(T==S.substr(i)+S.substr(0,i){
      |       ~                            ^
      |                                    )
a.cc:13:3: error: expected primary-expression before '}' token
   13 |   }
      |   ^
Language: C++

#include <bits/stdc++.h> 
using namespace std;

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

}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:5: error: 'String' was not declared in this scope
    5 |     String S,T;
      |     ^~~~~~
a.cc:5:12: error: expected '}' before 'S'
    5 |     String S,T;
      |            ^
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin >> S >> T;
      |     ^~~
a.cc:8:5: error: expected unqualified-id before 'for'
    8 |     for(int i = 0;i<S.size();i++){
      |     ^~~
a.cc:8:19: error: 'i' does not name a type
    8 |     for(int i = 0;i<S.size();i++){
      |                   ^
a.cc:8:30: error: 'i' does not name a type
    8 |     for(int i = 0;i<S.size();i++){
      |                              ^
a.cc:15:5: error: expected unqualified-id before 'if'
   15 |     if(ans){
      |     ^~
a.cc:18:5: error: expected unqualified-id before 'else'
   18 |     else{
      |     ^~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include <bits/stdc++.h> 
using namespace std;

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

}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:12: error: expected primary-expression before 'S'
    5 |     string S,T;
      |            ^
a.cc:5:12: error: expected '}' before 'S'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin >> S >> T;
      |     ^~~
a.cc:8:5: error: expected unqualified-id before 'for'
    8 |     for(int i = 0;i<S.size();i++){
      |     ^~~
a.cc:8:19: error: 'i' does not name a type
    8 |     for(int i = 0;i<S.size();i++){
      |                   ^
a.cc:8:30: error: 'i' does not name a type
    8 |     for(int i = 0;i<S.size();i++){
      |                              ^
a.cc:15:5: error: expected unqualified-id before 'if'
   15 |     if(ans){
      |     ^~
a.cc:18:5: error: expected unqualified-id before 'else'
   18 |     else{
      |     ^~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include <bits/stdc++.h> 
using namespace std;

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

}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:12: error: expected primary-expression before 'S'
    5 |     string S,T;
      |            ^
a.cc:5:12: error: expected '}' before 'S'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin >> S >> T;
      |     ^~~
a.cc:8:5: error: expected unqualified-id before 'for'
    8 |     for(int i = 0;i<S.size();i++){
      |     ^~~
a.cc:8:19: error: 'i' does not name a type
    8 |     for(int i = 0;i<S.size();i++){
      |                   ^
a.cc:8:30: error: 'i' does not name a type
    8 |     for(int i = 0;i<S.size();i++){
      |                              ^
a.cc:15:5: error: expected unqualified-id before 'if'
   15 |     if(ans){
      |     ^~
a.cc:18:5: error: expected unqualified-id before 'else'
   18 |     else{
      |     ^~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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

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

#include <bits/stdc++.h> 
using namespace std;

int main(){
	 string S,T;
    cin >> S >> T;
    int L = S.size();
    string ans = "Yes";
    char tmp = S[L-1];
    for(int i = 0;i<L ;i++){
        if(equal(S.cbegin(),S.cend().T.cbegin())){
            cout <<"Yes"<<endl;
            return 0;
        }

        if(i<L-1){
           S[i+1]=S[i];
        }else if(i=L-1){
           S[0] = tmp; 
        }

        
        
    }
    cout <<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:38: error: 'std::__cxx11::basic_string<char>::const_iterator' has no member named 'T'
   11 |         if(equal(S.cbegin(),S.cend().T.cbegin())){
      |                                      ^
Language: C++

#include <bits/stdc++.h> 
using namespace std;

int main(){
	 string S,T;
    cin >> S >> T;
    int L = S.size();
    string ans = "Yes";
    string tmp = S[L-1];
    for(int i = 0;i<L ;i++){
        
        if(i<L-1){
           S[i+1]=S[i];
        }else if(i=L-1){
           S[0] = tmp; 
        }

        if(T == S){
            cout <<"Yes"<<endl;
            return 0;
        }
        
    }
    cout <<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |     string tmp = S[L-1];
      |                       ^
a.cc:15:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} in assignment
   15 |            S[0] = tmp;
      |                   ^~~
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
Language: C++

#include <isotream>
using namespace std;

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


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

#include<iostream>
#include<string>

using namespace std;

int main(){
  int i,j=0,k;
  char a;
  string s,t;
  
  cin>>s>>t;
  
  for(i=0;i<s.length();i++){
    a=s[s.length()];
    for(k=0;k<s.length()-1;k++){
      s[k+1]=s[k]
    }
    s[0]==a;
    if(s==t){
      j++;
      break;
    }
  }
  cout<<(j==1?"Yes":"No")<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: expected ';' before '}' token
   16 |       s[k+1]=s[k]
      |                  ^
      |                  ;
   17 |     }
      |     ~
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
  int i,j=0,k;
  char a;
  string s,t;
  
  cin>>s>>t;
  
  for(i=0;i<s.length();i++){
    a=s[s.length()];
    for(k=0;k<s.length()-1;k++){
      s[k+1]=s[k]
    }
    s[0]==a;
    if(s==t){
      j++;
      break;
    }
  }
  cout<<(j==1?"Yes":"No")<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: expected ';' before '}' token
   16 |       s[k+1]=s[k]
      |                  ^
      |                  ;
   17 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string s, t;
  cin >> s >> t;
  bool ans = 0;
  for(int i = 0; i < s.size(); i++) {
    if(s == t) {
      f = 1;
      break;
    }
    s = s.back() + s.substr(0, s.size() - 1);
  }
  if(ans) {
    puts("Yes");
  } else {
    puts("No");
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'f' was not declared in this scope
   10 |       f = 1;
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string s, t;
  cin >> s >> t;
  bool f = 0;
  for(int i = 0; i < n; i++) {
    if(s == t) {
      f = 1;
      break;
    }
    s = s.back() + s.substr(0, s.size() - 1);
  }
  if(ans) {
    puts("Yes");
  } else {
    puts("No");
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'n' was not declared in this scope
    8 |   for(int i = 0; i < n; i++) {
      |                      ^
a.cc:15:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   if(ans) {
      |      ^~~
      |      abs
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	String s = sc.next();
	String t = sc.next();

	boolian judge = false;
	for(int i = 0; i < s.length(); i++){
	    if(s.equals(t)){
		judge = true;
		break;
	    }
	    char c = s.charAt(s.length()-1);
	    String C = String.valueOf(c);
	    s = s.substring(0, s.length()-1);
	    s = C+s;
	}

	if(judge == true){
	    System.out.println("Yes");
	}else{
	    System.out.println("No");
	}
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
	boolian judge = false;
	^
  symbol:   class boolian
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	String s = sc.next();
	String t = sc.next();

	boolian judge = false;
	for(int i = 0; i < s.length(); i++){
	    if(s.equals(t)){
		judge = true;
		break;
	    }
	    char c = s.charAt(s.length()-1);
	    String C = String.valueOf(c);
	    s = s.substring(0, s.length()-1);
	    s = C+s;
	}

	if(flag == 1){
	    System.out.println("Yes");
	}else{
	    System.out.println("No");
	}
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
	boolian judge = false;
	^
  symbol:   class boolian
  location: class Main
Main.java:22: error: cannot find symbol
	if(flag == 1){
	   ^
  symbol:   variable flag
  location: class Main
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main() {
	string S,T;
  	cin >> S >> T;
  
  	for(int j = 0; j < S.size(); j++) {
      bool ok = true;
      for(int i = 0; i < S.size(); i++) {
      if(S.at(i) != T.at(i)) {
        ok = false;
        break;
        }
       }
      char Sfirst = S.at(0);
      S.at(i) = S.at(i + 1);
      S.at(S.size() - 1) = Sfirst;
    }
  
  	if(ok) {
    	cout << "Yes" << endl;
    }else {
    	cout << "No" << endl;
    }
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: 'i' was not declared in this scope
   17 |       S.at(i) = S.at(i + 1);
      |            ^
a.cc:21:12: error: 'ok' was not declared in this scope
   21 |         if(ok) {
      |            ^~
Language: C++

#include<bits/stdc++.h>
#include<ctype.h>
using namespace std;

#define int long long
#define str string
#define rep(x,y) for(int i=x;i<y;i++)
#define REP(x,y) for(int j=x;j<y;j++)
#define all(x) x.begin(),x.end()
#define vint vector<int>
#define vchar vector<char>
#define vstr vector<string>
#define pb(n) push_back(n)

signed main(){
  int A,B,N,M,count=0,count2=0,count3=0,stack=0;
  str S,T;
  int C='A'-'a';
  cin>>S>>T;
  vstr W(N);
  vint P(N);
  rep(0,S,size()){
    REP(0,S.size())count+=1;
  }
  if(count==S.size())cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}


Compiler output:
a.cc:22:17: error: macro "rep" passed 3 arguments, but takes just 2
   22 |   rep(0,S,size()){
      |                 ^
a.cc:7:9: note: macro "rep" defined here
    7 | #define rep(x,y) for(int i=x;i<y;i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:22:3: error: 'rep' was not declared in this scope
   22 |   rep(0,S,size()){
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
    string S,T;
    cin>>S;
    cin>>T;

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

Compiler output:
a.cc:23:5: error: expected unqualified-id before 'return'
   23 |     return 0;
      |     ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  string S,T;
  cin >> S >> T;

  bool ok = false;


  for(int i = 0; i < S.size(); i++){
    if(S == T) ok = true;
    S = S.back() + S.substr(0,s.size() - 2);
  }
  if(ok){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: 's' was not declared in this scope
   13 |     S = S.back() + S.substr(0,s.size() - 2);
      |                               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
  string S,T;
  cin >> S >> T;
  for(int i = 0; i < S.size(); i++){
    S[0] = S[S.size() - 1]
    for(int j = 0; j < S.size() - 1; j++){
      S[j+1] = S[j];
    }
    if(S == T){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before 'for'
    8 |     S[0] = S[S.size() - 1]
      |                           ^
      |                           ;
    9 |     for(int j = 0; j < S.size() - 1; j++){
      |     ~~~                    
a.cc:9:20: error: 'j' was not declared in this scope
    9 |     for(int j = 0; j < S.size() - 1; j++){
      |                    ^
Language: C++

S = str(input())
T = str(input())
S_list = list(S)
T_list = list(T)
if set(S_list) == set(T_list):
    print("Yes")
else:
    print("No")

Compiler output:
a.cc:1:1: error: 'S' does not name a type
    1 | S = str(input())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
const long long mod = pow(10, 9) + 7;
const long long INF = 1LL << 60;
template <class T> bool chmin(T& a, T b){if (a > b) {a = b; return true;} return false;}
template <class T> bool chmax(T& a, T b){if (a < b) {a = b; return true;} return false;}
int divCeil(int A, int B) {return (A + (B - 1)) / B;}
long long divCeil(long long A, int B) {return (A + (B - 1)) / B;}
long long divCeil(int A, long long B) {return (A + (B - 1)) / B;}
long long divCeil(long long A, long long B) {return (A + (B - 1)) / B;}

string rotate(string S)
{
  char C = S.at(0);
  S.earse(0);
  S += C;
  return S;
}

int main()
{
  string S, T;
  cin >> S >> T;
  int N = S.size();
  
  string ans = "No";
  for (int i = 0; i < N; i++)
  {
    S = rotate(S);
    if (S == T) 
    {
      ans = "Yes";
      break;
    }
  }
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'std::string rotate(std::string)':
a.cc:15:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'earse'; did you mean 'erase'?
   15 |   S.earse(0);
      |     ^~~~~
      |     erase
Language: Java

import java.util.*;
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String S = sc.nextLine();
    String T = sc.nextLine();
    int cnt = 0;
    int L = S.length();
    for (int i = 0; i < L; i++){
      for (int j = 0; j < L; j++){
        if (T.charAt(j) == S.charAt(i)){
          cnt++;
        }
      }
    }
    if (cnt == L){
      System.out.println("Yes");
    }
    else{
      System.out.println("No");
    }

Compiler output:
Main.java:21: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

s = gets.chomp.chars
t = gets.chomp
flag = false
s.size.times do 
  s.unshift(s.pop)
  if s.join == t
    flag = true
    break;
  end
end
puts flag ? "Yes" : "No"

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = gets.chomp.chars
      | ^
a.cc:9:3: error: 'end' does not name a type
    9 |   end
      |   ^~~
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <string>
using namespace std;
using lli = long long int;

lli nc2(lli l) {
	if (l < 2)return 0;
	lli ret = l;
	return (l * (l - 1)) / 2;
}

int main() {
	string s,t;
	cin >> s >> t;
	for (int i = 0; i < s.size(); i++) {
		rotate(s.begin(), s.begin() + 1, s.end());
		if (s == t) {
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'rotate' was not declared in this scope
   18 |                 rotate(s.begin(), s.begin() + 1, s.end());
      |                 ^~~~~~
Language: Java

/*
* @Author Silviase(@silviasetitech)
* For ProCon
*/

import java.util.*;
import java.lang.*;
import java.math.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        String t = sc.next();
        boolean b = false;
        for (int i = 0; i < n; i++) {
            if ((s.substring(i) + s.substring(0,i)).equals(t)){
                b = true;
            }
        }
        if (b) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

        sc.close();
    }

}

Compiler output:
Main.java:17: error: cannot find symbol
        for (int i = 0; i < n; i++) {
                            ^
  symbol:   variable n
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string s,t;
  cin >> s >> t;
  n=s+s;
  if(n.find(t)<s.length()) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


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

#include<iostream>
using namespace std;
int mainm(){
string s;
  string t;
  cin>>s>>t;
  bool flag=false;
  for(int i=0;i<s.size();++i){
	if(s==t){
	flag=true;
      break;
    }
    s=s.back()+s.substr(0,s.size()-1);
  }
  if(flag){
	cout<<"Yes"<<endl;
  }else{
	cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int mainm()':
a.cc:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
using namespace std;
int mainm(){
string s;
  string t;
  cin>>s>>t;
  bool flag=false;
  for(int i=0;i<s.size();i++){
	if(s==t){
	flag=true;
      break;
    }
    s=s.back()+s.substr(0,s.size()-1);
  }
  if(flag){
	cout<<"Yes"<<endl;
  }else{
	cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int mainm()':
a.cc:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
using namespace std;
int mainm(){
string s;
  string t;
  cin>>s>>t;
  bool flag=false;
  for(int i=0;i<s.size();i++){
	if(s==t){
	flag=true;
    }
    s=s.back()+s.substr(0,s.size()-1);
  }
  if(flag){
	cout<<"Yes"<<endl;
  }else{
	cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int mainm()':
a.cc:19:1: warning: no return statement in function returning non-void [-Wreturn-type]
   19 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	string S,T;
	cin >> S >>T;
	int s = (int)S.size();
	bool result = false;
	for (int i = 0; i < s; ++i)
	{
		bool tmp = true;
		for (int j = 0; j < s; ++j)
		{
			if(S[mod(j,s)] != T[mod(j + i,s)]){
				tmp = false;
			}
		}
		if(tmp)result = true;
	}
	if(result){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
}
int mod(int a,int b){
	return a % b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: 'mod' was not declared in this scope; did you mean 'modf'?
   13 |                         if(S[mod(j,s)] != T[mod(j + i,s)]){
      |                              ^~~
      |                              modf