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

#include <iostream>
#include <algorithm>
using namespace std;
 
int main(){
  string s, t; cin >> s >> t;
  int n = s.length();
  
  for(int i = 0; i < n; i = i + 1){ 	
    if(t == s){
      cout << "Yes" << endl;
      return 0;
    }
     s = rotate(s);
  }
 
  cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: no matching function for call to 'rotate(std::string&)'
   14 |      s = rotate(s);
      |          ~~~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:1348:5: note: candidate: 'template<class _FIter> _FIter std::_V2::rotate(_FIter, _FIter, _FIter)'
 1348 |     rotate(_ForwardIterator __first, _ForwardIterator __middle,
      |     ^~~~~~
/usr/include/c++/14/bits/stl_algo.h:1348:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:260:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::rotate(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _ForwardIterator)'
  260 | rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last);
      | ^~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:260:1: note:   candidate expects 4 arguments, 1 provided
Language: C++

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

string S;
string T;
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cin >> S;
    cin >> T;
    bool ok = false;
    for(unsigned int i=0; i<T.size(); i++){
        rotate(T.begin(), T.begin() + 1, T.end());
        if(S.compare(T) ! = 0) ok = true; break;
    }
    if(ok) printf("Yes");
    else printf("No");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: expected ')' before '!' token
   14 |         if(S.compare(T) ! = 0) ok = true; break;
      |           ~            ^~
      |                        )
Language: C++

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

int main()
{
	string s;
	string t;
	cin>>s>>t;
	sort(s,s+s.size());
	sort(t,t+t.size());
	if(s==t)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc:1:9: fatal error: bits/stddc++.h: No such file or directory
    1 | #include<bits/stddc++.h>
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
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++){
        if(s==t){
            cout << "Yes" << endl;
            retrun 0;
        }
        s=s.back()+s.substr(0, s.size()-1);
    }
    if(s==t){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'retrun' was not declared in this scope
   11 |             retrun 0;
      |             ^~~~~~
Language: C++

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

int main(){

    string s,t;
    cin >> s >> t;
    int flag = 0;
    for(int i=0; i<s.length; i++){
        
        if(s == t){
            flag = 1;
            break;
        }
        char first = s[0];
        s.erase(s.begin());
        s.push_back(first);
    }

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

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

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

int main(){

    string s,t;
    cin >> s >> t;
    int flag = 0;
    for(int i=0; i<s.length; i++){
        
        if(s == t){
            flag = 1;
            break;
        }
        char first = s[0];
        s.erase(s.begin());
        s.push_back(last);
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   10 |     for(int i=0; i<s.length; i++){
      |                    ~~^~~~~~
      |                            ()
a.cc:18:21: error: 'last' was not declared in this scope
   18 |         s.push_back(last);
      |                     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main() {
	char s[101], t[101];
	cin >> s;
	cin >> t;
	int len = strlen(s);
	bool equal = true;
	for (int i = 0; i < len; i++)if (s[i] != t[i])equal = false;
	if (equal) {
		cout << "Yes";
		return 0;
	}
	for (int i = 1; i < len; i++) {
		equal = true;
		int k;
		for (int j = 0; j < len; j++) {
			k = i + j;
			if (k >= len)k = k % len;
			if (s[k] != t[j]) {
				equal = false;
				break;
			}
		}
		if (equal) {
			cout << "Yes";
			return 0;
		}
	}
	cout << "No";
	return 0;
}

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

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

int main() {
  string s,t;
  cin >> s >> t;
  int n=s.size();
  int cnt=0;
  
  for(int i=0;i<n;i++){
    if(s==t){
      cout << "Yes" << endl;
      break;
    }
    s=rotate(s);
    if(s!=t){
      cnt++;
      if(cnt==n){
        cout << "No" << endl;
      }
    }
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: no matching function for call to 'rotate(std::string&)'
   15 |     s=rotate(s);
      |       ~~~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:1348:5: note: candidate: 'template<class _FIter> _FIter std::_V2::rotate(_FIter, _FIter, _FIter)'
 1348 |     rotate(_ForwardIterator __first, _ForwardIterator __middle,
      |     ^~~~~~
/usr/include/c++/14/bits/stl_algo.h:1348:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:260:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::rotate(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _ForwardIterator)'
  260 | rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last);
      | ^~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:260:1: note:   candidate expects 4 arguments, 1 provided
Language: C++

#include <cstdio>
#include <cstring>
bool cmp(char a[],char b[])
{
    int len=strlen(a);
    int i,j;
    for(j=0;j<len;j++)
    {
        for(i=0;i<len;i++)
        {
           if(a[i]!=b[(i+j)%len])
                break;
        }
        if(i==len)
        {
            return true;
        }
    }
    return false;
}
int main()
{
    char s[100],t[100];
    gets(s);
    gets(t);
    if(cmp(s,t)==true)
        printf("Yes");
    else printf("No");
    return 0;
}


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

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

int main(){
    string s,t;
    cin>>s>>t;
   if(s.length()!=t.length()){
        cout<<"No";
    }else{
       string temp=s;
       for(int i=1;s!=t; ){
           reverse(s.begin(),s.end());
           reverse(s.begin(),s.begin()+i);
           reverse(s.begin()+i,s.end());
           if(temp==s)break;
           if(s==t){
              cout<<"Yes";
              return 0;
           }
       }
       cout<<"No";
    }

    return 0;
}

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;
    int n = S.size()
    for(int i=0; i<n; ++i){
      if (S==T){
        ans = true;
        break;
      }
    S = S.back()+S.substr(0, n-1);
    }
    if(ans){
      cout << "Yes" << endl;
    }else{
      cout << "No" << endl;
    }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: 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
   11 |     string temp = s.back();
      |                   ~~~~~~^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: 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
   11 |     string temp = s[s.size() - 1];
      |                                 ^
Language: C

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

int n_equal(string a,string b,int n)
{
    int t=a.size();
    for(int i=0;i<t;i++)
    {
        if(a[i]!=b[(i+n)%t]) return 0;
    }
    return 1;
}

int main()
{
    int t,j;
    string a,b;
    cin>>a>>b;
    t=a.size();
    int flag=0;
    for(j=0;j<t;j++)
    {
        if(n_equal(a,b,j)) flag=1;
    }
    if (flag) printf("Yes");
    else printf("No");
    return 0;
}


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


public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		StringBuffer str1=new StringBuffer(sc.nextLine());
		StringBuffer str2=new StringBuffer(sc.nextLine());		
		int len=str1.length();
		if(len!=str2.length()){
			System.out.println("No");
			return;
		}
		while(len-->0){
			StringBuffer sb=new StringBuffer();
			char c=str1.charAt(0);
			sb.append(str1.substring(1));
			sb.append(c);
			str1=sb;
			//System.out.println(str1);
			if(str1.toString().equals(str2.toString())){
				System.out.println("Yes");
				return;
			}
		}
		System.out.println("No");
	}
}


Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc=new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc=new Scanner(System.in);
		               ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

int main()
{
	string s, t;
	getline(cin, s);
	getline(cin, t);
	int i = 0;
	bool flag = false;
	while (i < s.size()-1 && flag == false)
	{
		if (s == t)
		{
			flag = true;
		}
		else
		{
			reverse(s.begin(), s.end());
			reverse(s.begin() + 1, s.end());
		}
		i++;
	}
	if (flag == true)
		cout << "Yes";
	else
		cout << "No";
	return EXIT_SUCCESS;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:25: error: 'reverse' was not declared in this scope
   20 |                         reverse(s.begin(), s.end());
      |                         ^~~~~~~
Language: C

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

int main(void)
{
 char s[100],t[100];
 int a,b,i,n,m;

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

 n=strlen(s);
 m=strlen(t);

 if(n!=m)printf("No\n");

  a=s[0];
  b=t[0];
  for(i=1;i<n;i++){
   a=a+s[i];
   b=b+t[i];
  }

 if(a==b) printf("Yes\n");
 else printf("No\n");

 return 0;
}
~                            

Compiler output:
main.c:28:1: error: expected identifier or '(' before '~' token
   28 | ~
      | ^
Language: C++

#include<iostream>
#include<algorithm>
#include<set>
#include<math.h>
#include<vector>
#include<sstream>
#include<queue>
#include<functional>
#include<bitset>
#include<cstdio>
#include<iomanip>
#include<map>
#include<unordered_map>
#include<unordered_set>
#include <string.h>
using ll = long long;

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define reps(i,x) for(ll i=1;i<=(ll)(x);i++)
#define rrep(i,x) for(ll i=((ll)(x)-1);i>=0;i--)
#define rreps(i,x) for(ll i=(ll)(x);i>0;i--)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,0,sizeof(x))
#define vll vector<ll>
#define vi vector<int>
#define vpll vector<pair<ll,ll>>
#define vpi vector<pair<int,int>>
#define mod 1000000007 
using namespace std;
map<char, int> sm,tm;
int main() {
  string s,t;
  cin >> s >> t;
  rep(i, s.size()){
    sm[s[i]]++;
    tm[t[i]]++;
  }
  for(auto kv : sm) {
    if(tm[kv.first] !=sm[kv.first]){
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:36:5: error: reference to 'tm' is ambiguous
   36 |     tm[t[i]]++;
      |     ^~
In file included from /usr/include/time.h:39,
                 from /usr/include/pthread.h:23,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr.h:157,
                 from /usr/include/c++/14/ext/atomicity.h:35,
                 from /usr/include/c++/14/bits/ios_base.h:39,
                 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/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm'
    7 | struct tm
      |        ^~
a.cc:30:19: note:                 'std::map<char, int> tm'
   30 | map<char, int> sm,tm;
      |                   ^~
a.cc:39:8: error: reference to 'tm' is ambiguous
   39 |     if(tm[kv.first] !=sm[kv.first]){
      |        ^~
/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm'
    7 | struct tm
      |        ^~
a.cc:30:19: note:                 'std::map<char, int> tm'
   30 | map<char, int> sm,tm;
      |                   ^~
Language: C

#include<stdio.h>
int main(){
  char S[],T[];
  scanf("%s",&S);
  scanf("%s",&T);
  if(strlen(S) == strlen(T)){
    for(int i = 0;i < strlen(S)){
      int c = 1;
      for(int j = 0;j < strlen(S);j++){
        if(s[j] != s[j + i]){
          c = 0;
        }
      }
      if(n == 1){
        printf("Yes");
        return 0;
      }
    }
  }
  printf("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:8: error: array size missing in 'S'
    3 |   char S[],T[];
      |        ^
main.c:3:12: error: array size missing in 'T'
    3 |   char S[],T[];
      |            ^
main.c:6:6: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    6 |   if(strlen(S) == strlen(T)){
      |      ^~~~~~
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:6:6: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    6 |   if(strlen(S) == strlen(T)){
      |      ^~~~~~
main.c:6:6: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:7:32: error: expected ';' before ')' token
    7 |     for(int i = 0;i < strlen(S)){
      |                                ^
      |                                ;
main.c:10:12: error: 's' undeclared (first use in this function)
   10 |         if(s[j] != s[j + i]){
      |            ^
main.c:10:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:10: error: 'n' undeclared (first use in this function)
   14 |       if(n == 1){
      |          ^
Language: C++

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

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

	s = s + s;

	printf("%s\n", (s.fint(t) == -1) ? "No" : "Yes");

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'fint'; did you mean 'find'?
   11 |         printf("%s\n", (s.fint(t) == -1) ? "No" : "Yes");
      |                           ^~~~
      |                           find
Language: C

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

int main(){

  int i,j,k;
  char S[256],T[256],tmp[256];
  
  scanf("%s",S);
  scanf("%s",T);
  
  for(i=0;i<strlen(S);i++){
    tmp=S;
    for(j=1;j<strlen;j++){
      S[0]=tmp[strlen(S)-1];
      S[i] = tmp[j-1];
    }
    if(strcmp(S,T)==0){
      puts("Yes");
      return 0;
    }
  }
  
  puts("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:8: error: assignment to expression with array type
   13 |     tmp=S;
      |        ^
main.c:14:14: warning: comparison between pointer and integer
   14 |     for(j=1;j<strlen;j++){
      |              ^
Language: C++

#include<algorithm>
#include<iostream>
#include<functional>
#include<cmath>
#include<iomanip>
using namespace std;
int main(){
  string s,t;
  int ans
  cin>>s>>t;
  for(int i=0;i<s.size();i++){
    t=t.back()+t.substr(t[0],t.size()-1);
    if(s==t)
      count++;
  }
  if(count==0)
    cout<<"No"<<endl;
  else
    cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected initializer before 'cin'
   10 |   cin>>s>>t;
      |   ^~~
a.cc:14:12: error: no post-increment operator for type
   14 |       count++;
      |            ^~
a.cc:16:11: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   16 |   if(count==0)
      |      ~~~~~^~~
Language: C++

#include<iostream>
#include<cmath>
#include<vector>
#include<set>
#include<tuple>
#include<utility>
#include<cctype>
using namespace std;

#define REP(i,n) for(int i=0;i<n;++i)
#define enter "\n"

typedef long long ll;


int abc104_c(){
    //入力
    string s,t;
    cin >> s >> t;
    bool ans = false;
    
    //処理
    if(news==t) ans = true;
    REP(i,s.length()){
        string news(s);
        news[0] = s[s.length()-1];
        for(int j=1 ; j<s.length() ; ++j){
            news[j] = s[j-1];
        }
        s = news;
        if(news==t) ans = true;
    }
    
    //出力
    if(ans) cout << "Yes" << enter;
    else cout << "No" << enter;
    return 0;
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    abc104_c();
    return 0;
}


Compiler output:
a.cc: In function 'int abc104_c()':
a.cc:23:8: error: 'news' was not declared in this scope
   23 |     if(news==t) ans = true;
      |        ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:54: error: expected ';' before '}' token
   15 |       S.at(S.size() - 1 + j) = S.at(S.size() - 2 + j)
      |                                                      ^
      |                                                      ;
   16 |     }
      |     ~
Language: C++

#include<iostream>
#include<algorithm>
#include<functional>
#include<vector>
using namespace std;
int main(){
  vector<char> a(n);
  vector<char> b(n);
  int count=0;
  for(int j=0;j<n;j++){
    cin>>a[j];
  }
  for(int k=0;k<n;k++){
    cin>>b[k];
  }
  sort(a.begin(),a.end());
  sort(b.begin(),b.end());
  for(int i=0;i<n;i++){
    if(a[i]!=b[i])
      count++;
  }
  if(count>0)
    cout<<"No"<<endl;
  else
    cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |   vector<char> a(n);
      |                  ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<set>
#include<string>
#include<string.h>
#include<complex>
#include<math.h>
using namespace std;
typedef long long int llint;
#define rep(i,n) for(int i=0;i<n;i++)

bool check(char a, char b) {
	return a > b;
}

int kuraiwa(int n) {
	int ans = 0;
	while (n > 0) {
		ans += n % 10;
		n /= 10;
	}
	return ans;
}

bool kaibun(int n) {
	int a[5];
	for (int i = 0; i < 5; i++) {
		a[i] = n % 10;
		n /= 10;
	}
	if (a[0] == a[4] && a[1] == a[3]) {
		return true;
	}
	else {
		return false;
	}
}

int main() {
	char s[220], t[110];
	cin >> s >> t;
	char s1[220];
	strcpy_s(s1, s);
	strcat_s(s1, s);
	if (strstr(s1, t) != '\0'){
		cout << "Yes" << endl;
	}
	else{
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:9: error: 'strcpy_s' was not declared in this scope; did you mean 'strcpy'?
   44 |         strcpy_s(s1, s);
      |         ^~~~~~~~
      |         strcpy
a.cc:45:9: error: 'strcat_s' was not declared in this scope; did you mean 'strcat'?
   45 |         strcat_s(s1, s);
      |         ^~~~~~~~
      |         strcat
a.cc:46:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   46 |         if (strstr(s1, t) != '\0'){
      |             ~~~~~~~~~~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;

string rotate(string s){
  return s.substr(1)+s[0];
}

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

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

//file_name:ABC103_B.cpp
#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(),a.end()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define pb push_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define uni(x) x.erase(unique(rng(x)),x.end())
#define snuke srand((unsigned)clock()+(unsigned)time(NULL));
#define show(x) cout<<#x<<" = "<<x<<endl;
#define PQ(T) priority_queue<T,v(T),greater<T> >
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts()
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
typedef long long int ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
inline int in() { int x; scanf("%d",&x); return x;}
template<typename T>inline istream& operator>>(istream&i,v(T)&v)
{rep(j,sz(v))i>>v[j];return i;}
template<typename T>string join(const v(T)&v)
{stringstream s;rep(i,sz(v))s<<' '<<v[i];return s.str().substr(1);}
template<typename T>inline ostream& operator<<(ostream&o,const v(T)&v)
{if(sz(v))o<<join(v);return o;}
template<typename T1,typename T2>inline istream& operator>>(istream&i,pair<T1,T2>&v)
{return i>>v.fi>>v.se;}
template<typename T1,typename T2>inline ostream& operator<<(ostream&o,const pair<T1,T2>&v)
{return o<<v.fi<<","<<v.se;}
template<typename T>inline ll suma(const v(T)& a) { ll res(0); for (auto&& x : a) res += x; return res;}
const double eps = 1e-10;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
#define dame { puts("-1"); return 0;}
#define yn {puts("YES");}else{puts("NO");}
const int MX = 200005;

    // 整数スキャン（複数）
    /*
    int x;
    scanf("%d",&x);
    int y;
    scanf("%d",&y);
    int z;
    scanf("%d",&y);

    // n個の整数のスキャン
    /*
    ll a[n] = {};
    rep(i,n){
        scanf("%lld",&a[i]);
    }
    */

    // 文字列スキャン
    /*
    string s;
    cin >> s;
    */


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

    rep(i,200){
        int flag = 0;
        rep(j,s.size()){
            if(s[j]!=t[j]){
                flag = 1;
                break;
            }
        }
        if(flag==0){
            puts("Yes");
            return 0;
        }else{
            char temp = s[0];
            srep(j,1,s.size[]){
                s[j-1] = s[j];
            }
            s[s.size() - 1] = temp;
        }
    }

    puts("No");

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:97:29: error: expected primary-expression before ']' token
   97 |             srep(j,1,s.size[]){
      |                             ^
a.cc:8:41: note: in definition of macro 'srep'
    8 | #define srep(i,s,t) for (int i = s; i < t; ++i)
      |                                         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

   int l = t.length();
   while (true) {
      int x = s[l - 1];
      for (int i = 0; i < l - 1; i++) {
         s[i] = s[i + 1];
      }
      s[0] = x;
      
      for (int j = 0; j < l; j++) {
         if (s[j] == t[j]) {
            goto RABERU;
         }
      }
      cout << "No" << endl;
      return;
   }
RABERU:
   cout << "Yes" << endl;
}


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

import sys
# N,M = [int(n) for n in input().split()]
# S = str(input())
# T = str(input())

S = str(input())
T = str(input())
S3 = S*3
if T in S3:
    print("Yes")
else:
    print("No")


Compiler output:
a.cc:2:3: error: invalid preprocessing directive #N
    2 | # N,M = [int(n) for n in input().split()]
      |   ^
a.cc:3:3: error: invalid preprocessing directive #S
    3 | # S = str(input())
      |   ^
a.cc:4:3: error: invalid preprocessing directive #T
    4 | # T = str(input())
      |   ^
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <queue>

using namespace std;

#define rep(i,n) for(int i=0;i<n;++i)

int main(){
	string a,b;
	cin >> a>>b;
	multiset<char> ac;
	multiset<char> bc;
	rep(i, a.size()){
		ac.insert(a[i]);
		bc.insert(b[i]);
	}
	bool flg=true;
	for (auto i : a){
		flg &= ac.count(i) == bc.count(i)
	}
	if (flg)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:50: error: expected ';' before '}' token
   23 |                 flg &= ac.count(i) == bc.count(i)
      |                                                  ^
      |                                                  ;
   24 |         }
      |         ~
Language: C++

#include<iostream>
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,size()-1);
  }
  if(ans){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: no matching function for call to 'size()'
   12 |     s=s.back()+s.substr(0,size()-1);
      |                           ~~~~^~
In file included from /usr/include/c++/14/string:53,
                 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/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>
using namespace std;

int main() {
  string s, t;
  cin >> s >> t;
  char S;
  bool ans = false;
  for (int i = 0; i < s.size(); i++) {
    if (s == t)
      ans == true;
    else {
      S = s.at(0);
      for (int j = 0; j < s.size(); i++) {
        s.at(i) = s.at(i + 1);
        s = S + s;
      }
    }
  }
  if (bool)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: expected unqualified-id before ')' token
   20 |   if (bool)
      |           ^
Language: C++

#include <iostream >
#include<string>
#include<algorithm>
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:1:10: fatal error: iostream : No such file or directory
    1 | #include <iostream >
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream >
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:1:10: fatal error: iostream : No such file or directory
    1 | #include <iostream >
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(void){
	string s,t;
	cin>>s>>t;
	for(int i=1;i<=s.size();i++){
		s=s[s.size()-i]+s;
		s[size()-i]=NULL;
		if(s==t){
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: no matching function for call to 'size()'
   11 |                 s[size()-i]=NULL;
      |                   ~~~~^~
In file included from /usr/include/c++/14/string:53,
                 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/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 main(void){
	string s,t;
	cin>>s>>t;
	for(int i=1;i<=s.size()||s!=t;i++){
		s=s[s.size()-i]+s;
		s[size()-i]=NULL;
		if(s==t){
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: no matching function for call to 'size()'
   11 |                 s[size()-i]=NULL;
      |                   ~~~~^~
In file included from /usr/include/c++/14/string:53,
                 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/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 main(void){
	string s,t;
	cin>>s>>t;
	for(int i=1;i<=s.size()||s!=t;i++){
		s=s[s.size()-i]+s-s[s.size()-1];
		if(s==t){
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:34: error: no match for 'operator-' (operand types are 'std::__cxx11::basic_string<char>' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'})
   10 |                 s=s[s.size()-i]+s-s[s.size()-1];
In file included from /usr/include/c++/14/string:48,
                 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/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
  618 |     operator-(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:618:5: note:   template argument deduction/substitution failed:
a.cc:10:47: note:   'std::__cxx11::basic_string<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
   10 |                 s=s[s.size()-i]+s-s[s.size()-1];
      |                                               ^
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
 1790 |     operator-(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note:   template argument deduction/substitution failed:
a.cc:10:47: note:   'std::__cxx11::basic_string<char>' is not derived from 'const std::move_iterator<_IteratorL>'
   10 |                 s=s[s.size()-i]+s-s[s.size()-1];
      |                                               ^
Language: C++

#include<iostrem>
#include<string>

using namespace std;

int main(void){
	string s,t;
	cin>>s>>t;
	for(int i=1;i<=s.size()||s!=t;i++){
		s=s[s.size()-i]+s-s[s.size()-1];
		if(s==t){
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
	return 0;
}

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

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)  
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

int main(){

  string s,t;
  cin>>s>>t;
  REP(i.s.size()){
    if(s==t){
      cout<<"Yes"<<endl;
      return 0;
    }
    s.push_back(s[0]);
    s.erase(s.begin());
  }

  cout<<"No"<<endl;


  return 0;
}

Compiler output:
a.cc:24:17: error: macro "REP" requires 2 arguments, but only 1 given
   24 |   REP(i.s.size()){
      |                 ^
a.cc:2:9: note: macro "REP" defined here
    2 | #define REP(i, n) for(int i = 0;i < n;i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:24:3: error: 'REP' was not declared in this scope
   24 |   REP(i.s.size()){
      |   ^~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)  
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define llong long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef pair<int, int> P;
typedef pair<llong, llong> LP;
typedef pair<int, P> PP;
typedef pair<llong, LP> LPP;

int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

int main(){

  string s,t;
  cin>>s>>t;
  REP(i.s.size(){
    if(s==t){
      cout<<"Yes"<<endl;
      return 0;
    }
    s.push_back(s[0]);
    s.erase(s.begin());
  }

  cout<<"No"<<endl;


  return 0;
}

Compiler output:
a.cc:37:2: error: unterminated argument list invoking macro "REP"
   37 | }
      |  ^
a.cc: In function 'int main()':
a.cc:24:3: error: 'REP' was not declared in this scope
   24 |   REP(i.s.size(){
      |   ^~~
a.cc:24:6: error: expected '}' at end of input
   24 |   REP(i.s.size(){
      |      ^
a.cc:20:11: note: to match this '{'
   20 | int main(){
      |           ^
Language: C++

#include < iostream >
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:1:10: fatal error:  iostream : No such file or directory
    1 | #include < iostream >
      |          ^~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String t = scanner.next();
		boolean flag = false;
 
		for (int i = 0; i < s.length; i++) {
			String end = s.substring(s.length-1,s.length);
			s = s.substring(0,s.length-1);
			s = end + s;
 
			if (t.equals(s)) {
				judge = "Yes";
				break;
			}
		}
		System.out.println("No");
	}
}


Compiler output:
Main.java:9: error: cannot find symbol
		for (int i = 0; i < s.length; i++) {
		                     ^
  symbol:   variable length
  location: variable s of type String
Main.java:10: error: cannot find symbol
			String end = s.substring(s.length-1,s.length);
			                          ^
  symbol:   variable length
  location: variable s of type String
Main.java:10: error: cannot find symbol
			String end = s.substring(s.length-1,s.length);
			                                     ^
  symbol:   variable length
  location: variable s of type String
Main.java:11: error: cannot find symbol
			s = s.substring(0,s.length-1);
			                   ^
  symbol:   variable length
  location: variable s of type String
Main.java:15: error: cannot find symbol
				judge = "Yes";
				^
  symbol:   variable judge
  location: class Main
5 errors
Language: C++

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

int lenS, lenT;
string s, t;

bool ans;

int main()
{
    cin >> s >> t;
    lenS = s.length();
    lenT = t.length();
    s += s;

    ans = false;
    for(int i = 0; i < lenS && !ans; i++)
    {
        bool ok = true;
        for(int j = 0; j < lenT; j++)
            if(s[i + j] != t[j])
            {
                ok = false;
                break;
            }

        ans = ok;
    }

    if(!ans || lenS != lenT)
        cout << "No" << '\n';
    else
        cout << "Yes" << '\n';

    return 0;
}
s

Compiler output:
a.cc:37:1: error: 's' does not name a type
   37 | s
      | ^
Language: Java

import java.util.*;
class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(system.in);
    String s = sc.next();
    String t = sc.next();
    boolean flag = false;
    for(int i = 0; i < s.length(); i++)
    {
      for(int j = 0; j < s.length(); j++)
      {
        if(s.charAt(i) != t.charAt((i+j) % s.length()))
        {
          break;
        }
        flag = true; break;
      }
    }
    if(flag) System.out.println("Yes");
    else System.out.pritnln("No");
  }
}
        

Compiler output:
Main.java:6: error: cannot find symbol
    Scanner sc = new Scanner(system.in);
                             ^
  symbol:   variable system
  location: class Main
Main.java:22: error: cannot find symbol
    else System.out.pritnln("No");
                   ^
  symbol:   method pritnln(String)
  location: variable out of type PrintStream
2 errors
Language: C++

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

int main(){
  int s,t;
  cin>>s>>t;
  for(int i=0;i<s.size();i++){
    s.push_back('s[0]');
    s.erase(0,1);
    if(s==t){
      cout<<"Yes"<<endl;
      return 0;
    }
  }
  cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc:10:17: warning: multi-character character constant [-Wmultichar]
   10 |     s.push_back('s[0]');
      |                 ^~~~~~
a.cc: In function 'int main()':
a.cc:9:19: error: request for member 'size' in 's', which is of non-class type 'int'
    9 |   for(int i=0;i<s.size();i++){
      |                   ^~~~
a.cc:10:7: error: request for member 'push_back' in 's', which is of non-class type 'int'
   10 |     s.push_back('s[0]');
      |       ^~~~~~~~~
a.cc:11:7: error: request for member 'erase' in 's', which is of non-class type 'int'
   11 |     s.erase(0,1);
      |       ^~~~~
Language: C++

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


int main()
{
	char s[105], t[105];
	gets(s);
	gets(t);
	
	int l=strlen(s);
	while(l--){
		if(strcmp(s, t)==0) { printf("Yes\n"); return 0; }
		
		rotation(s);
		printf(s);
	}
	printf("No\n");
	return 0;
}


void rotation(char *p)
{
	int l=strlen(p)-1;
	char *p1=p+l-1, *p2=p+l, lc=*(p+l);
	while(l--){
		*p2=*p1;
		p1--;
		p2--;
	}
	*p1=lc;
	
}

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

#include<stdio.h>
#include<string.h>
int main()
{
  int a,b,c,i,j;
    char ch[100000];
    char fh[100000];
    gets(ch);
    gets(fh);
    char t;
    a=strlen(ch);
    b=strlen(fh);
    for(i=0;i<a;i++)
    {
        for(j=i+1;j<a;j++)
        {
            if(ch[i]>ch[j])
            {
                t=ch[i];
                ch[i]=ch[j];
                ch[j]=t;
                
            }
            
        }
    }
    for(i=0;i<b;i++)
    {
        for(j=i+1;j<b;j++)
        {
            if(fh[i]>fh[j])
            {
                t=fh[i];
                fh[i]=fh[j];
                fh[j]=t;
                
            }
            
        }
    }
    int y;
    y=strcmp(ch,fh);
    if(y==0)
    {
        printf("YES\n");
    }
    else
    {
        printf("NO\n");
    }
    
    
}

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(ch);
      |     ^~~~
      |     getw
Language: C++

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

string rotate(string S){
  return S.substr(1)+S[0];
}

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

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

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

string rotate(string S){
  retrun S.substr(1)+S[0];
}

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

Compiler output:
a.cc: In function 'std::string rotate(std::string)':
a.cc:6:3: error: 'retrun' was not declared in this scope
    6 |   retrun S.substr(1)+S[0];
      |   ^~~~~~
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | }
      | ^
a.cc: In function 'int main()':
a.cc:14:11: error: 't' was not declared in this scope
   14 |     if(S==t){
      |           ^
a.cc:16:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |       return;
      |       ^~~~~~