Language: C++

#include<algorithm>
#include<iostream>
#include<string>
int main (){
   string s;
   cin >>s;
   sort(s,s+s.size());
  if(s==“abc”) cout<<“Yes”<<endl;
    else cout<<“No”<<endl;

return 0;
}


Compiler output:
a.cc:8:9: error: extended character “ is not valid in an identifier
    8 |   if(s==“abc”) cout<<“Yes”<<endl;
      |         ^
a.cc:8:9: error: extended character ” is not valid in an identifier
a.cc:8:22: error: extended character “ is not valid in an identifier
    8 |   if(s==“abc”) cout<<“Yes”<<endl;
      |                      ^
a.cc:8:22: error: extended character ” is not valid in an identifier
a.cc:9:16: error: extended character “ is not valid in an identifier
    9 |     else cout<<“No”<<endl;
      |                ^
a.cc:9:16: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:4: error: 'string' was not declared in this scope
    5 |    string s;
      |    ^~~~~~
a.cc:5:4: 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:2:
/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:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |    cin >>s;
      |    ^~~
      |    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:10: error: 's' was not declared in this scope
    6 |    cin >>s;
      |          ^
a.cc:7:4: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    7 |    sort(s,s+s.size());
      |    ^~~~
      |    std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:1:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:8:9: error: '\U0000201cabc\U0000201d' was not declared in this scope
    8 |   if(s==“abc”) cout<<“Yes”<<endl;
      |         ^~~~~
a.cc:8:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(s==“abc”) 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:22: error: '\U0000201cYes\U0000201d' was not declared in this scope
    8 |   if(s==“abc”) cout<<“Yes”<<endl;
      |                      ^~~~~
a.cc:8:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   if(s==“abc”) 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:10: 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:16: 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)
      |     ^~~~