Language: C++

// Input macro
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
    ($($r:tt)*) => {
        let s = {
            use std::io::Read;
            let mut s = String::new();
            std::io::stdin().read_to_string(&mut s).unwrap();
            s
        };
        let mut iter = s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
}

macro_rules! stdin {
    () => {{
        use std::io::Read;
        let mut s = String::new();
        std::io::stdin().read_to_string(&mut s).unwrap();
        s
    }};
}

macro_rules! input_inner {
    ($iter:expr) => {};
    ($iter:expr, ) => {};

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

macro_rules! read_value {
    ($iter:expr, ( $($t:tt),* )) => {
        ( $(read_value!($iter, $t)),* )
    };

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

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

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

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

// Test Code
macro_rules! test {
    ($($input:expr => $output:expr),* $(,)*) => {
        #[test]
        fn solve_test() {
            $(
                assert_eq!(solve($input), $output);
            )*
        }
    };
}

test! {
    // テストコードをここにコピペする
r"5
" => r"YES",

r"6
" => r"NO"
}

fn main() {
    println!("{}", solve(&stdin!()));
}

fn solve(src: &str) -> String {
    input! {
        source = src,
        x: i32,
    }
    match x {
        3 => return "YES".to_string(),
        5 => return "YES".to_string(),
        7 => return "YES".to_string(),
        _ => return "NO".to_string(),
    }
}


Compiler output:
a.cc:44:10: error: too many decimal points in number
   44 |         (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
      |          ^~~~~~~
a.cc:63:10: error: invalid preprocessing directive #[
   63 |         #[test]
      |          ^
a.cc:74:2: warning: missing terminating " character
   74 | r"5
      |  ^
a.cc:74:2: error: missing terminating " character
   74 | r"5
      |  ^~
a.cc:75:11: warning: missing terminating " character
   75 | " => r"YES",
      |           ^
a.cc:75:11: error: missing terminating " character
   75 | " => r"YES",
      |           ^~
a.cc:77:2: warning: missing terminating " character
   77 | r"6
      |  ^
a.cc:77:2: error: missing terminating " character
   77 | r"6
      |  ^~
a.cc:78:10: warning: missing terminating " character
   78 | " => r"NO"
      |          ^
a.cc:78:10: error: missing terminating " character
a.cc:2:1: error: 'macro_rules' does not name a type
    2 | macro_rules! input {
      | ^~~~~~~~~~~
a.cc:19:1: error: 'macro_rules' does not name a type
   19 | macro_rules! stdin {
      | ^~~~~~~~~~~
a.cc:28:1: error: 'macro_rules' does not name a type
   28 | macro_rules! input_inner {
      | ^~~~~~~~~~~
a.cc:38:1: error: 'macro_rules' does not name a type
   38 | macro_rules! read_value {
      | ^~~~~~~~~~~
a.cc:61:1: error: 'macro_rules' does not name a type
   61 | macro_rules! test {
      | ^~~~~~~~~~~
a.cc:72:1: error: 'test' does not name a type
   72 | test! {
      | ^~~~
a.cc:81:1: error: 'fn' does not name a type
   81 | fn main() {
      | ^~
a.cc:85:1: error: 'fn' does not name a type
   85 | fn solve(src: &str) -> String {
      | ^~