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

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

int main() {
   String S, T;
   cin >> S >> T;
   String S2 = S + S;
   int count = 0;
   rep(i,T.size()){
     rep(j,S2.size()){
       if(T.at(i) == S2.at(j)){
         rep(k,T.size()) if( T.at(i+k) == S2.at(j+k) ) count++;
         break;
       }else{ count = 0; }
     }
     if( count == T.size() ) break;
   }
   if( count == T.size() ) cout << "Yes" << endl;
   else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'String' was not declared in this scope
    7 |    String S, T;
      |    ^~~~~~
a.cc:8:11: error: 'S' was not declared in this scope
    8 |    cin >> S >> T;
      |           ^
a.cc:8:16: error: 'T' was not declared in this scope
    8 |    cin >> S >> T;
      |                ^
a.cc:9:10: error: expected ';' before 'S2'
    9 |    String S2 = S + S;
      |          ^~~
      |          ;
a.cc:12:12: error: 'S2' was not declared in this scope
   12 |      rep(j,S2.size()){
      |            ^~
a.cc:2:38: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(int i = 0; i < (n); ++i)
      |                                      ^
Language: C++

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

int main() {
   int S, T;
   cin >> S >> T;
   String S2 = S + S;
   int count = 0;
   rep(i,T.size()){
     rep(j,S2.size()){
       if(T.at(i) == S2.at(j)){
         rep(k,T.size()) if( T.at(i+k) == S2.at(j+k) ) count++;
         break;
       }else{ count = 0; }
     }
     if( count == T.size() ) break;
   }
   if( count == T.size() ) cout << "Yes" << endl;
   else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: 'String' was not declared in this scope
    9 |    String S2 = S + S;
      |    ^~~~~~
a.cc:11:12: error: request for member 'size' in 'T', which is of non-class type 'int'
   11 |    rep(i,T.size()){
      |            ^~~~
a.cc:2:38: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(int i = 0; i < (n); ++i)
      |                                      ^
a.cc:12:12: error: 'S2' was not declared in this scope; did you mean 'S'?
   12 |      rep(j,S2.size()){
      |            ^~
a.cc:2:38: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(int i = 0; i < (n); ++i)
      |                                      ^
a.cc:13:13: error: request for member 'at' in 'T', which is of non-class type 'int'
   13 |        if(T.at(i) == S2.at(j)){
      |             ^~
a.cc:14:18: error: request for member 'size' in 'T', which is of non-class type 'int'
   14 |          rep(k,T.size()) if( T.at(i+k) == S2.at(j+k) ) count++;
      |                  ^~~~
a.cc:2:38: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(int i = 0; i < (n); ++i)
      |                                      ^
a.cc:14:32: error: request for member 'at' in 'T', which is of non-class type 'int'
   14 |          rep(k,T.size()) if( T.at(i+k) == S2.at(j+k) ) count++;
      |                                ^~
a.cc:18:21: error: request for member 'size' in 'T', which is of non-class type 'int'
   18 |      if( count == T.size() ) break;
      |                     ^~~~
a.cc:20:19: error: request for member 'size' in 'T', which is of non-class type 'int'
   20 |    if( count == T.size() ) cout << "Yes" << endl;
      |                   ^~~~
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"<<Endl;
    else cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 'Endl' was not declared in this scope
    9 |     if(s==t)cout<<"Yes"<<Endl;
      |                          ^~~~
Language: C++

typedef long double ld;

int  main()
{
	string s; cin >> s;
	string t; cin >> t;
	int len = s.size();
	
	for (int i = 0; i < len; i++)
	{
		string ans;
		for (int j = i; i < len; j++)
		{
			ans += s[j];
			if (j == len - 1 && ans.size() < len)
				j = -1;
			if (ans.size() == len)
				break;
		}
		if (ans == t)
		{
			cout << "Yes" << endl; return 0;
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string s; cin >> s;
      |         ^~~~~~
a.cc:5:19: error: 'cin' was not declared in this scope
    5 |         string s; cin >> s;
      |                   ^~~
a.cc:5:26: error: 's' was not declared in this scope
    5 |         string s; cin >> s;
      |                          ^
a.cc:6:15: error: expected ';' before 't'
    6 |         string t; cin >> t;
      |               ^~
      |               ;
a.cc:6:26: error: 't' was not declared in this scope
    6 |         string t; cin >> t;
      |                          ^
a.cc:11:23: error: expected ';' before 'ans'
   11 |                 string ans;
      |                       ^~~~
      |                       ;
a.cc:14:25: error: 'ans' was not declared in this scope
   14 |                         ans += s[j];
      |                         ^~~
a.cc:20:21: error: 'ans' was not declared in this scope
   20 |                 if (ans == t)
      |                     ^~~
a.cc:22:25: error: 'cout' was not declared in this scope
   22 |                         cout << "Yes" << endl; return 0;
      |                         ^~~~
a.cc:22:42: error: 'endl' was not declared in this scope
   22 |                         cout << "Yes" << endl; return 0;
      |                                          ^~~~
a.cc:25:9: error: 'cout' was not declared in this scope
   25 |         cout << "No" << endl;
      |         ^~~~
a.cc:25:25: error: 'endl' was not declared in this scope
   25 |         cout << "No" << endl;
      |                         ^~~~
Language: C++

/*
 * atcoder/abc089/b.cpp
 */

// C++ 14
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstring> // memset
#include <cassert>
using namespace std;
#define ll long long
#define loop(__x, __start, __end) for(int __x = __start; __x < __end; __x++)
template <class T> ostream & operator << (ostream & out, vector<T> const & v) {
  for (auto &&a: v) out << a << " "; out << endl; return out;
}
template <class T> void dump(T &a) { cout << a << endl; }
void solve();
int main() { solve(); return 0; }

typedef ull = unsigned long long;
void solve() {
  string s, t;
  cin >> s >> t;
  s += s;
  int n = t.size();
  
  ull b = 1000000007;
  ull sh = 0, th = 0;
  loop(i,0,n) sh = sh*b + s[i];
  loop(i,0,n) th = th*b + t[i];
  ull b_n = 1;
  loop(i,0,n) b_n *= b;
  
  loop(i,0,n) {
    if (sh == th) {
      cout << "Yes" << endl;
      return;
    }
    sh = sh * b + s[i+n] - s[i] * b_n;
  }
  cout << "No" << endl;
}


Compiler output:
a.cc:22:9: error: 'ull' does not name a type; did you mean 'll'?
   22 | typedef ull = unsigned long long;
      |         ^~~
      |         ll
a.cc: In function 'void solve()':
a.cc:29:3: error: 'ull' was not declared in this scope; did you mean 'll'?
   29 |   ull b = 1000000007;
      |   ^~~
      |   ll
a.cc:30:6: error: expected ';' before 'sh'
   30 |   ull sh = 0, th = 0;
      |      ^~~
      |      ;
a.cc:31:15: error: 'sh' was not declared in this scope; did you mean 's'?
   31 |   loop(i,0,n) sh = sh*b + s[i];
      |               ^~
      |               s
a.cc:31:23: error: 'b' was not declared in this scope
   31 |   loop(i,0,n) sh = sh*b + s[i];
      |                       ^
a.cc:32:15: error: 'th' was not declared in this scope; did you mean 't'?
   32 |   loop(i,0,n) th = th*b + t[i];
      |               ^~
      |               t
a.cc:32:23: error: 'b' was not declared in this scope
   32 |   loop(i,0,n) th = th*b + t[i];
      |                       ^
a.cc:33:6: error: expected ';' before 'b_n'
   33 |   ull b_n = 1;
      |      ^~~~
      |      ;
a.cc:34:15: error: 'b_n' was not declared in this scope
   34 |   loop(i,0,n) b_n *= b;
      |               ^~~
a.cc:34:22: error: 'b' was not declared in this scope
   34 |   loop(i,0,n) b_n *= b;
      |                      ^
a.cc:37:9: error: 'sh' was not declared in this scope; did you mean 's'?
   37 |     if (sh == th) {
      |         ^~
      |         s
a.cc:37:15: error: 'th' was not declared in this scope; did you mean 't'?
   37 |     if (sh == th) {
      |               ^~
      |               t
a.cc:41:5: error: 'sh' was not declared in this scope; did you mean 's'?
   41 |     sh = sh * b + s[i+n] - s[i] * b_n;
      |     ^~
      |     s
a.cc:41:15: error: 'b' was not declared in this scope
   41 |     sh = sh * b + s[i+n] - s[i] * b_n;
      |               ^
a.cc:41:35: error: 'b_n' was not declared in this scope
   41 |     sh = sh * b + s[i+n] - s[i] * b_n;
      |                                   ^~~
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++){
    bool bo=false;
    for(int j=0;j<N;j++){
      if(S[(j+i)%N]!=T[j]){
        bo=true;
        break;
      }
    }
    if(bo)
      continue;
    cout<<"Yes"<<endl;
    return 0;
  }
  cout<<"No"<<endl;
}

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

include <iostream>
using namespace std;
int judge(string a,string b, int n){
int flag=1;
for(int i=0;i<n;i++){
if(a[i]!=b[i]){
flag=0;
break;
}
}
return flag;
}
string rotation(string a,int n){
char temp;
temp=a[n-1];
for(int i=n;i>0;i--){
a[i]=a[i-1];
}
a[0]=temp;
return a;
}
int main()
{
int count=0;
int flag=0;
string a,b;
int n1,n2;
cin>>a>>b;
n1=a.size();
n2=b.size();
if(judge(a,b,n1)){
    cout<<"Yes";
}else{
    string temp=a;
for(int i=0;i<n1;i++){
    temp=rotation(temp,n1);
    if(judge(temp,b,n1)){
        flag=1;
        break;
    }
}
if(flag==1){
        cout<<"Yes"<<endl;


}
else{
    cout<<"No"<<endl;


}



}



return 0;




































}




Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc:3:11: error: 'string' was not declared in this scope
    3 | int judge(string a,string b, int n){
      |           ^~~~~~
a.cc:3:20: error: 'string' was not declared in this scope
    3 | int judge(string a,string b, int n){
      |                    ^~~~~~
a.cc:3:30: error: expected primary-expression before 'int'
    3 | int judge(string a,string b, int n){
      |                              ^~~
a.cc:3:35: error: expression list treated as compound expression in initializer [-fpermissive]
    3 | int judge(string a,string b, int n){
      |                                   ^
a.cc:13:1: error: 'string' does not name a type
   13 | string rotation(string a,int n){
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:26:1: error: 'string' was not declared in this scope
   26 | string a,b;
      | ^~~~~~
a.cc:28:1: error: 'cin' was not declared in this scope
   28 | cin>>a>>b;
      | ^~~
a.cc:28:6: error: 'a' was not declared in this scope
   28 | cin>>a>>b;
      |      ^
a.cc:28:9: error: 'b' was not declared in this scope
   28 | cin>>a>>b;
      |         ^
a.cc:31:9: error: 'judge' cannot be used as a function
   31 | if(judge(a,b,n1)){
      |    ~~~~~^~~~~~~~
a.cc:32:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   32 |     cout<<"Yes";
      |     ^~~~
      |     count
a.cc:34:11: error: expected ';' before 'temp'
   34 |     string temp=a;
      |           ^~~~~
      |           ;
a.cc:36:5: error: 'temp' was not declared in this scope
   36 |     temp=rotation(temp,n1);
      |     ^~~~
a.cc:36:10: error: 'rotation' was not declared in this scope
   36 |     temp=rotation(temp,n1);
      |          ^~~~~~~~
a.cc:37:13: error: 'judge' cannot be used as a function
   37 |     if(judge(temp,b,n1)){
      |        ~~~~~^~~~~~~~~~~
a.cc:43:9: error: 'cout' was not declared in this scope; did you mean 'count'?
   43 |         cout<<"Yes"<<endl;
      |         ^~~~
      |         count
a.cc:43:22: error: 'endl' was not declared in this scope
   43 |         cout<<"Yes"<<endl;
      |                      ^~~~
a.cc:48:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   48 |     cout<<"No"<<endl;
      |     ^~~~
      |     count
a.cc:48:17: error: 'endl' was not declared in this scope
   48 |     cout<<"No"<<endl;
      |                 ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
#define PL pair<ll,ll>
#define ALL(v) (v).begin(), (v).end()
 
int main(){
    string S,T;
    cin>>S>>T;
    bool flg=false;
    rep(i,0,S.size()){
        S.push_back(S[0]);
        S.pop_front(S[0]);
        if(S==T)flg=true;
    }
    cout<<(flg ? "Yes":"No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'pop_front'
   20 |         S.pop_front(S[0]);
      |           ^~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: unable to find numeric literal operator 'operator""s.size'
   12 |     s=s.back()+s.substr(0.s.size()-1);
      |                         ^~~~~~~~
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:11: 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, ans = "No";
  cin >> s >> t;
  
  for (int i = 0; i < s.size() - 1; ++i) {
    if (i == 0 && s == t) {
      ans = "Yes";
      break;
    
    string rotate_s = s.substr(s.size() - i) + s.substr(0, s.size() - i);
    if (rotate_s == t) {
      ans = "Yes";
      break;
    }
  }
  cout << ans << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  string s,t;
  cin>>s>>t;
  string S=s+s;
  
  for(int i=0;i<S.size();i++){
    int A=0;
    int test=0;
    int j=i;
    while(S.at(j)==t.at(A)){
      j++;A++;
      test++;
     
    }
     if(A==t.size()){
        cout<<"Yes"<< endl;
        return 0;
      }
  }
    if(test==t.size()){
      cout<<"Yes"<<endl;
      return 0;
    }
  }
  cout<<"No"<< endl;
}
      
          
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:23:8: error: 'test' was not declared in this scope
   23 |     if(test==t.size()){
      |        ^~~~
a.cc: At global scope:
a.cc:28:3: error: 'cout' does not name a type
   28 |   cout<<"No"<< endl;
      |   ^~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

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

const string YES = "Yes";
const string NO = "No";

void solve(std::string S, std::string T) {
	for(int i   = 0;i<S.size();i++){
      if(S.substr(i)+S.substr(0,i) == T){cout<<YES;return;}
  cout<<NO;
}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You
// use the default template now. You can remove this line by using your custom
// template)
int main() {
  std::string S;
  std::cin >> S;
  std::string T;
  std::cin >> T;
  solve(S, T);
  return 0;
}


Compiler output:
a.cc: In function 'void solve(std::string, std::string)':
a.cc:16:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   16 | int main() {
      |         ^~
a.cc:16:9: note: remove parentheses to default-initialize a variable
   16 | int main() {
      |         ^~
      |         --
a.cc:16:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:16:12: error: a function-definition is not allowed here before '{' token
   16 | int main() {
      |            ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:7:42: note: to match this '{'
    7 | void solve(std::string S, std::string T) {
      |                                          ^
Language: C++

#include "C:/Users/yukiy/Desktop/jhelper-example-project-master/tasks/BStringRotation.cpp"

#include <cctype>
#include <ctime>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>

namespace jhelper {

struct Test {
  std::string input;
  std::string output;
  bool active;
  bool has_output;
};

bool check(std::string expected, std::string actual) {
  while (!expected.empty() && isspace(*--expected.end()))
    expected.erase(--expected.end());
  while (!actual.empty() && isspace(*--actual.end()))
    actual.erase(--actual.end());
  return expected == actual;
}

} // namespace jhelper

signed main() {
  std::vector<jhelper::Test> tests = { {"kyoto\ntokyo\n", "Yes\n", true, true},{"abc\narc\n", "No\n", true, true},{"aaaaaaaaaaaaaaab\naaaaaaaaaaaaaaab\n", "Yes\n", true, true}, };
  bool allOK = true;
  int testID = 0;
  std::cout << std::fixed;
  double maxTime = 0.0;
  for (const jhelper::Test &test : tests) {
    std::cout << "Test #" << ++testID << std::endl;
    std::cout << "Input: \n" << test.input << std::endl;
    if (test.has_output) {
      std::cout << "Expected output: \n" << test.output << std::endl;
    } else {
      std::cout << "Expected output: \n"
                << "N/A" << std::endl;
    }
    if (test.active) {
      std::stringstream in(test.input);
      std::ostringstream out;
      std::clock_t start = std::clock();
      BStringRotation solver;
      solver.solve(in, out); std::clock_t finish = std::clock();
      double currentTime = double(finish - start) / CLOCKS_PER_SEC;
      maxTime = std::max(currentTime, maxTime);
      std::cout << "Actual output: \n" << out.str() << std::endl;
      if (test.has_output) {
        bool result = jhelper::check(test.output, out.str());
        allOK = allOK && result;
        std::cout << "Result: " << (result ? "OK" : "Wrong answer")
                  << std::endl;
      }
      std::cout << "Time: " << currentTime << std::endl;
    } else {
      std::cout << "SKIPPED\n";
    }

    std::cout << std::endl;
  }
  if (allOK) {
    std::cout << "All OK" << std::endl;
  } else {
    std::cout << "Some cases failed" << std::endl;
  }
  std::cout << "Maximal time: " << maxTime << "s." << std::endl;
  return 0;
}


Compiler output:
a.cc:1:10: fatal error: C:/Users/yukiy/Desktop/jhelper-example-project-master/tasks/BStringRotation.cpp: No such file or directory
    1 | #include "C:/Users/yukiy/Desktop/jhelper-example-project-master/tasks/BStringRotation.cpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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";
  }
  else{
    cout<<"No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected initializer before 'false'
    6 |   bool ans false;
      |            ^~~~~
a.cc:9:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |       ans=true;
      |       ^~~
      |       abs
a.cc:14:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |   if(ans){
      |      ^~~
      |      abs
Language: C++

#include <bits/stdc++.h>
 
#define _overload(_1,_2,_3,name,...) name
#define _rep(i,n) _range(i,0,n)
#define _range(i,a,b) for(int i=(int)(a);i<(int)(b);++i)
#define rep(...) _overload(__VA_ARGS__,_range,_rep,)(__VA_ARGS__)
 
#define _rrep(i,n) _rrange(i,n,0)
#define _rrange(i,a,b) for(int i=(int)(a)-1;i>=(int)(b);--i)
#define rrep(...) _overload(__VA_ARGS__,_rrange,_rrep,)(__VA_ARGS__)
 
#define _all(arg) begin(arg),end(arg)
#define uniq(arg) sort(_all(arg)),(arg).erase(unique(_all(arg)),end(arg))
#define bit(n) (1LL<<(n))
 
// #define DEBUG
 
#ifdef DEBUG
    #define dump(...) fprintf(stderr, __VA_ARGS__)
#else
    #define dump(...)
#endif
 
template<class T>bool chmax(T &a, const T &b) { return (a<b)?(a=b,1):0;}
template<class T>bool chmin(T &a, const T &b) { return (b<a)?(a=b,1):0;}
 
using namespace std;
using ll=long long;
using vi=vector<int>;
using vll=vector<ll>;
 
const double EPS = 1e-10;
const double PI = acos(-1.0);
const int inf = INT_MAX;
const ll INF = LLONG_MAX;
const ll MOD = 1000000007LL;
const int dx[4]={1,0,-1,0};
const int dy[4]={0,1,0,-1};
 
ll extgcd(ll a,ll b,ll& x,ll& y){x=1,y=0;ll g=a;if(b!=0) g=extgcd(b,a%b,y,x),y-=a/b*x;return g;}
ll ADD(const ll &a, const ll &b, const ll mod=MOD) { return (a+b)%mod;}
ll SUB(const ll &a, const ll &b, const ll mod=MOD) { return (a-b+mod)%mod;}
ll MUL(const ll &a, const ll &b, const ll mod=MOD) { return (1LL*a*b)%mod;}
ll DIV(const ll &a, const ll &b, const ll mod=MOD) {ll x,y; extgcd(b,mod,x,y);return MUL(a,(x+mod)%mod,mod);}
 
int main(void){
    cin.tie(0);
    ios::sync_with_stdio(false);

    string S, T; cin >> S >> T;
    bool ok = false;
    rep(i, n){
        ok |= (S.substr(i) + S.substr(0, i) == T);
    }

    cout << (ok ? "Yes":"No") << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:12: error: 'n' was not declared in this scope
   52 |     rep(i, n){
      |            ^
a.cc:5:50: note: in definition of macro '_range'
    5 | #define _range(i,a,b) for(int i=(int)(a);i<(int)(b);++i)
      |                                                  ^
a.cc:3:38: note: in expansion of macro '_rep'
    3 | #define _overload(_1,_2,_3,name,...) name
      |                                      ^~~~
a.cc:52:5: note: in expansion of macro 'rep'
   52 |     rep(i, n){
      |     ^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<stdio.h>
#include<string>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
vector<int> input(int n) {
    vector<int> vec(n);
    for (int i = 0; i < n; i++) {
        cin >> vec.at(i);
    }
    return vec;
}
void output(vector<int> vec) {
    for (int i = 0; i < vec.size(); i++) {
        cout << vec[i] << " ";
    }
    return;
}
vector<int> sort(vector<int> vec) {
    sort(vec.begin(), vec.end());
    return vec;
}
vector<int> resort(vector<int> vec) {
    sort(vec);
    reverse(vec.begin(), vec.end());
    return vec;
}
vector<vector<int>> input(int n, int m) {
    vector<vector<int>> table(n, vector<int>(m));
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            cin >> table. at(i).at(j);
        }
    }
    return table;
}
void output(vector<vector<int>> table) {
    for (int i = 0; i < table.size(); i++) {
        for (int j = 0; j < table.at(0).size(); j++) {
            cout << table.at(i).at(j) << " ";
        }
        cout << endl;
    }
}
long long perm(int n, int r) {
    if (n < r) {
        cout << "error" << endl;
        return 0;
    }
    long long perm = 1;
    for (int i = n; i > n - r; i--) {
        perm *= i;
    }
    return perm;
}
long long comb(int n, int r) {
    if (n < r) {
        cout << "error" << endl;
        return 0;
    }
    long long comb = perm(n,r);
    for (int i = r; i > 0; i--) {
        comb /= i;
    }
    return comb;
}
long long homo(int n, int r) {
    return comb(n + r - 1, n - 1);
}
long long fact(int n) {
    long long fact = 1;
    for (int i = n; i > 0; i--) {
        fact *= i;
    }
    return fact;
}
int gcd(int a, int b)
{
    if (a % b == 0)
    {
        return(b);
    }
    else
    {
        return(gcd(b, a % b));
    }
}
int lcm(int a, int b) {
    return a * b / gcd(a, b);
}
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: In function 'int main()':
a.cc:97:27: 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 '()' ?)
   97 |     for (int i = 0; i < s.size; i++) {
      |                         ~~^~~~
      |                               ()
Language: C++

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

int main(){
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  string s;
  cin>>s;
  string t;
  cin>>t;

  while(j--){
    
  for(int i=0;i<s.length()-1;i++){
       swap(s[i],s[i-1]);
  }
  if(s==t){
    cout<<"Yes";
    return 0;
  }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'j' was not declared in this scope
   12 |   while(j--){
      |         ^
Language: C++

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

int main(){
  string S,T;
  int cnt = 0;
  bool b = 0;
  cin >> S >> T;
  while(cnt<=S.size()){
    ++cnt;
    if(c==T){
      b = 1; break;
    }
    string c = S.at(S.size()-1);
    for(int i=0;i<S.size()-1;++i){
      c.push_back(S.at(i));
    }
  }
  if(b){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'c' was not declared in this scope
   11 |     if(c==T){
      |        ^
a.cc:14:20: 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
   14 |     string c = S.at(S.size()-1);
      |                ~~~~^~~~~~~~~~~~
Language: C++

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

vector< int > z_algorithm(const string &s) {
  vector< int > prefix(s.size());
  for(int i = 1, j = 0; i < s.size(); i++) {
    if(i + prefix[i - j] < j + prefix[j]) {
      prefix[i] = prefix[i - j];
    } else {
      int k = max(0, j + prefix[j] - i);
      while(i + k < s.size() && s[k] == s[i + k]) ++k;
      prefix[i] = k;
      j = i;
    }
  }
  prefix[0] = (int) s.size();
  return prefix;
}

int main(){
  string s,t; cin >> s >> t;
  string x;
  int n=s.length()
  x = s+t+t;
  string ans="No";
  auto v = z_algorithm(x);
  for(int i=n;i<3*n;i++){
  	if(v[i]>=n) ans="Yes";
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:3: error: expected ',' or ';' before 'x'
   26 |   x = s+t+t;
      |   ^
Language: C++

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

vector< int > z_algorithm(const string &s) {
  vector< int > prefix(s.size());
  for(int i = 1, j = 0; i < s.size(); i++) {
    if(i + prefix[i - j] < j + prefix[j]) {
      prefix[i] = prefix[i - j];
    } else {
      int k = max(0, j + prefix[j] - i);
      while(i + k < s.size() && s[k] == s[i + k]) ++k;
      prefix[i] = k;
      j = i;
    }
  }
  prefix[0] = (int) s.size();
  return prefix;
}

int main(){
  string s,t; cin >> s >> t;
  string x;
  int n=s.length()
  x = s+t+t;
  string ans="No";
  auto v = z_algorithm(x);
  for(int i=n;i<3*n;i++){
  	if(v[i]>=n) ans="Yes";
  }
  cout << ans << endl;
}


Compiler output:
a.cc:5:1: error: 'vector' does not name a type
    5 | vector< int > z_algorithm(const string &s) {
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:25:3: error: expected ',' or ';' before 'x'
   25 |   x = s+t+t;
      |   ^
a.cc:27:12: error: 'z_algorithm' was not declared in this scope
   27 |   auto v = z_algorithm(x);
      |            ^~~~~~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:50: error: 'str' was not declared in this scope; did you mean 'std'?
   11 |                 rotate(s.begin(), s.begin() + 1, str.end());
      |                                                  ^~~
      |                                                  std
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef tuple<int,int,int> T;
typedef vector<P> vp;
typedef vector<T> vt;


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 0;
    }
    s=rotate(s);
  }
  cout << "No" << endl;
  return 0;


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

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef tuple<int,int,int> T;
typedef vector<P> vp;
typedef vector<T> vt;

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 0;
    }
    s=rotate(s);
  }
  cout << "No" << endl;
  return 0;
}
string rotate(string s){
  return s.substr(1)+s[0];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: no matching function for call to 'rotate(std::string&)'
   22 |     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<stdio.h>
#include<string.h>
int main()
{
    int a,b,i,j,c=0,t,x[101];
    char ch1[101],ch2[101],l,m,n;
    gets(ch1);
    gets(ch2);
    l=strlen(ch1);
    for(i=0;i<l;i++)
    {
        if(ch1[i]==ch2[i])
            c++;
            else break;
    }
    if(c==l)
        printf("Yes\n");
    else
    {
        for(i=0;i<=l;i++)
        {
            t=0;
            x[0]=ch1[l-1];
            for(j=1;j<l;j++)
            {
                x[j]=ch1[j-1];
            }
            for(j=0;j<l;j++)
            {
                ch1[j]=x[j];
            }
            for(j=0;j<l;j++)
            {
                if(ch1[j]==ch2[j])
                    t++;
            }
            if(t==l)
            {
                printf("Yes\n");
                break;
            }
            else if(i==l)
                printf("No\n");
        }
    }
    return 0;
}


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

#include<stdio.h>
#include<string.h>
int main(void){
  char str1[101],str2[101],tmp;
  int i,j;
  scanf("%s",str1);
  scanf("%s",str2);
  for(i=1;i=<strlen(str1);i++){
    if(strcmp(str1,str2)==0){
      printf("Yes");
      return 0;
    }
    for(j=(strlen(str1)-1);j>=-1;j--){
      if(j==(strlen(str1)-1)){
        tmp=str1[j];
      }else if(j==-1){
        str1[j+1]=tmp;
      }else{
        str1[j+1]=str1[j];
      }
    }
    printf("%s\n",str1);
  }
  printf("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected expression before '<' token
    8 |   for(i=1;i=<strlen(str1);i++){
      |             ^
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++){
    string c = s.substr(0, N - 1);
    string c2 = s[N - 1];
    s = c2 + c;
    if(s == t){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: 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 c2 = s[N - 1];
      |                        ^
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++){
    string c = s.substr(0, N - 1);
    string c2 = s[N - 1];
    s = c2 + c;
    if(s == T){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: 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 c2 = s[N - 1];
      |                        ^
a.cc:11:13: error: 'T' was not declared in this scope
   11 |     if(s == T){
      |             ^
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; s++){
    string c = s.substr(0, N - 1);
    string c2 = s[N - 1];
    s = c2 + c;
    if(s == T){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    7 |   for(int i = 0; i < N; s++){
      |                         ~^~
a.cc:9:24: 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 c2 = s[N - 1];
      |                        ^
a.cc:11:13: error: 'T' was not declared in this scope
   11 |     if(s == T){
      |             ^
Language: C++


#include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;


int main() {
char s[101],t[101];
cin >> s >> t;
int num = strlen(s);
int flg = -1;
char ss[202];
REP(i,num) {
  ss[i] = s[i];
  ss[i+num] s[i];
}
int temp;
REP(i,num) {
  temp=0;
  REP(j,num) {
    if(ss[i+j]==t[j]) temp++;
  }
  if(temp==num) flg++;
}
if(flg==-1) {
  cout << "No" << endl;
} else {
  cout << "Yes" << endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected ';' before 's'
   21 |   ss[i+num] s[i];
      |            ^~
      |            ;
Language: C++


#include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;


int main() {
char s[101],t[101];
cin >> s >> t;
int num = strlen(s);
int flg = -1;
char ss[202] = s + s;
int temp;
REP(i,num) {
  temp=0;
  REP(j,num) {
    if(ss[i+j]==t[j]) temp++;
  }
  if(temp==num) flg++;
}
if(flg==-1) {
  cout << "No" << endl;
} else {
  cout << "Yes" << endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: invalid operands of types 'char [101]' and 'char [101]' to binary 'operator+'
   18 | char ss[202] = s + s;
      |                ~ ^ ~
      |                |   |
      |                |   char [101]
      |                char [101]
Language: C++


#include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;


int main() {
char s[101],t[101];
cin >> s >> t;
int num = strlen(s);
int flg = -1;
char ss[201] = s + s;
int temp;
REP(i,num) {
  temp=0;
  REP(j,num) {
    if(ss[i+j]==t[j]) temp++;
  }
  if(temp==num) flg++;
}
if(flg==-1) {
  cout << "No" << endl;
} else {
  cout << "Yes" << endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: invalid operands of types 'char [101]' and 'char [101]' to binary 'operator+'
   18 | char ss[201] = s + s;
      |                ~ ^ ~
      |                |   |
      |                |   char [101]
      |                char [101]
Language: C++


#include <bits/stdc++.h>
#include <math.h>
#define REP(i, n) for(int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1001001001;
const int mINF = -1001001001;


int main() {
char s[101],t[101];
cin >> s >> t;
int num = strlen(s);
int flg = -1;
char s[201] = s + s;
int temp;
REP(i,num) {
  temp=0;
  REP(j,num) {
    if(s[i+j]==t[j]) temp++;
  }
  if(temp==num) flg++;
}
if(flg==-1) {
  cout << "No" << endl;
} else {
  cout << "Yes" << endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:6: error: conflicting declaration 'char s [201]'
   18 | char s[201] = s + s;
      |      ^
a.cc:14:6: note: previous declaration as 'char s [101]'
   14 | char s[101],t[101];
      |      ^
a.cc:18:17: error: invalid operands of types 'char [101]' and 'char [101]' to binary 'operator+'
   18 | char s[201] = s + s;
      |               ~ ^ ~
      |               |   |
      |               |   char [101]
      |               char [101]
Language: Java

import java.util.*;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String t = sc.next();
        s = s + s;
        s.contains(t)
        System.out.println(s.contains(t) ? "Yes" : "No");
    }
}


Compiler output:
Main.java:9: error: ';' expected
        s.contains(t)
                     ^
1 error
Language: C

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

#define SIZE 100

int getline(char [], int);
void rightrot(char [], int);
int lower(char [], int);

main()
{
	int n, slen, tlen;
	char S[SIZE], T[SIZE];
	n = slen = getline(S, SIZE);
	tlen = getline(T, SIZE);
	if (slen >= 2 && slen <= 100 && slen == tlen && lower(S, slen) && lower(T, tlen)) {
		if (strcmp(S, T) != 0) {
			do {
				rightrot(S, n);
				slen--;
			} while (slen > 0 && strcmp(S, T) != 0);
			if (strcmp(S, T) == 0)
				printf("YES");
			else
				printf("NO");
		}  else
			printf("YES");
		
	}   else
		printf("NO");  
	printf("%d", clock());
	putchar('\n');
}

int getline(char line[], int limit)
{
	int i, c;
	for (i = 0; i<limit && (c = getchar()) != EOF && c != '\n'; ++i) 
		line[i] = c;

	line[i] = '\0';
	return i;
}

void rightrot(char a[], int n)
{
	int i, c;
	c = a[n-1];
	for (i = n-1; i > 0; --i)
		a[i] = a[i-1];
	a[0] = c;
}

int lower(char s[], int n)
{
	int i;
	for (i = 0; i < n; ++i)
		if (s[i] >= 'A' && s[i] <= 'Z')
			return 0;
		return 1;
}


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

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

#define SIZE 100

int getline(char [], int);
void rightrot(char [], int);
int lower(char [], int);

main()
{
	int n, slen, tlen;
	char S[SIZE], T[SIZE];
	n = slen = getline(S, SIZE);
	tlen = getline(T, SIZE);
	if (slen >= 2 && slen <= 100 && slen == tlen && lower(S, slen) && lower(T, tlen)) {
		if (strcmp(S, T) != 0) {
			do {
				rightrot(S, n);
				slen--;
			} while (slen > 0 && strcmp(S, T) != 0);
			if (strcmp(S, T) == 0)
				printf("YES");
			else
				printf("NO");
		}  else
			printf("YES");
		
	}   else
		printf("NO");  
	putchar('\n');
}

int getline(char line[], int limit)
{
	int i, c;
	for (i = 0; i<limit && (c = getchar()) != EOF && c != '\n'; ++i) 
		line[i] = c;

	line[i] = '\0';
	return i;
}

void rightrot(char a[], int n)
{
	int i, c;
	c = a[n-1];
	for (i = n-1; i > 0; --i)
		a[i] = a[i-1];
	a[0] = c;
}

int lower(char s[], int n)
{
	int i;
	for (i = 0; i < n; ++i)
		if (s[i] >= 'A' && s[i] <= 'Z')
			return 0;
		return 1;
}


Compiler output:
main.c:6:5: error: conflicting types for 'getline'; have 'int(char *, int)'
    6 | int getline(char [], int);
      |     ^~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:697:18: note: previous declaration of 'getline' with type '__ssize_t(char ** restrict,  size_t * restrict,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  FILE * restrict)'}
  697 | extern __ssize_t getline (char **__restrict __lineptr,
      |                  ^~~~~~~
main.c:10:1: error: return type defaults to 'int' [-Wimplicit-int]
   10 | main()
      | ^~~~
main.c:34:5: error: conflicting types for 'getline'; have 'int(char *, int)'
   34 | int getline(char line[], int limit)
      |     ^~~~~~~
/usr/include/stdio.h:697:18: note: previous declaration of 'getline' with type '__ssize_t(char ** restrict,  size_t * restrict,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  FILE * restrict)'}
  697 | extern __ssize_t getline (char **__restrict __lineptr,
      |                  ^~~~~~~
Language: C

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

#define SIZE 100

int getline(char [], int);
void rightrot(char [], int);
int lower(char [], int);

main()
{
	int n, slen, tlen;
	char S[SIZE], T[SIZE];
	n = slen = getline(S, SIZE);
	tlen = getline(T, SIZE);
	if (slen >= 2 && slen <= 100 && slen == tlen && lower(S, slen) && lower(T, tlen)) {
		if (strcmp(S, T) != 0) {
			while (slen > 0 && strcmp(S, T) != 0) {
				rightrot(S, n);
				slen--;
			}
			if (strcmp(S, T) == 0)
				printf("YES");
			else
				printf("NO");
		}  else
			printf("YES");
		
	}   else
		printf("NO");   
	putchar('\n');
}

int getline(char line[], int limit)
{
	int i, c;
	for (i = 0; i<limit && (c = getchar()) != EOF && c != '\n'; ++i) 
		line[i] = c;

	line[i] = '\0';
	return i;
}

void rightrot(char a[], int n)
{
	int i, c;
	c = a[n-1];
	for (i = n-1; i > 0; --i)
		a[i] = a[i-1];
	a[0] = c;
}

int lower(char s[], int n)
{
	int i;
	for (i = 0; i < n; ++i)
		if (s[i] >= 'A' && s[i] <= 'Z')
			return 0;
		return 1;
}


Compiler output:
main.c:6:5: error: conflicting types for 'getline'; have 'int(char *, int)'
    6 | int getline(char [], int);
      |     ^~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:697:18: note: previous declaration of 'getline' with type '__ssize_t(char ** restrict,  size_t * restrict,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  FILE * restrict)'}
  697 | extern __ssize_t getline (char **__restrict __lineptr,
      |                  ^~~~~~~
main.c:10:1: error: return type defaults to 'int' [-Wimplicit-int]
   10 | main()
      | ^~~~
main.c:34:5: error: conflicting types for 'getline'; have 'int(char *, int)'
   34 | int getline(char line[], int limit)
      |     ^~~~~~~
/usr/include/stdio.h:697:18: note: previous declaration of 'getline' with type '__ssize_t(char ** restrict,  size_t * restrict,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  FILE * restrict)'}
  697 | extern __ssize_t getline (char **__restrict __lineptr,
      |                  ^~~~~~~
Language: C

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

#define SIZE 100

int getline(char [], int);
void rightrot(char [], int);
int lower(char [], int);

main()
{
	int slen, tlen;
	char S[SIZE], T[SIZE];
	slen = getline(S, SIZE);
	tlen = getline(T, SIZE);
	if (slen >= 2 && slen <= 100 && slen == tlen && lower(S, slen) && lower(T, tlen)) {
		
		if (!strcmp(S, T)) {
			while (slen > 0 && !strcmp(S,T)) {
				rightrot(S, slen);
				slen--;
			}
			if (strcmp(S, T))
				printf("YES");
			else
				printf("NO");
		}  else
			printf("YES");
		
	}   else
		printf("NO");   
	putchar('\n');
}

int getline(char line[], int limit)
{
	int i, c;
	for (i = 0; i<limit && (c = getchar()) != EOF && c != '\n'; ++i) 
		line[i] = c;
	if (c == '\n')
		line[i++] =  c;
	line[i] = '\0';
	return i;
}

void rightrot(char a[], int n)
{
	int i, c;
	c = a[n-1];
	for (i = n-1; i > 0; --i)
		a[i] = a[i-1];
	a[0] = c;
}

int lower(char s[], int n)
{
	int i;
	for (i = 0; i < n; ++i)
		if (s[i] >= 'A' && s[i] <= 'Z')
			return 0;
		return 1;
}

Compiler output:
main.c:6:5: error: conflicting types for 'getline'; have 'int(char *, int)'
    6 | int getline(char [], int);
      |     ^~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:697:18: note: previous declaration of 'getline' with type '__ssize_t(char ** restrict,  size_t * restrict,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  FILE * restrict)'}
  697 | extern __ssize_t getline (char **__restrict __lineptr,
      |                  ^~~~~~~
main.c:10:1: error: return type defaults to 'int' [-Wimplicit-int]
   10 | main()
      | ^~~~
main.c:35:5: error: conflicting types for 'getline'; have 'int(char *, int)'
   35 | int getline(char line[], int limit)
      |     ^~~~~~~
/usr/include/stdio.h:697:18: note: previous declaration of 'getline' with type '__ssize_t(char ** restrict,  size_t * restrict,  FILE * restrict)' {aka 'long int(char ** restrict,  long unsigned int * restrict,  FILE * restrict)'}
  697 | extern __ssize_t getline (char **__restrict __lineptr,
      |                  ^~~~~~~
Language: C++

#include <iostream>
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;
			return 0;
		}
		rotate(t.begin(), t.begin() + 1, t.end());
	}
	cout << "No" << endl;
	return 0;
}

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