Language: C++

#include <bits/stdc++.h>
using namespace std;

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
//------------------------------------------

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
//------------------------------------------

//debug
//------------------------------------------
#define dump(x)  cerr << #x << " = " << (x) << endl;
//------------------------------------------

int main() {
  LL N, T, c, t, ans = 1001;
  cin >> N >> T;

  REP(int i, N){
    cin >> c >> t;
    
    if (t <= T) {
      ans = (c < ans)?c:ans;
    }
    
  }
  cout << (ans == 1001)?"TLE":ans << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: two or more data types in declaration of 'i'
   15 | #define FOR(i,a,b) for(int i=(a);i<(b);++i)
      |                        ^~~
a.cc:16:19: note: in expansion of macro 'FOR'
   16 | #define REP(i,n)  FOR(i,0,n)
      |                   ^~~
a.cc:28:3: note: in expansion of macro 'REP'
   28 |   REP(int i, N){
      |   ^~~
a.cc:15:35: error: expected initializer before '<' token
   15 | #define FOR(i,a,b) for(int i=(a);i<(b);++i)
      |                                   ^
a.cc:16:19: note: in expansion of macro 'FOR'
   16 | #define REP(i,n)  FOR(i,0,n)
      |                   ^~~
a.cc:28:3: note: in expansion of macro 'REP'
   28 |   REP(int i, N){
      |   ^~~
a.cc:15:35: error: expected ';' before '<' token
   15 | #define FOR(i,a,b) for(int i=(a);i<(b);++i)
      |                                   ^
a.cc:16:19: note: in expansion of macro 'FOR'
   16 | #define REP(i,n)  FOR(i,0,n)
      |                   ^~~
a.cc:28:3: note: in expansion of macro 'REP'
   28 |   REP(int i, N){
      |   ^~~
a.cc:15:35: error: expected primary-expression before '<' token
   15 | #define FOR(i,a,b) for(int i=(a);i<(b);++i)
      |                                   ^
a.cc:16:19: note: in expansion of macro 'FOR'
   16 | #define REP(i,n)  FOR(i,0,n)
      |                   ^~~
a.cc:28:3: note: in expansion of macro 'REP'
   28 |   REP(int i, N){
      |   ^~~
a.cc:15:39: error: expected ')' before ';' token
   15 | #define FOR(i,a,b) for(int i=(a);i<(b);++i)
      |                       ~               ^
a.cc:16:19: note: in expansion of macro 'FOR'
   16 | #define REP(i,n)  FOR(i,0,n)
      |                   ^~~
a.cc:28:3: note: in expansion of macro 'REP'
   28 |   REP(int i, N){
      |   ^~~
a.cc:28:7: error: expected primary-expression before 'int'
   28 |   REP(int i, N){
      |       ^~~
a.cc:15:42: note: in definition of macro 'FOR'
   15 | #define FOR(i,a,b) for(int i=(a);i<(b);++i)
      |                                          ^
a.cc:28:3: note: in expansion of macro 'REP'
   28 |   REP(int i, N){
      |   ^~~
a.cc:36:35: error: invalid operands of types 'LL' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   36 |   cout << (ans == 1001)?"TLE":ans << endl;
      |                               ~~~~^~~~~~~