Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n)  for(long long i=0;i<(long long)(n);i++)
#define REP(i,k,n) for(long long i=k;i<(long long)(n);i++)
#define all(a) a.begin(),a.end()
#define eb emplace_back
#define pb push_back
#define lb(v,k) (lower_bound(all(v),k)-v.begin())
#define ub(v,k) (upper_bound(all(v),k)-v.begin())
typedef long long ll;
typedef multiset<ll> S;
typedef priority_queue<ll> PQ;
typedef priority_queue<P,vector<P>,greater<P>> SPQ;
using vi=vector<ll>;
using vvi=vector<vector<ll>>;
const ll inf=1001001001001001;
const int INF=1001001001;
const int mod=1000000007;
bool chmin(auto &a,auto b){if(a>b){a=b;return true;}return false;}
bool chmax(auto &a,auto b){if(a<b){a=b;return true;}return false;}
struct P{ll fi;ll se;};
struct PP{ll fi;ll se;ll th};
void outvi(vi v){rep(i,v.size()){cout<<v[i];if(i)cout<<' ';}cout<<endl;}
void outvvi(vvi v){rep(i,v.size()){rep(j,v[0].size()){cout<<v[i][j];if(j)cout<<' ';}cout<<endl;}}

int main(){
    string s;cin>>s;
    int ans;
    if(s=="SAT")ans=1;
    if(s=="SUN")ans=7;
    if(s=="MON")ans=6;
    if(s=="TUE")ans=5;
    if(s=="WED")ans=4;
    if(s=="THU")ans=3;
    if(s=="FRI")ans=2;
    cout<<ans<<endl;
}

Compiler output:
a.cc:13:24: error: 'P' was not declared in this scope
   13 | typedef priority_queue<P,vector<P>,greater<P>> SPQ;
      |                        ^
a.cc:13:33: error: 'P' was not declared in this scope
   13 | typedef priority_queue<P,vector<P>,greater<P>> SPQ;
      |                                 ^
a.cc:13:34: error: template argument 1 is invalid
   13 | typedef priority_queue<P,vector<P>,greater<P>> SPQ;
      |                                  ^
a.cc:13:34: error: template argument 2 is invalid
a.cc:13:44: error: 'P' was not declared in this scope
   13 | typedef priority_queue<P,vector<P>,greater<P>> SPQ;
      |                                            ^
a.cc:13:44: error: template argument 1 is invalid
a.cc:13:45: error: template argument 1 is invalid
   13 | typedef priority_queue<P,vector<P>,greater<P>> SPQ;
      |                                             ^~
a.cc:13:45: error: template argument 2 is invalid
a.cc:13:45: error: template argument 3 is invalid
a.cc:19:12: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   19 | bool chmin(auto &a,auto b){if(a>b){a=b;return true;}return false;}
      |            ^~~~
a.cc:19:20: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   19 | bool chmin(auto &a,auto b){if(a>b){a=b;return true;}return false;}
      |                    ^~~~
a.cc:20:12: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   20 | bool chmax(auto &a,auto b){if(a<b){a=b;return true;}return false;}
      |            ^~~~
a.cc:20:20: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   20 | bool chmax(auto &a,auto b){if(a<b){a=b;return true;}return false;}
      |                    ^~~~
a.cc:22:26: error: expected ';' at end of member declaration
   22 | struct PP{ll fi;ll se;ll th};
      |                          ^~
      |                            ;