Language: C++

#include<iostream>
#include<string>
usiing namespace std;
int main(){
string a,b;
cin >> a >>b;
a=a+a;
if(a.find(b)!=-1)cout<<“Yes”<<endl;
else cout << “No” << endl;
return 0;
}


Compiler output:
a.cc:8:24: error: extended character “ is not valid in an identifier
    8 | if(a.find(b)!=-1)cout<<“Yes”<<endl;
      |                        ^
a.cc:8:24: error: extended character ” is not valid in an identifier
a.cc:9:14: error: extended character “ is not valid in an identifier
    9 | else cout << “No” << endl;
      |              ^
a.cc:9:14: error: extended character ” is not valid in an identifier
a.cc:3:1: error: 'usiing' does not name a type
    3 | usiing namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string a,b;
      | ^~~~~~
a.cc:5:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> a >>b;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 'a' was not declared in this scope
    6 | cin >> a >>b;
      |        ^
a.cc:6:12: error: 'b' was not declared in this scope
    6 | cin >> a >>b;
      |            ^
a.cc:8:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | if(a.find(b)!=-1)cout<<“Yes”<<endl;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:24: error: '\U0000201cYes\U0000201d' was not declared in this scope
    8 | if(a.find(b)!=-1)cout<<“Yes”<<endl;
      |                        ^~~~~
a.cc:8:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | if(a.find(b)!=-1)cout<<“Yes”<<endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | else cout << “No” << endl;
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:14: error: '\U0000201cNo\U0000201d' was not declared in this scope
    9 | else cout << “No” << endl;
      |              ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | else cout << “No” << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~