Language: C++

// -*- coding:utf-8-unix -*-

use std::cmp::*;
use std::collections::*;
use std::fs::File;
use std::io::prelude::*;
use std::io::*;
use std::vec;

const INF: i64 = 1223372036854775807;
const MEM_SIZE: usize = 202020;
// const MOD: i64 = 1000000007;
const MOD: i64 = 998244353;

use std::cmp::*;
use std::collections::*;
use std::io::stdin;
use std::io::stdout;
use std::io::Write;
#[allow(dead_code)]
fn read<T: std::str::FromStr>() -> T {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().parse().ok().unwrap()
}
#[allow(dead_code)]
fn read_vec<T: std::str::FromStr>() -> Vec<T> {
    read::<String>()
        .split_whitespace()
        .map(|e| e.parse().ok().unwrap())
        .collect()
}
#[allow(dead_code)]
fn read_vec2<T: std::str::FromStr>(n: u32) -> Vec<Vec<T>> {
    (0..n).map(|_| read_vec()).collect()
}

#[allow(dead_code)]
fn readii() -> (i64, i64) {
    let mut str = String::new();
    let _ = stdin().read_line(&mut str).unwrap();
    let mut iter = str.split_whitespace();
    (
        iter.next().unwrap().parse::<i64>().unwrap(),
        iter.next().unwrap().parse::<i64>().unwrap(),
    )
}
#[allow(dead_code)]
fn readuu() -> (usize, usize) {
    let mut str = String::new();
    let _ = stdin().read_line(&mut str).unwrap();
    let mut iter = str.split_whitespace();
    (
        iter.next().unwrap().parse::<usize>().unwrap(),
        iter.next().unwrap().parse::<usize>().unwrap(),
    )
}

#[allow(dead_code)]
fn readuuu() -> (usize, usize, usize) {
    let mut str = String::new();
    let _ = stdin().read_line(&mut str).unwrap();
    let mut iter = str.split_whitespace();
    (
        iter.next().unwrap().parse::<usize>().unwrap(),
        iter.next().unwrap().parse::<usize>().unwrap(),
        iter.next().unwrap().parse::<usize>().unwrap(),
    )
}

#[allow(dead_code)]
fn readuuuu() -> (usize, usize, usize, usize) {
    let mut str = String::new();
    let _ = stdin().read_line(&mut str).unwrap();
    let mut iter = str.split_whitespace();
    (
        iter.next().unwrap().parse::<usize>().unwrap(),
        iter.next().unwrap().parse::<usize>().unwrap(),
        iter.next().unwrap().parse::<usize>().unwrap(),
        iter.next().unwrap().parse::<usize>().unwrap(),
    )
}

#[allow(unused_macros)]
macro_rules! debug {


    ($($e:expr),*) => {
        #[cfg(debug_assertions)]
        $({
            let (e, mut err) = (stringify!($e), std::io::stderr());
            writeln!(err, "{} = {:?}", e, $e).unwrap()
        })*
    };
}

fn solve() {
    let n: usize = read();
    let mut cnt = 0 as usize;
    for i in 0..n {
        let (a, b) = readuu();
        if (a == b) {
            cnt += 1;
        } else {
            cnt = 0;
        }
        if (cnt == 3) {
            println!("Yes");
            return;
        }
    }
    println!("No");

    return;
}
fn main() {
    solve()
}


Compiler output:
a.cc:20:2: error: invalid preprocessing directive #[
   20 | #[allow(dead_code)]
      |  ^
a.cc:26:2: error: invalid preprocessing directive #[
   26 | #[allow(dead_code)]
      |  ^
a.cc:33:2: error: invalid preprocessing directive #[
   33 | #[allow(dead_code)]
      |  ^
a.cc:35:6: error: too many decimal points in number
   35 |     (0..n).map(|_| read_vec()).collect()
      |      ^~~~
a.cc:38:2: error: invalid preprocessing directive #[
   38 | #[allow(dead_code)]
      |  ^
a.cc:48:2: error: invalid preprocessing directive #[
   48 | #[allow(dead_code)]
      |  ^
a.cc:59:2: error: invalid preprocessing directive #[
   59 | #[allow(dead_code)]
      |  ^
a.cc:71:2: error: invalid preprocessing directive #[
   71 | #[allow(dead_code)]
      |  ^
a.cc:84:2: error: invalid preprocessing directive #[
   84 | #[allow(unused_macros)]
      |  ^
a.cc:89:10: error: invalid preprocessing directive #[
   89 |         #[cfg(debug_assertions)]
      |          ^
a.cc:100:14: error: too many decimal points in number
  100 |     for i in 0..n {
      |              ^~~~
a.cc:3:1: error: 'use' does not name a type
    3 | use std::cmp::*;
      | ^~~
a.cc:4:1: error: 'use' does not name a type
    4 | use std::collections::*;
      | ^~~
a.cc:5:1: error: 'use' does not name a type
    5 | use std::fs::File;
      | ^~~
a.cc:6:1: error: 'use' does not name a type
    6 | use std::io::prelude::*;
      | ^~~
a.cc:7:1: error: 'use' does not name a type
    7 | use std::io::*;
      | ^~~
a.cc:8:1: error: 'use' does not name a type
    8 | use std::vec;
      | ^~~
a.cc:10:10: error: found ':' in nested-name-specifier, expected '::'
   10 | const INF: i64 = 1223372036854775807;
      |          ^
      |          ::
a.cc:10:7: error: 'INF' does not name a type
   10 | const INF: i64 = 1223372036854775807;
      |       ^~~
a.cc:11:15: error: found ':' in nested-name-specifier, expected '::'
   11 | const MEM_SIZE: usize = 202020;
      |               ^
      |               ::
a.cc:11:7: error: 'MEM_SIZE' does not name a type
   11 | const MEM_SIZE: usize = 202020;
      |       ^~~~~~~~
a.cc:13:10: error: found ':' in nested-name-specifier, expected '::'
   13 | const MOD: i64 = 998244353;
      |          ^
      |          ::
a.cc:13:7: error: 'MOD' does not name a type
   13 | const MOD: i64 = 998244353;
      |       ^~~
a.cc:15:1: error: 'use' does not name a type
   15 | use std::cmp::*;
      | ^~~
a.cc:16:1: error: 'use' does not name a type
   16 | use std::collections::*;
      | ^~~
a.cc:17:1: error: 'use' does not name a type
   17 | use std::io::stdin;
      | ^~~
a.cc:18:1: error: 'use' does not name a type
   18 | use std::io::stdout;
      | ^~~
a.cc:19:1: error: 'use' does not name a type
   19 | use std::io::Write;
      | ^~~
a.cc:21:1: error: 'fn' does not name a type
   21 | fn read<T: std::str::FromStr>() -> T {
      | ^~
a.cc:27:1: error: 'fn' does not name a type
   27 | fn read_vec<T: std::str::FromStr>() -> Vec<T> {
      | ^~
a.cc:34:1: error: 'fn' does not name a type
   34 | fn read_vec2<T: std::str::FromStr>(n: u32) -> Vec<Vec<T>> {
      | ^~
a.cc:39:1: error: 'fn' does not name a type
   39 | fn readii() -> (i64, i64) {
      | ^~
a.cc:49:1: error: 'fn' does not name a type
   49 | fn readuu() -> (usize, usize) {
      | ^~
a.cc:60:1: error: 'fn' does not name a type
   60 | fn readuuu() -> (usize, usize, usize) {
      | ^~
a.cc:72:1: error: 'fn' does not name a type
   72 | fn readuuuu() -> (usize, usize, usize, usize) {
      | ^~
a.cc:85:1: error: 'macro_rules' does not name a type
   85 | macro_rules! debug {
      | ^~~~~~~~~~~
a.cc:97:1: error: 'fn' does not name a type
   97 | fn solve() {
      | ^~
a.cc:116:1: error: 'fn' does not name a type
  116 | fn main() {
      | ^~