Language: C++

/*
                                Author: Ankit Kaul
**********************Code Belongs to Respective Author Only************************************
*/
 
/*#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")*/

#include <bits/stdc++.h>

#define endl       '\n'
#define PI          3.141592653589
#define jaldi       ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define M           1000000007
#define int         long long int
#define inf         INT_MAX
#define pb          emplace_back
#define pf          emplace_front
#define pii         pair<int,int>
#define vi          vector<int>
#define vii         vector<pii>
#define mi          map<int,int>
#define mii         map<pii,int>
#define all(a)      (a).begin(),(a).end()
#define rall(a)     (a).rbegin(),(a).rend()using namespace std;
 
int gcd(int a,int b) { return b == 0 ? a : gcd(b, a % b); }
int power(int x,int n){
    int result=1;
    while(n>0)
    {
        if(n % 2 ==1)
            result=(result * x) % M;
        x=(x*x)% M;
        n=n/2;
    }
    return result % M;
}
signed main()
{   jaldi
    string str;
    cin>>str;
    if(str=='MON')
    cout<<6;
    if(str=='TUE')
    cout<<5;
    if(str=='WED')
    cout<<4;
    if(str=='THU')
    cout<<3;
    if(str=='FRI')
    cout<<2;
    if(str=='SAT')
    cout<<1;
}

Compiler output:
a.cc:45:13: warning: multi-character character constant [-Wmultichar]
   45 |     if(str=='MON')
      |             ^~~~~
a.cc:47:13: warning: multi-character character constant [-Wmultichar]
   47 |     if(str=='TUE')
      |             ^~~~~
a.cc:49:13: warning: multi-character character constant [-Wmultichar]
   49 |     if(str=='WED')
      |             ^~~~~
a.cc:51:13: warning: multi-character character constant [-Wmultichar]
   51 |     if(str=='THU')
      |             ^~~~~
a.cc:53:13: warning: multi-character character constant [-Wmultichar]
   53 |     if(str=='FRI')
      |             ^~~~~
a.cc:55:13: warning: multi-character character constant [-Wmultichar]
   55 |     if(str=='SAT')
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:15:21: error: 'ios_base' has not been declared
   15 | #define jaldi       ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |                     ^~~~~~~~
a.cc:42:5: note: in expansion of macro 'jaldi'
   42 | {   jaldi
      |     ^~~~~
a.cc:15:55: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   15 | #define jaldi       ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |                                                       ^~~
a.cc:42:5: note: in expansion of macro 'jaldi'
   42 | {   jaldi
      |     ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:11:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:15:67: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 | #define jaldi       ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |                                                                   ^~~~
a.cc:42:5: note: in expansion of macro 'jaldi'
   42 | {   jaldi
      |     ^~~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:43:5: error: 'string' was not declared in this scope
   43 |     string str;
      |     ^~~~~~
a.cc:43:5: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:44:10: error: 'str' was not declared in this scope; did you mean 'std'?
   44 |     cin>>str;
      |          ^~~
      |          std