Language: C++

int main(){
  
  
  string s;
  cin>>s;
  if(s==sat
  
  #include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main()
{
    int x;
        string s;
        cin>>s;
        if(s=="SAT")
            x=1;
        else if(s=="SUN")
            x=2;
        else if(s=="MON")
            x=3;
        else if(s=="TUE")
            x=4;
        else if(s=="WED")
            x=5;
        else if(s=="THU")
            x=6;
        else
            x=7;

        if(x==1) {cout<<1<<endl;return 0;}

        cout<<(7-x)+2<<endl;
    



            return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope; did you mean 'stdin'?
    4 |   string s;
      |   ^~~~~~
      |   stdin
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>s;
      |   ^~~
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s;
      |        ^
a.cc:6:9: error: 'sat' was not declared in this scope
    6 |   if(s==sat
      |         ^~~
In file included from /usr/include/c++/14/bits/requires_hosted.h:31,
                 from /usr/include/c++/14/iostream:38,
                 from a.cc:8:
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:341:1: error: expected primary-expression before 'namespace'
  341 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:327:2: error: expected ')' before 'namespace'
  327 | }
      |  ^
      |  )
......
  341 | namespace std
      | ~~~~~~~~~
a.cc:6:5: note: to match this '('
    6 |   if(s==sat
      |     ^
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683:
/usr/include/wchar.h:90:1: error: expected unqualified-id before string constant
   90 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/postypes.h:40,
                 from /usr/include/c++/14/iosfwd:42,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/cwchar:62:1: error: 'namespace' definition is not allowed here
   62 | namespace std
      | ^~~~~~~~~
/usr/include/c++/14/cwchar:135:8: error: expected unqualified-id before string constant
  135 | extern "C++"
      |        ^~~~~
/usr/include/c++/14/cwchar:244:1: error: 'namespace' definition is not allowed here
  244 | namespace __gnu_cxx
      | ^~~~~~~~~
/usr/include/c++/14/cwchar:265:1: error: 'namespace' definition is not allowed here
  265 | namespace std
      | ^~~~~~~~~
/usr/include/c++/14/cwchar:280:1: error: 'namespace' definition is not allowed here
  280 | namespace std
      | ^~~~~~~~~
/usr/include/c++/14/bits/postypes.h:42:15: error: expected '=' before '__attribute__'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/postypes.h:42:15: error: expected identifier before '__attribute__'
/usr/include/c++/14/bits/postypes.h:42:14: error: expected ';' before '__attribute__'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/postypes.h:43:1: error: expected primary-expression before '{' token
   43 | {
      | ^
/usr/include/c++/14/iosfwd:44:15: error: expected '=' before '__attribute__'
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/iosfwd:44:15: error: expected identifier before '__attribute__'
/usr/include/c++/14/iosfwd:44:14: error: expected ';' before '__attribute__'
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/iosfwd:45:1: error: expected primary-expression before '{' token
   45 | {
      | ^
In file included from /usr/include/c++/14/exception:36,
                 from /usr/include/c++/14/ios:41:
/usr/include/c++/14/bits/exception.h:38:8: error: expected unqualified-id before string constant
   38 | extern "C++" {
      |        ^~~~~
/usr/include/c++/14/exception:41:8: error: expected unqualified-id before string constant
   41 | extern "C++" {
      |        ^~~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:36,
                 from /usr/include/c++/14/exception:166:
/usr/include/c++/14/bits/cxxabi_init_exception.h:50:1: error: 'namespace' definition is not allowed here
   50 | namespace std
      | ^~~~~~~~~
/usr/include/c++/14/bits/cxxabi_init_exception.h:55:1: error: 'namespace' definition is not allowed here
   55 | namespace __cxxabiv1
      | ^~~~~~~~~
In file included from /usr/include/c++/14/typeinfo:36,
                 from /usr/include/c++/14/bits/exception_ptr.h:37:
/usr/include/c++/14/bits/hash_bytes.h:37:1: error: 'namespace' definition is not allowed here
   37 | namespace std
      | ^~~~~~~~~
/usr/include/c++/14/typeinfo:44:8: error: expected unqualified-id before string constant
   44 | extern "C++" {
      |        ^~~~~
In file included from /usr/include/c++/14/bits/exception_ptr.h:38:
/usr/include/c++/14/new:50:8: error: expected unqualified-id before string constant
   50 | extern "C++" {
      |        ^~~~~
/usr/include/c++/14/new:191:1: error: 'namespace' definition is not allowed here
  191 | namespace std
      | ^~~~~~~~~
/usr/include/c++/14/type_traits:65:15: error: expected '=' before '__attribute__'
   65 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/type_traits:65:15: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/bits/move.h:37,
                 from /usr/include/c++/14/bits/exception_ptr.h:41:
/usr/include/c++/14/type_traits:65:14: error: expected ';' before '__attribute__'
   65 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/type_traits:66:1: error: expected primary-expression before '{' token
   66 | {
      | ^
/usr/include/c++/14/bits/move.h:40:15: error: expected '=' before '__attribute__'
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/move.h:40:15: error: expected identifier before '__attribute__'
/usr/include/c++/14/bits/move.h:40:14: error: expected ';' before '__attribute__'
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/move.h:41:1: error: expected primary-expression before '{' token
   41 | {
      | ^
/usr/include/c++/14/bits/exception_ptr.h:50:8: error: expected unqualified-id before string constant
   50 | extern "C++" {
      |        ^~~~~
In file included from /usr/include/c++/14/exception:167:
/usr/include/c++/14/bits/nested_exception.h:40:8: error: expected unqualified-id before string constant
   40 | extern "C++" {
      |        ^~~~~
/usr/include/c++/14/bits/char_traits.h:64:21: error: expected '=' before '__attribute__'
   64 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/char_traits.h:64:21: error: expected identifier before '__attribute__'
In file included from /usr/include/c++/14/ios:42:
/usr/include/c++/14/bits/char_traits.h:64:20: error: expected ';' before '__attribute__'
   64 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                    ^
      |                    ;
/usr/include/c++/14/bits/char_traits.h:65:1: error: expected primary-expression before '{' token
   65 | {
      | ^
/usr/include/c++/14/bits/char_traits.h:305:15: error: expected '=' before '__attribute__'
  305 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/char_traits.h:305:15: error: expected identifier before '__attribute__'
/usr/include/c++/14/bits/char_traits.h:305:14: error: expected ';' before '__attribute__'
  305 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/char_traits.h:306:1: error: expected primary-expression before '{' token
  306 | {
      | ^
/usr/include/c++/14/bits/char_traits.h:737:15: error: expected '=' before '__attribute__'
  737 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/char_traits.h:737:15: error: expected identifier before '__attribute__'
/usr/include/c++/14/bits/char_traits.h:737:14: error: expected ';' before '__attribute__'
  737 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/14/bits/char_traits.h:738:1: error: expected primary-expression before '{' token
  738 | {
      | ^
/usr/include/locale.h:31:1: error: expected unqualified-id before string constant
   31 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/c++locale.h:41,
                 from /usr/include/c++/14/bits/localefwd.h:40,
                 from /usr/include/c++/14/ios:43:
/usr/include/c++/14/clocale:51:1: error: 'namespace' definition is not allowed here
   51 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/14/bits/c++locale.h:48:21: error: expected '=' before '__attribute__'
   48 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/14/bits/c++locale.h:48:21: error: expected identifier before '__attribute__'
/usr/include/x86_64-linux-gnu/c++/14/bits/c++locale.h:48:20: error: expected ';' before '__attribute__'
   48 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                    ^
      |                    ;
/usr/include/x86_64-linux-gnu/c++/14/bits/c++locale.h:49:1: error: expected primary-expression before '{' token
   49 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/14/bits/c++locale.h:58:15: error: expected '=' before '__attribute__'
   58 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/14/bits/c++locale.h:58:15: error: expected identifier before '__attribute__'
/usr/include/x86_64-linux-gnu/c++/14/bits/c++locale.h:58:14: error: expected ';' before '__attribute__'
   58 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/x86_64-linux-gnu/c++/14/bits/c++locale.h:59:1: error: expected primary-expression before '{' token
   59 | {
      | ^
/usr/include/ctype.h:28:1: error: expected unqualified-id before string constant
   28 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/localefwd.h:42:
/usr/include/c++/14/cctype:62:1: error: 'names