Language: C++

#[allow(unused_imports)]
use std::cmp::*;
#[allow(unused_imports)]
use std::collections::*;
#[allow(unused_imports)]
use std::io::{BufWriter, Write};

// https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8
#[allow(unused_macros)]
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        let mut next = || { iter.next().unwrap() };
        input_inner!{next, $($r)*}
    };
    ($($r:tt)*) => {
        let stdin = std::io::stdin();
        let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));
        let mut next = move || -> String{
            bytes
                .by_ref()
                .map(|r|r.unwrap() as char)
                .skip_while(|c|c.is_whitespace())
                .take_while(|c|!c.is_whitespace())
                .collect()
        };
        input_inner!{next, $($r)*}
    };
}

#[allow(unused_macros)]
macro_rules! input_inner {
    ($next:expr) => {};
    ($next:expr, ) => {};

    ($next:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };

    ($next:expr, mut $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };
}

#[allow(unused_macros)]
macro_rules! read_value {
    ($next:expr, ( $($t:tt),* )) => {
        ( $(read_value!($next, $t)),* )
    };

    ($next:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
    };

    ($next:expr, chars) => {
        read_value!($next, String).chars().collect::<Vec<char>>()
    };

    ($next:expr, bytes) => {
        read_value!($next, String).into_bytes()
    };

    ($next:expr, usize1) => {
        read_value!($next, usize) - 1
    };

    ($next:expr, $t:ty) => {
        $next().parse::<$t>().expect("Parse error")
    };
}

fn solve() {
    input!(
        s: String,
    );
    let s: String = s;

    let mut map = BTreeMap::new();
    map.insert("SUN", 7);
    map.insert("MON", 6);
    map.insert("TUE", 5);
    map.insert("WED", 4);
    map.insert("THU", 3);
    map.insert("FRI", 2);
    map.insert("SAT", 1);

    println!("{}", map[s.as_str()]);
}

fn main() {
    let stack_size = 1 << 28;
    let thd = std::thread::Builder::new().stack_size(stack_size);
    thd.spawn(|| solve()).unwrap().join().unwrap();
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #[
    1 | #[allow(unused_imports)]
      |  ^
a.cc:3:2: error: invalid preprocessing directive #[
    3 | #[allow(unused_imports)]
      |  ^
a.cc:5:2: error: invalid preprocessing directive #[
    5 | #[allow(unused_imports)]
      |  ^
a.cc:9:2: error: invalid preprocessing directive #[
    9 | #[allow(unused_macros)]
      |  ^
a.cc:31:2: error: invalid preprocessing directive #[
   31 | #[allow(unused_macros)]
      |  ^
a.cc:47:2: error: invalid preprocessing directive #[
   47 | #[allow(unused_macros)]
      |  ^
a.cc:54:10: error: too many decimal points in number
   54 |         (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
      |          ^~~~~~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::cmp::*;
      | ^~~
a.cc:4:1: error: 'use' does not name a type
    4 | use std::collections::*;
      | ^~~
a.cc:6:1: error: 'use' does not name a type
    6 | use std::io::{BufWriter, Write};
      | ^~~
a.cc:10:1: error: 'macro_rules' does not name a type
   10 | macro_rules! input {
      | ^~~~~~~~~~~
a.cc:32:1: error: 'macro_rules' does not name a type
   32 | macro_rules! input_inner {
      | ^~~~~~~~~~~
a.cc:48:1: error: 'macro_rules' does not name a type
   48 | macro_rules! read_value {
      | ^~~~~~~~~~~
a.cc:74:1: error: 'fn' does not name a type
   74 | fn solve() {
      | ^~
a.cc:92:1: error: 'fn' does not name a type
   92 | fn main() {
      | ^~