Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main{
    cin>>s;
    if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
    else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
    else cout<<“No”;
    return 0;
}

Compiler output:
a.cc:6:15: error: extended character ‘ is not valid in an identifier
    6 |     if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
      |               ^
a.cc:6:15: error: extended character ’ is not valid in an identifier
a.cc:6:32: error: extended character ‘ is not valid in an identifier
    6 |     if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
      |                                ^
a.cc:6:32: error: extended character ’ is not valid in an identifier
a.cc:6:47: error: extended character “ is not valid in an identifier
    6 |     if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
      |                                               ^
a.cc:6:47: error: extended character ” is not valid in an identifier
a.cc:7:20: error: extended character ’ is not valid in an identifier
    7 |     else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
      |                    ^
a.cc:7:20: error: extended character ’ is not valid in an identifier
a.cc:7:32: error: extended character ‘ is not valid in an identifier
    7 |     else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
      |                                ^
a.cc:7:32: error: extended character ’ is not valid in an identifier
a.cc:7:43: error: extended character “ is not valid in an identifier
    7 |     else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
      |                                           ^
a.cc:7:43: error: extended character ” is not valid in an identifier
a.cc:8:16: error: extended character “ is not valid in an identifier
    8 |     else cout<<“No”;
      |                ^
a.cc:8:16: error: extended character ” is not valid in an identifier
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:11: error: expected '}' before ';' token
    5 |     cin>>s;
      |           ^
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:5:8: error: invalid user-defined conversion from 'std::basic_istream<char>' to 'int' [-fpermissive]
    5 |     cin>>s;
      |     ~~~^~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  121 |       explicit operator bool() const
      |                ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note:   return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:6:5: error: expected unqualified-id before 'if'
    6 |     if(s.find(‘C’)==-1||s.find(‘F’)==-1)cout<<“No”;
      |     ^~
a.cc:7:5: error: expected unqualified-id before 'else'
    7 |     else if(s.find(’C’)<s.find(‘F’))cout<<“Yes”;
      |     ^~~~
a.cc:8:5: error: expected unqualified-id before 'else'
    8 |     else cout<<“No”;
      |     ^~~~
a.cc:9:5: error: expected unqualified-id before 'return'
    9 |     return 0;
      |     ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^