Language: C++

#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:7:4: error: 'cin' was not declared in this scope
    7 |    cin >> S >> T;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define rep(i,n) for(int i = 0; i < (n); ++i)
a.cc:8:4: error: 'String' was not declared in this scope
    8 |    String S2 = S + S;
      |    ^~~~~~
a.cc:10:12: error: request for member 'size' in 'T', which is of non-class type 'int'
   10 |    rep(i,T.size()){
      |            ^~~~
a.cc:1:38: note: in definition of macro 'rep'
    1 | #define rep(i,n) for(int i = 0; i < (n); ++i)
      |                                      ^
a.cc:11:12: error: 'S2' was not declared in this scope; did you mean 'S'?
   11 |      rep(j,S2.size()){
      |            ^~
a.cc:1:38: note: in definition of macro 'rep'
    1 | #define rep(i,n) for(int i = 0; i < (n); ++i)
      |                                      ^
a.cc:12:13: error: request for member 'at' in 'T', which is of non-class type 'int'
   12 |        if(T.at(i) == S2.at(j)){
      |             ^~
a.cc:13:18: error: request for member 'size' in 'T', which is of non-class type 'int'
   13 |          rep(k,T.size()) if( T.at(i+k) == S2.at(j+k) ) count++;
      |                  ^~~~
a.cc:1:38: note: in definition of macro 'rep'
    1 | #define rep(i,n) for(int i = 0; i < (n); ++i)
      |                                      ^
a.cc:13:32: error: request for member 'at' in 'T', which is of non-class type 'int'
   13 |          rep(k,T.size()) if( T.at(i+k) == S2.at(j+k) ) count++;
      |                                ^~
a.cc:17:21: error: request for member 'size' in 'T', which is of non-class type 'int'
   17 |      if( count == T.size() ) break;
      |                     ^~~~
a.cc:19:19: error: request for member 'size' in 'T', which is of non-class type 'int'
   19 |    if( count == T.size() ) cout << "Yes" << endl;
      |                   ^~~~
a.cc:19:28: error: 'cout' was not declared in this scope
   19 |    if( count == T.size() ) cout << "Yes" << endl;
      |                            ^~~~
a.cc:19:28: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:45: error: 'endl' was not declared in this scope
   19 |    if( count == T.size() ) cout << "Yes" << endl;
      |                                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define rep(i,n) for(int i = 0; i < (n); ++i)
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |    else cout << "No" << endl;
      |         ^~~~
a.cc:20:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:25: error: 'endl' was not declared in this scope
   20 |    else cout << "No" << endl;
      |                         ^~~~
a.cc:20:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'