Language: C++

//raja1999

//#pragma comment(linker, "/stack:200000000")
//#pragma GCC optimize("Ofast")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,avx,avx2")

#include <bits/stdc++.h>
#include <vector>
#include <set>
#include <map>
#include <string> 
#include <cstdio>
#include <cstdlib>
#include <climits>
#include <utility>
#include <algorithm>
#include <cmath>
#include <queue>
#include <stack>
#include <iomanip> 
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp> 
//setbase - cout << setbase (16)a; cout << 100 << endl; Prints 64
//setfill -   cout << setfill ('x') << setw (5); cout << 77 <<endl;prints xxx77
//setprecision - cout << setprecision (14) << f << endl; Prints x.xxxx
//cout.precision(x)  cout<<fixed<<val;  // prints x digits after decimal in val

using namespace std;
using namespace __gnu_pbds;
#define f(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) f(i,0,n)
#define fd(i,a,b) for(i=a;i>=b;i--)
#define pb push_back
#define mp make_pair
#define vi vector< int >
#define vl vector< ll >
#define ss second
#define ff first
#define ll long long
#define pii pair< int,int >
#define pll pair< ll,ll >
#define sz(a) a.size()
#define inf (1000*1000*1000+5)
#define all(a) a.begin(),a.end()
#define tri pair<int,pii>
#define vii vector<pii>
#define vll vector<pll>
#define viii vector<tri>
#define mod (1000*1000*1000+7)
#define pqueue priority_queue< int >
#define pdqueue priority_queue< int,vi ,greater< int > >
#define int ll

typedef tree<
int,
null_type,
less<int>,
rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;

//std::ios::sync_with_stdio(false);
map<strnig,int>mapi;
main(){
	std::ios::sync_with_stdio(false); cin.tie(NULL);
	int t,t1;
	//cin>>t;
	t=1;
	t1=t;
	while(t--){
		string s;
		cin>>s;
		mapi["SUN"]=0;
		mapi["SAT"]=1;
		mapi["FRI"]=2;

		mapi["THU"]=3;
		mapi["WED"]=4;
		mapi["TUE"]=5;

		mapi["MON"]=6;
		cout<<mapi[s]<<endl;
	}
	return 0;
} 
	

Compiler output:
a.cc:63:5: error: 'strnig' was not declared in this scope
   63 | map<strnig,int>mapi;
      |     ^~~~~~
a.cc:63:15: error: template argument 1 is invalid
   63 | map<strnig,int>mapi;
      |               ^
a.cc:63:15: error: template argument 3 is invalid
a.cc:63:15: error: template argument 4 is invalid
a.cc:64:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   64 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:73:28: error: assignment of read-only location '"SUN"[mapi]'
   73 |                 mapi["SUN"]=0;
      |                 ~~~~~~~~~~~^~
a.cc:74:28: error: assignment of read-only location '"SAT"[mapi]'
   74 |                 mapi["SAT"]=1;
      |                 ~~~~~~~~~~~^~
a.cc:75:28: error: assignment of read-only location '"FRI"[mapi]'
   75 |                 mapi["FRI"]=2;
      |                 ~~~~~~~~~~~^~
a.cc:77:28: error: assignment of read-only location '"THU"[mapi]'
   77 |                 mapi["THU"]=3;
      |                 ~~~~~~~~~~~^~
a.cc:78:28: error: assignment of read-only location '"WED"[mapi]'
   78 |                 mapi["WED"]=4;
      |                 ~~~~~~~~~~~^~
a.cc:79:28: error: assignment of read-only location '"TUE"[mapi]'
   79 |                 mapi["TUE"]=5;
      |                 ~~~~~~~~~~~^~
a.cc:81:28: error: assignment of read-only location '"MON"[mapi]'
   81 |                 mapi["MON"]=6;
      |                 ~~~~~~~~~~~^~
a.cc:82:27: error: no match for 'operator[]' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   82 |                 cout<<mapi[s]<<endl;
      |                           ^