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

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

#define SIZE 100

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

mian()
{
	int slen, tlen;
	char S[SIZE], T[SIZE];
	slen = getline(S, SIZE);
	tlen = getline(T, SIZE);
	if (slen > 2 && slen < 100) {
		if (slen == tlen) {
			if (!strcmp(S, T)) {
				while (len > 0 && !strcmp(S,T)) {
					rightrot(S, len);
					len--;
				}
				if (strcmp(S, T))
					printf("YES");
				else
					prinf("NO");
			}  else
				printf("YES");
        }   else
			prinf("NO");      
	}   else
		printf("NO");    
}

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;
}

Compiler output:
a.cc:9:1: error: ISO C++ forbids declaration of 'mian' with no type [-fpermissive]
    9 | mian()
      | ^~~~
a.cc: In function 'int mian()':
a.cc:18:40: error: 'len' was not declared in this scope; did you mean 'tlen'?
   18 |                                 while (len > 0 && !strcmp(S,T)) {
      |                                        ^~~
      |                                        tlen
a.cc:25:41: error: 'prinf' was not declared in this scope; did you mean 'printf'?
   25 |                                         prinf("NO");
      |                                         ^~~~~
      |                                         printf
a.cc:29:25: error: 'prinf' was not declared in this scope; did you mean 'printf'?
   29 |                         prinf("NO");
      |                         ^~~~~
      |                         printf
a.cc:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
   32 | }
      | ^
Language: C++

#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
#include<iostream>
#include<map>
using namespace std;
const int maxn=1000010;
char ch1[maxn];
char ch2[maxn];

int main()
{
    cin.getline(ch1);
    cin.getline(ch2);
    int flag=0;
    for (int i = 0; i < strlen(ch1); i++){
        char tmp = ch1[0];
        for (int j = 0; j < strlen(ch1) - 1; j++){
            ch1[j] = ch1[j + 1];
        }
        ch1[strlen(ch1) - 1] = tmp;
        if (strcmp(ch1, ch2) == 0)
        {
            cout<<"Yes";
            flag=1;
        }
    }
    if(flag==0)
    {
         cout<<"No";
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: no matching function for call to 'std::basic_istream<char>::getline(char [1000010])'
   14 |     cin.getline(ch1);
      |     ~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/iostream:42,
                 from a.cc:5:
/usr/include/c++/14/istream:740:5: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize, char_type) [with _CharT = char; _Traits = std::char_traits<char>; char_type = char; std::streamsize = long int]'
  740 |     basic_istream<char>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:740:5: note:   candidate expects 3 arguments, 1 provided
/usr/include/c++/14/istream:520:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; char_type = char; std::streamsize = long int]'
  520 |       getline(char_type* __s, streamsize __n)
      |       ^~~~~~~
/usr/include/c++/14/istream:520:7: note:   candidate expects 2 arguments, 1 provided
a.cc:15:16: error: no matching function for call to 'std::basic_istream<char>::getline(char [1000010])'
   15 |     cin.getline(ch2);
      |     ~~~~~~~~~~~^~~~~
/usr/include/c++/14/istream:740:5: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize, char_type) [with _CharT = char; _Traits = std::char_traits<char>; char_type = char; std::streamsize = long int]'
  740 |     basic_istream<char>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/istream:740:5: note:   candidate expects 3 arguments, 1 provided
/usr/include/c++/14/istream:520:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::getline(char_type*, std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>; char_type = char; std::streamsize = long int]'
  520 |       getline(char_type* __s, streamsize __n)
      |       ^~~~~~~
/usr/include/c++/14/istream:520:7: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <stdio.h>
#include <map>
#include <set>
#include <algorithm>

using namespace std;

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

  for (int i = 1; i < (int)S.size(); ++i)
  {
    char chara_keeper = S[0];
    for (int j = 0; j < (int)S.size(); ++j)
    {
      char s = S[(j + 1) % 5];
      S[(j + 1) % 5] = chara_keeper;
      chara_keeper = s;
    }
    if (S == T)
    {
      cout << "Yes" << endl;
      return　0;
    }
  }
  cout << "No" << endl;
}

Compiler output:
a.cc:28:7: error: extended character 　 is not valid in an identifier
   28 |       return　0;
      |       ^
a.cc: In function 'int main()':
a.cc:28:7: error: 'return\U000030000' was not declared in this scope
   28 |       return　0;
      |       ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <algorithm>
int i= 0,j=0,x=0,flag=1;
bool comap(string t,string a){
    for(int i = 0; i < a.size(); i++){
        for(int j=0;j<t.size();j++){
            if(a[i]==t[j])
                continue;
        else{
            flag=0;
            break;}}}
if(flag==1)
    return 1;
else
    return 0;}
int main(){
    string a,t;
    cin>>a;cin>>t;
    for (int i=1; i<a.size()*2; i++){
        rotate(a.begin(), a.begin()+1, a.end());
        if(comap(t,a)==1){
            cout<<"YES";
            break;}}
    if (comap(t,a)==0)
        cout<<"NO";

Compiler output:
a.cc: In function 'int main()':
a.cc:26:20: error: expected '}' at end of input
   26 |         cout<<"NO";
      |                    ^
a.cc:17:11: note: to match this '{'
   17 | int main(){
      |           ^
Language: C++

#include <iostream>
 #include <deque>
  using namespace std; 
  int main()
   {
        deque < char > d;
         string s,t;
          int flag;
           cin >> s >> t;
            for (int k=0;i<s.size();k++){
                    d.push_back(s[k]);
            } for (int k=0;i<s.size();k++){
                 d.push_front(d[s.size()-1]);
                  d.pop_back();
                   for (int j=0;j<t.size();j++){
                            if (d[j]==t[j]){
                                 flag=1;
                   }else{
                        flag=0; break; }
                         } 
                         if (flag==1){
                                break; }
                         } 
                         if (flag==1){
                                cout << "Yes"; }
                         else{
                                cout << "No"; } return 0; }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: 'i' was not declared in this scope
   10 |             for (int k=0;i<s.size();k++){
      |                          ^
a.cc:12:28: error: 'i' was not declared in this scope
   12 |             } for (int k=0;i<s.size();k++){
      |                            ^
Language: C++

#include <iostream>
 #include <deque>
  using namespace std; 
  int main()
   {
        deque < char > d;
         string s,t;
          int flag;
           cin >> s >> t;
            for (int k=0;i<s.size();k++){
                    d.push_back(s[k]);
            } for (int i=0;i<s.size();k++){
                 d.push_front(d[s.size()-1]);
                  d.pop_back();
                   for (int j=0;j<t.size();j++){
                            if (d[j]==t[j]){
                                 flag=1;
                   }else{
                        flag=0; break; }
                         } 
                         if (flag==1){
                                break; }
                         } 
                         if (flag==1){
                                cout << "Yes"; }
                         else{
                                cout << "No"; } return 0; }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: 'i' was not declared in this scope
   10 |             for (int k=0;i<s.size();k++){
      |                          ^
a.cc:12:39: error: 'k' was not declared in this scope
   12 |             } for (int i=0;i<s.size();k++){
      |                                       ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<deque>
using namespace std ; 
string sort(string ,string )
int main()
{
	int x ,y,j;
	string s ,t,c ;
	cin>>s>>t;
	x=s.length();
	y=t.length();
	if(s==t)
		cout<<"Yes";
	else 
	{
		if(x!=y)
		{
			cout<<"No";
			return 0; 
		}
		else if(x==y)
		{
			c=sort(s,t);
			if(c=="1")
			{
				deque<char>r;
				deque<char>r2;
				for(int i=0;i<x;i++)
				{
					r[i]=s[i];
					r2[i]=t[i];
				}

				while (r!=r2)
				{
					r.push_front(r[x-1]);
					r.pop_back();
				}
				cout<<"Yes";
			}
			else if (c=="0")
			{
				cout<<"No";
				return 0;
			}

		
		}
	}
	
}
string sort (string a,string b )
{
	std::sort(a.begin(),a.end());
	std::sort (b.begin(),b.end());
	if(a==b)
		return "1";
	else 
		return "0";
}

Compiler output:
a.cc:7:1: error: expected initializer before 'int'
    7 | int main()
      | ^~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  stirng s,t,ans;
  cin >> s >> t;
  s = s+s;
  ans = s.find(t);
  cout << ((ans != string::npos) "Yes":"No") << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng s,t,ans;
      |   ^~~~~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s >> t;
      |          ^
a.cc:6:15: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |   cin >> s >> t;
      |               ^
      |               tm
a.cc:8:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   ans = s.find(t);
      |   ^~~
      |   abs
a.cc:9:33: error: expected ')' before string constant
    9 |   cout << ((ans != string::npos) "Yes":"No") << endl;
      |           ~                     ^~~~~~
      |                                 )
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false); cin.tie(0);
#define FOR(i,s,n) for(int i = s; i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(n) (n).begin(), (n).end()
#define RALL(n) (n).rbegin(), (n).rend()
#define ATYN(n) cout << ( (n) ? "Yes":"No") << '\n';
#define CFYN(n) cout << ( (n) ? "YES":"NO") << '\n';
#define OUT(n) cout << (n) << '\n';
using ll = long long;
using ull = unsigned long long;
using pii = pair<int,int>;
using pll = pair<ll,ll>;

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

    int sl = s.size()
    REP(i,sl) {
        bool ok = true;
        REP(j,sl) {
            if (s[(i+j) % sl] != t[j]) {
                ok = false;
                break;
            }
        }
        if (ok) {
            OUT("Yes")
            return 0;
        }
    }

    OUT("No")
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:20: error: expected ',' or ';' before 'for'
    4 | #define FOR(i,s,n) for(int i = s; i < (n); i++)
      |                    ^~~
a.cc:5:18: note: in expansion of macro 'FOR'
    5 | #define REP(i,n) FOR(i,0,n)
      |                  ^~~
a.cc:23:5: note: in expansion of macro 'REP'
   23 |     REP(i,sl) {
      |     ^~~
a.cc:23:9: error: 'i' was not declared in this scope
   23 |     REP(i,sl) {
      |         ^
a.cc:4:35: note: in definition of macro 'FOR'
    4 | #define FOR(i,s,n) for(int i = s; i < (n); i++)
      |                                   ^
a.cc:23:5: note: in expansion of macro 'REP'
   23 |     REP(i,sl) {
      |     ^~~
Language: C++

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

int main() {
	string s,t;
	cin>>s;
	cin>>t;
	int ns=s.length();
	int nt=t.length();
	sort(s.begin(),s.end());
	sort(t.begin(),taaaaaaaaaaaaaaab
aaaaaaaaaaaaaaab
.end());
	if(s==t)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: 'taaaaaaaaaaaaaaab' was not declared in this scope
   12 |         sort(t.begin(),taaaaaaaaaaaaaaab
      |                        ^~~~~~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no matching function for call to 'std::__cxx11::basic_string<char>::at()'
    9 |   if(i==S.at())cout<<"No"<<endl;
      |         ~~~~^~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1287:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; const_reference = const char&; size_type = long unsigned int]'
 1287 |       at(size_type __n) const
      |       ^~
/usr/include/c++/14/bits/basic_string.h:1287:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/basic_string.h:1309:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::at(size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]'
 1309 |       at(size_type __n)
      |       ^~
/usr/include/c++/14/bits/basic_string.h:1309:7: note:   candidate expects 1 argument, 0 provided
Language: C++

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

int main() {
    string s,t;
    cin >> s >> t;
    string ans = "Yes";
    for(int i=0;i<s.size();i++){
        if(t.at(i)!=a.at(s.size()-1-i)){
            ans=="No";
            break;
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'a' was not declared in this scope
    9 |         if(t.at(i)!=a.at(s.size()-1-i)){
      |                     ^
a.cc:10:16: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   10 |             ans=="No";
      |             ~~~^~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected initializer before '==' token
    7 |     string ans == "Yes";
      |                ^~
a.cc:10:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |             ans=="No";
      |             ^~~
      |             abs
a.cc:14:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <cstdio>
#include <cstring>
using namespace std;
const int maxn = 128;
int hashtable[maxn] = {0};
char s[101],t[101];
int main() {
    gets_s(s);
    gets_s(t);
    bool flag = true;
    int len1 = strlen(s);
    int len2 = strlen(t);
    if(len1 != len2) {
	    flag = false;
    }else {
        for(int i = 0; i < len1; i++) {
		    hashtable[s[i]]++;
		    hashtable[t[i]]--;
	    }
	}
	    for(int i = 0; i < maxn; i++) {
		    if(hashtable[i] != 0) {
			    flag = false;
			    break;
		    }
	    }
    if(flag == false) {
		printf("No\n");
        for(int i = 0; i < len1; i++) {
		    printf("%c",s[i]);
	    }
	    printf(" does not equal ");
	     for(int i = 0; i < len2; i++) {
		    printf("%c",t[i]);
	    }
	    printf(" after any number of operations.");
	}else {
		printf("Yes\nIn the first operation, ");
		for(int i = 0; i < len1; i++) {
		    printf("%c",s[i]);
	    }
		printf(" becomes ");
	    for(int i = 0; i < len2; i++) {
		    printf("%c",t[i]);
	    }
		printf(".");
		printf("\nIn the second operation, ");
		for(int i = 0; i < len1; i++) {
		    printf("%c",t[i]);
	    }
		printf(" becomes ");
	    for(int i = 0; i < len2; i++) {
		    printf("%c",s[i]);
	    }
		printf(".");
	}
	return 0;
	}



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

#include <cstdio>
#include <cstring>
using namespace std;
const int maxn = 128;
int hashtable[maxn] = {0};
char s[101],t[101];
int main() {
    gets(s);
    gets(t);
    bool flag = true;
    int len1 = strlen(s);
    int len2 = strlen(t);
    if(len1 != len2) {
	    flag = false;
    }else {
        for(int i = 0; i < len1; i++) {
		    hashtable[s[i]]++;
		    hashtable[t[i]]--;
	    }
	}
	    for(int i = 0; i < maxn; i++) {
		    if(hashtable[i] != 0) {
			    flag = false;
			    break;
		    }
	    }
    if(flag == false) {
		printf("No\n");
        for(int i = 0; i < len1; i++) {
		    printf("%c",s[i]);
	    }
	    printf(" does not equal ");
	     for(int i = 0; i < len2; i++) {
		    printf("%c",t[i]);
	    }
	    printf(" after any number of operations.");
	}else {
		printf("Yes\nIn the first operation, ");
		for(int i = 0; i < len1; i++) {
		    printf("%c",s[i]);
	    }
		printf(" becomes ");
	    for(int i = 0; i < len2; i++) {
		    printf("%c",t[i]);
	    }
		printf(".");
		printf("\nIn the second operation, ");
		for(int i = 0; i < len1; i++) {
		    printf("%c",t[i]);
	    }
		printf(" becomes ");
	    for(int i = 0; i < len2; i++) {
		    printf("%c",s[i]);
	    }
		printf(".");
	}
	return 0;
	}



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

#include <cstdio>
#include <string>
using namespace std;
const int maxn = 128;
int hashtable[maxn] = {0};
char s[101],t[101];
int main() {
    gets(s);
    gets(t);
    bool flag = true;
    int len1 = strlen(s);
    int len2 = strlen(t);
    if(len1 != len2) {
	    flag = false;
    }else {
        for(int i = 0; i < len1; i++) {
		    hashtable[s[i]]++;
		    hashtable[t[i]]--;
	    }
	}
	    for(int i = 0; i < maxn; i++) {
		    if(hashtable[i] != 0) {
			    flag = false;
			    break;
		    }
	    }
    if(flag == false) {
		printf("No\n");
        for(int i = 0; i < len1; i++) {
		    printf("%c",s[i]);
	    }
	    printf(" does not equal ");
	     for(int i = 0; i < len2; i++) {
		    printf("%c",t[i]);
	    }
	    printf(" after any number of operations.");
	}else {
		printf("Yes\nIn the first operation, ");
		for(int i = 0; i < len1; i++) {
		    printf("%c",s[i]);
	    }
		printf(" becomes ");
	    for(int i = 0; i < len2; i++) {
		    printf("%c",t[i]);
	    }
		printf(".");
		printf("\nIn the second operation, ");
		for(int i = 0; i < len1; i++) {
		    printf("%c",t[i]);
	    }
		printf(" becomes ");
	    for(int i = 0; i < len2; i++) {
		    printf("%c",s[i]);
	    }
		printf(".");
	}
	return 0;
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(s);
      |     ^~~~
      |     getw
a.cc:11:16: error: 'strlen' was not declared in this scope
   11 |     int len1 = strlen(s);
      |                ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <string>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string s, t;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     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 | using namespace std;
a.cc:6:12: error: 's' was not declared in this scope
    6 |     cin >> s >> t;
      |            ^
a.cc:6:17: error: 't' was not declared in this scope
    6 |     cin >> s >> t;
      |                 ^
a.cc:11:13: error: 'cout' was not declared in this scope
   11 |             cout << "Yes" << endl;
      |             ^~~~
a.cc:11:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:30: error: 'endl' was not declared in this scope
   11 |             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 | using namespace std;
a.cc:14:9: error: 'rotate' was not declared in this scope
   14 |         rotate(s.begin(), s.begin() + 1, s.end());
      |         ^~~~~~
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "No" << endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:21: error: 'endl' was not declared in this scope
   17 |     cout << "No" << endl;
      |                     ^~~~
a.cc:17:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

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

int main() {
    string s, t;
    bool flag = false;
    cin >> s >> t;
    rep(i, s.length()) {
        string temp = s.substr(i, s.length()) + s.substr(0, i);
        if(temp == t) flag = true;
    }
    if(flag) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:2: error: illegal character: '#'
#define rep(i, n) for(int i = 0; i < n; i++)
^
Main.java:2: error: class, interface, enum, or record expected
#define rep(i, n) for(int i = 0; i < n; i++)
                                 ^
Main.java:2: error: class, interface, enum, or record expected
#define rep(i, n) for(int i = 0; i < n; i++)
                                        ^
Main.java:8: error: not a statement
    cin >> s >> t;
             ^
Main.java:13: error: not a statement
    if(flag) cout << "Yes" << endl;
                           ^
Main.java:14: error: not a statement
    else cout << "No" << endl;
                      ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:9: error: ';' expected
    rep(i, s.length()) {
                      ^
10 errors
Language: C++

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

int main(){
 	string t,T;
  	cin >> t >> T;
  	for(int i = 0 ; i < t.length() ; i ++){
     	if(t.at(0) == T.at(i)){
        	for(int I = 0 ; I < t.length() ; I ++){
             	if(i + I < t.lengtha()){
                  
                }
            }
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'lengtha'; did you mean 'length'?
   11 |                 if(i + I < t.lengtha()){
      |                              ^~~~~~~
      |                              length
Language: C++

#include <iostream>
#include <string>
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:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |   sort(s.begin(), s.end());
      |   ^~~~
      |   short
Language: C++

#include<stdio.h>
#include<string.h>
int main(){
    char s[201],t[101],i,n,ans=0;
    scanf("%s%s",s,t);
    n=strlen(s);
    for(i=0;i<n;i++){
        if(strnicmp(s+i,t,n)==0)ans=1;
    }
    if(ans=1) printf("Yes/n");
    else printf("No\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'strnicmp' was not declared in this scope; did you mean 'strncmp'?
    8 |         if(strnicmp(s+i,t,n)==0)ans=1;
      |            ^~~~~~~~
      |            strncmp
Language: C++

//shara's here
//SPEEEEEEEEEED IS KEEEEEEEEEEY
#include <bits/stdc++.h>
using namespace std;
//fold
typedef int q;
typedef double w;
typedef string s;
typedef long long ll;
//using ll = long long;
typedef long double ld;
const ll INF = 1e18 + 10;
/*#if !defined(ONLINE_JUDGE)
#include "/home/xsharawi/Desktop/cpp/debug.hpp"
#define debug(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#define debug(x...)
#endif
#define push_back pb
#define speed ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)*/
//endfold
int main(){
    speed;
    s ss , dd , currl="";
    cin >> ss >> dd;
    if(ss==dd){
    	cout<<"Yes"<<endl;
    	return 0;
    }
    bool ok = false;
    int n = (int)ss.size();
    for( int i = 0 ; i < n ; i++ ){
    	s curr="";
    	char x = ss[n-1];
    	currl+=x;
    	ss.pop_back();
    	ss=x+ss;
    	if(ss==dd){
    		ok = true;
    		break;
    	}
    }
    if(ok)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;



























return 0;}
/*
███████████████████████████████████████████████████
███████████████████████████████████████████████████
██████████████████████████████████▀████████████████
██████████████████████████████████░▀███████████████
██████████████████████████████▌███░░░▀▀████████████
██▀████████████████████▐██████░▐██░░░░░░▀▀█████████
██░████████████████████▐█████▌░██▌▄░░░░▄▄░▄████▀███
█▌░███████████████████▀░█████░░░█░░░▄████░░███▀▐███
█▌░▐██████████████████░░████▌░░░▀░░▀███▀▀░▐███▄████
██░▀██████████████▌▐█▐▄▄████▌░░░░░░░░░░░░░▌████████
███░███████████████▀░▄▄██▀█▐░░░░░░░░░░░░░░▐████████
███▄░██████████████▄░░░░░░▀▀▀░░░░░░░░░░░░░█▐███████
████▄░██████████████████▄▄▄▄▄▄▐▄░░░░░░░░░░░████████
█████▄█████████████████▀▀▀▀▀▀░░░░░░░░░░░░░░████████
████████████████████████▄░░░░░░░░░░░░░░░▄░░████████
██████████████████████████▄▄▄░░░░░░░░░▄█░▄█████████
████████████████████████████████▄░░░░██▄███▀░░▀████
█████████████████████████████▀█████▄███▀▀▀░░▄▄░████
████████████████████████████▀░░▀░░▀▀░░░░▄▄▄██▀░░▀▀█
███████████████████████████▌░░░░░░░░░░░███████░░░▄█
███████████████▄░▀████████▀░░░░░░▀░░░░███████▌░░░██
███▄▄████████████▄░▀██████▄░░░░░█░░░░████████░░░▀▀
░▀█████████████████▄░▀█████░░░░██░░░░▀██████░░░░░▄█
▐█▄▀█████████████████▄░▀████░░░██▌░░░▐████▀░░░░▄███
▐███▄▀▀█████████████████▄░▀▀░░░░▀██▌▄█▀▀░░░▄▄██████
▀▀▀▀▀░░░▀▀▀▀▀░░░▀▀▀▀▀▀▀▀▀▀▀░░░░░░░▀▀░░░░░░▀▀▀▀▀▀▀▀▀
*/




Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'speed' was not declared in this scope
   23 |     speed;
      |     ^~~~~
Language: C++

//shara's here
//SPEEEEEEEEEED IS KEEEEEEEEEEY
#include <bits/stdc++.h>
using namespace std;
//fold
typedef int q;
typedef double w;
typedef string s;
typedef long long ll;
//using ll = long long;
typedef long double ld;
const ll INF = 1e18 + 10;
#if !defined(ONLINE_JUDGE)
#include "/home/xsharawi/Desktop/cpp/debug.hpp"
#define debug(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#define debug(x...)
#endif
#define push_back pb
#define speed ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)
//endfold
int main(){
    speed;
    s ss , dd , currl="";
    cin >> ss >> dd;
    if(ss==dd){
    	cout<<"Yes"<<endl;
    	return 0;
    }
    bool ok = false;
    int n = (int)ss.size();
    for( int i = 0 ; i < n ; i++ ){
    	s curr="";
    	char x = ss[n-1];
    	currl+=x;
    	ss.pop_back();
    	ss=x+ss;
    	if(ss==dd){
    		ok = true;
    		break;
    	}
    }
    if(ok)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;



























return 0;}
/*
███████████████████████████████████████████████████
███████████████████████████████████████████████████
██████████████████████████████████▀████████████████
██████████████████████████████████░▀███████████████
██████████████████████████████▌███░░░▀▀████████████
██▀████████████████████▐██████░▐██░░░░░░▀▀█████████
██░████████████████████▐█████▌░██▌▄░░░░▄▄░▄████▀███
█▌░███████████████████▀░█████░░░█░░░▄████░░███▀▐███
█▌░▐██████████████████░░████▌░░░▀░░▀███▀▀░▐███▄████
██░▀██████████████▌▐█▐▄▄████▌░░░░░░░░░░░░░▌████████
███░███████████████▀░▄▄██▀█▐░░░░░░░░░░░░░░▐████████
███▄░██████████████▄░░░░░░▀▀▀░░░░░░░░░░░░░█▐███████
████▄░██████████████████▄▄▄▄▄▄▐▄░░░░░░░░░░░████████
█████▄█████████████████▀▀▀▀▀▀░░░░░░░░░░░░░░████████
████████████████████████▄░░░░░░░░░░░░░░░▄░░████████
██████████████████████████▄▄▄░░░░░░░░░▄█░▄█████████
████████████████████████████████▄░░░░██▄███▀░░▀████
█████████████████████████████▀█████▄███▀▀▀░░▄▄░████
████████████████████████████▀░░▀░░▀▀░░░░▄▄▄██▀░░▀▀█
███████████████████████████▌░░░░░░░░░░░███████░░░▄█
███████████████▄░▀████████▀░░░░░░▀░░░░███████▌░░░██
███▄▄████████████▄░▀██████▄░░░░░█░░░░████████░░░▀▀
░▀█████████████████▄░▀█████░░░░██░░░░▀██████░░░░░▄█
▐█▄▀█████████████████▄░▀████░░░██▌░░░▐████▀░░░░▄███
▐███▄▀▀█████████████████▄░▀▀░░░░▀██▌▄█▀▀░░░▄▄██████
▀▀▀▀▀░░░▀▀▀▀▀░░░▀▀▀▀▀▀▀▀▀▀▀░░░░░░░▀▀░░░░░░▀▀▀▀▀▀▀▀▀
*/




Compiler output:
a.cc:14:10: fatal error: /home/xsharawi/Desktop/cpp/debug.hpp: No such file or directory
   14 | #include "/home/xsharawi/Desktop/cpp/debug.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

//shara's here
//SPEEEEEEEEEED IS KEEEEEEEEEEY
#include <bits/stdc++.h>
using namespace std;
//fold
typedef int q;
typedef double w;
typedef string s;
typedef long long ll;
//using ll = long long;
typedef long double ld;
const ll INF = 1e18 + 10;
#if !defined(ONLINE_JUDGE)
#include "/home/xsharawi/Desktop/cpp/debug.hpp"
#define debug(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#define debug(x...)
#endif
#define push_back pb
#define speed ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)
//endfold
int main(){
    speed;
    s ss , dd , currl="";
    cin >> ss >> dd;
    if(ss==dd){
    	cout<<"Yes"<<endl;
    	return 0;
    }
    bool ok = false;
    int n = (int)ss.size();
    for( int i = 0 ; i < n ; i++ ){
    	s curr="";
    	char x = ss[n-1];
    	debug(x);
    	currl+=x;
    	ss.pop_back();
    	ss=x+ss;
    	if(ss==dd){
    		ok = true;
    		break;
    	}
    }
    if(ok)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;



























return 0;}
/*
███████████████████████████████████████████████████
███████████████████████████████████████████████████
██████████████████████████████████▀████████████████
██████████████████████████████████░▀███████████████
██████████████████████████████▌███░░░▀▀████████████
██▀████████████████████▐██████░▐██░░░░░░▀▀█████████
██░████████████████████▐█████▌░██▌▄░░░░▄▄░▄████▀███
█▌░███████████████████▀░█████░░░█░░░▄████░░███▀▐███
█▌░▐██████████████████░░████▌░░░▀░░▀███▀▀░▐███▄████
██░▀██████████████▌▐█▐▄▄████▌░░░░░░░░░░░░░▌████████
███░███████████████▀░▄▄██▀█▐░░░░░░░░░░░░░░▐████████
███▄░██████████████▄░░░░░░▀▀▀░░░░░░░░░░░░░█▐███████
████▄░██████████████████▄▄▄▄▄▄▐▄░░░░░░░░░░░████████
█████▄█████████████████▀▀▀▀▀▀░░░░░░░░░░░░░░████████
████████████████████████▄░░░░░░░░░░░░░░░▄░░████████
██████████████████████████▄▄▄░░░░░░░░░▄█░▄█████████
████████████████████████████████▄░░░░██▄███▀░░▀████
█████████████████████████████▀█████▄███▀▀▀░░▄▄░████
████████████████████████████▀░░▀░░▀▀░░░░▄▄▄██▀░░▀▀█
███████████████████████████▌░░░░░░░░░░░███████░░░▄█
███████████████▄░▀████████▀░░░░░░▀░░░░███████▌░░░██
███▄▄████████████▄░▀██████▄░░░░░█░░░░████████░░░▀▀
░▀█████████████████▄░▀█████░░░░██░░░░▀██████░░░░░▄█
▐█▄▀█████████████████▄░▀████░░░██▌░░░▐████▀░░░░▄███
▐███▄▀▀█████████████████▄░▀▀░░░░▀██▌▄█▀▀░░░▄▄██████
▀▀▀▀▀░░░▀▀▀▀▀░░░▀▀▀▀▀▀▀▀▀▀▀░░░░░░░▀▀░░░░░░▀▀▀▀▀▀▀▀▀
*/




Compiler output:
a.cc:14:10: fatal error: /home/xsharawi/Desktop/cpp/debug.hpp: No such file or directory
   14 | #include "/home/xsharawi/Desktop/cpp/debug.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

  s+=s;
  cout << (s.find(t)!=string::npos ? "Yes": "No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string s, t;
      |   ^~~~~~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> s >> t;
      |   ^~~
a.cc:3:10: error: 's' was not declared in this scope
    3 |   cin >> s >> t;
      |          ^
a.cc:3:15: error: 't' was not declared in this scope
    3 |   cin >> s >> t;
      |               ^
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << (s.find(t)!=string::npos ? "Yes": "No");
      |   ^~~~
a.cc:6:23: error: 'string' is not a class, namespace, or enumeration
    6 |   cout << (s.find(t)!=string::npos ? "Yes": "No");
      |                       ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
   13 |     if(s.substring(i, n) == t){
      |          ^~~~~~~~~
      |          substr
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  string s, t;
  cin >> s >> t;
  int i = 0;
  bool match = false;
  while(i < s.size()){
    if(s == t){
      match = true;
      break;
      cout << "match!" << endl;
    }
    else{
      char *tmp_char = s[s.size() -1];
      s.pop_back();
      s = tmp_char + s;
      i++;
    }
  }
  if(match) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:37: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'char*' [-fpermissive]
   16 |       char *tmp_char = s[s.size() -1];
      |                                     ^
      |                                     |
      |                                     __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
Language: C++

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++)
#define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--)
#define cy cout << "Yes" << endl
#define cn cout << "No" << endl
typedef long long ll;

string rotate(string S, int i){
    int sz = S.size();
    string ans;
    rep(j,sz){
		ans[j] = S[(j+i)%sz];
    }
    return ans;
}

void Main()
{
	string S, T;
  	cin >> S >> T;
	rep(i,S.size()){
    	if(T == rotate(S,i)){
			cout << "Yes" << endl;
            return;
    	}
    }
    else{ 
    	cout << "No" << endl;
		return;
    }
}

int main()
{
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	Main();
	return 0;
}


Compiler output:
a.cc:2:9: fatal error: boost/multi_array.hpp: No such file or directory
    2 | #include<boost/multi_array.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main()
{
	char str1[100],str2[100];
	gets(str1);
	gets(str2);

	if(strcmp(str1,str2)==0)
	{
		printf("Yes");
	}
	else
	{
		printf("No");
	}
	getch();
}



Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    5 |         gets(str1);
      |         ^~~~
      |         fgets
main.c:8:12: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
    8 |         if(strcmp(str1,str2)==0)
      |            ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main()
main.c:16:9: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   16 |         getch();
      |         ^~~~~
      |         getc
Language: C

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{

	char str1[100],str2[100];
	gets(str1);
	gets(str2);
	if(strcmp(str1,str2)==0)
	{
		printf("Yes");
	}
	else
	{
		printf("No");
	}
	getch();
}


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

#include<iostream>
using namespace std;
int main() {
	string s, t;
	cin >> s >> t;
	reverse(s.begin(), s.end());
	if (s==t){
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	return 0;
}

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

#include<iostream>
#include<string>
using namespace std;
int main(){
  string s,t;
  cin >> s >> t;
  string ans = "No";
  for(int i = 0;i < n;i++){
    int tmp = i;
    int count = 0;
	for(int j = 0;j < n;j++){
      if(tmp > n) tmp=0;
      if(s[tmp] == t[j]) count++;
    }
    if(count == n){
      ans = "Yes";
      break;
    }
  }
  cout << ans << endl;
}

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

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

int main()
{
  string S,T ;
  cin>>S>>T ;
  
  int count=0 ;
  int size=S.size() ;
  while(count<=size){
    int front=S.at(size-1) ;
    for(int i=0;i<size;i++){
      int tmp=S.at(i) ;
      A.at(i)=front ;
      front=tmp ;
    }
    if(S==T){
      cout<<"Yes"<<endl ;
      return 0 ;
    }
  }
  cout<<"No"<<endl ;
  return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'A' was not declared in this scope
   16 |       A.at(i)=front ;
      |       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'N' was not declared in this scope
   12 |   while(count<=N){
      |                ^
a.cc:15:15: error: 'A' was not declared in this scope
   15 |       int tmp=A[i] ;
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
string s,t;
  bool flag=false:
cin >>s>>t;
  int p;
  for(int j=0;j<101;j++){
  for(int i=s.size()-1;i>0;i--){
  int p=s.at(s.size()-1);
    s.at(i)=s.at(i-1);
  }
  p=s.at(0);
  if(s==t){flag=true;
          break;}}
if(flag)cout << "Yes" <<endl;
  else cout << "No" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: expected ',' or ';' before ':' token
    5 |   bool flag=false:
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'p' was not declared in this scope
   11 |   p=s.at(0);
      |   ^
a.cc:15:4: error: 'flag' was not declared in this scope
   15 | if(flag)cout << "Yes" <<endl;
      |    ^~~~
Language: C++


#include <iostream>
using namespace std;
int main()
{

	string S,T;
	int Value = 0;

	cin >> S >> T;
	stringstream x(T.length());
	if (S.length() == T.length()) {
		for (int x = 0; x < S.length(); x++) {
			for (int i = 0; i < T.length(); i++) {
				if (S[x] == T[i]) {
					Value++;
					break;
				}
			}
		}
	
		
			
		
	}
	else {
		cout << "No";
	}
	if (Value == S.length()) {
		cout << "yes";
	}
	else {
		cout << "No";
	}
	return 0;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: variable 'std::stringstream x' has initializer but incomplete type
   11 |         stringstream x(T.length());
      |                        ^
Language: C++


#include <iostream>
using namespace std;
int main()
{

	string S,T;

	cin >> S >> T;
	if (S.length == T.length) {
		cout << "yes";
	}
	else {
		cout << "No";
	}
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: 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 |         if (S.length == T.length) {
      |             ~~^~~~~~
      |                     ()
a.cc:10:27: 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 |         if (S.length == T.length) {
      |                         ~~^~~~~~
      |                                 ()
Language: C++

#include<iostream>
#include <bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
  string a, b ;
  cin >> a >> b ;
  
  bool cond = 0 ;
  for(int i=0;i<a.size()-1;i++){
   char tmp = a(a.size()-1) ;
   a.pop_back() ;
   string tmp2 = tmp + a ;
   if(tmp2==b){
     cond = 1 ;
     break ;
   }
   a = tmp2 ;
  }
   
  if(cond)
   cout << "Yes" << endl ;
  else 
   cout << "No" << endl ;    
  
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (std::__cxx11::basic_string<char>::size_type)'
   12 |    char tmp = a(a.size()-1) ;
      |               ~^~~~~~~~~~~~
Language: C++

#include<iostream>
#include <bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
  string a, b ;
  cin >> a >> b ;
  
  for(int i=0;i<a.size()-1;i++){
   char tmp = a(a.aize()) ;
   a.pop_back() ;
   string tmp2 = tmp + a ;
   if(tmp2==b)break
  }
   
  if(tmp2==b)
   cout << "Yes" << endl ;
  else 
   cout << "No" << endl ;    
  
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'aize'; did you mean 'size'?
   11 |    char tmp = a(a.aize()) ;
      |                   ^~~~
      |                   size
a.cc:14:20: error: expected ';' before '}' token
   14 |    if(tmp2==b)break
      |                    ^
      |                    ;
   15 |   }
      |   ~                 
a.cc:17:6: error: 'tmp2' was not declared in this scope; did you mean 'tm'?
   17 |   if(tmp2==b)
      |      ^~~~
      |      tm
Language: C++

#include<iostream>
#include <bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
  string a, b ;
  cin >> a >> b ;
  
  for(int i=0;i<a.size()-1;i++){
   char tmp = a(a.end()) ;
   a = tmp + a.pop_back() ;
   if(a==b)break
  }
   
  if(a==b)
   cout << "Yes" << endl ;
  else 
   cout << "No" << endl ;    
  
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (std::__cxx11::basic_string<char>::iterator)'
   11 |    char tmp = a(a.end()) ;
      |               ~^~~~~~~~~
a.cc:12:12: error: invalid operands of types 'char' and 'void' to binary 'operator+'
   12 |    a = tmp + a.pop_back() ;
      |        ~~~ ^ ~~~~~~~~~~~~
      |        |               |
      |        char            void
a.cc:13:17: error: expected ';' before '}' token
   13 |    if(a==b)break
      |                 ^
      |                 ;
   14 |   }
      |   ~
Language: C++

#include<iostream>
#include <bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
  string a, b ;
  cin >> a >> b ;
  
  for(int i=0;i<a.size()-1;i++){
   char tmp = a.end() ;
   a = tmp + a.pop_back() ;
   if(a==b)
     break ;
  }
   
  if(a==b)
   cout << "Yes" << endl ;
  else 
   cout << "No" << endl ;    
  
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: cannot convert 'std::__cxx11::basic_string<char>::iterator' to 'char' in initialization
   11 |    char tmp = a.end() ;
      |               ~~~~~^~
      |                    |
      |                    std::__cxx11::basic_string<char>::iterator
a.cc:12:12: error: invalid operands of types 'char' and 'void' to binary 'operator+'
   12 |    a = tmp + a.pop_back() ;
      |        ~~~ ^ ~~~~~~~~~~~~
      |        |               |
      |        char            void
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    string s,t,ans;
    ans="No";
    cin>>s>>t;
    int n=s.size();
    rep(i,n){
      if(s[i]==t[0]){
        for(j=i;j<n+i;j++){
          if(j<=n-1&&s[j]!=t[j-i]{
            break;
          }else if(j>n-1&&s[j-n+1]!=t[j-i]){
            break;
          }
             ans="Yes";
             }
             }
             }
    cout<<ans<<endl;        
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'j' was not declared in this scope
   13 |         for(j=i;j<n+i;j++){
      |             ^
a.cc:16:12: error: expected primary-expression before 'else'
   16 |           }else if(j>n-1&&s[j-n+1]!=t[j-i]){
      |            ^~~~
a.cc:16:12: error: expected ')' before 'else'
   16 |           }else if(j>n-1&&s[j-n+1]!=t[j-i]){
      |            ^~~~
      |            )
a.cc:14:13: note: to match this '('
   14 |           if(j<=n-1&&s[j]!=t[j-i]{
      |             ^