criyle/codenet-compile-errors huggingface dataset:
Language: C++

/*
      author  : nishi5451
      created : 14.08.2020 22:05:41
*/

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
typedef long long ll;

const int INF = 2e9;

int main(){
    int n,time;
    cin >> n >> time;
    int cost = INF;
    rep(i,n){
        int c,t;
        cin >> c >> t;
        if(time>=t){
            cost = min(cost,c);
        }
    }
    if(cost == INF){
        cont << "TLE" << endl;
    }
    else{
        cout << cost << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'cont' was not declared in this scope; did you mean 'cost'?
   25 |         cont << "TLE" << endl;
      |         ^~~~
      |         cost
Language: C++

/*
      author  : nishi5451
      created : 14.08.2020 22:05:41
*/

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
typedef long long ll;

const int INF = 2e9;

int main(){
    int n,time;
    cin >> n >> time;
    int cost = INF;
    rep(i,n){
        int c,t;
        cin >> c >> t;
        if(time>=t){
            cost = min(cost,c);
        }
    }
    if(cost = INF){
        cont << "TLE" << endl;
    }
    else{
        cout << cost << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'cont' was not declared in this scope; did you mean 'cost'?
   25 |         cont << "TLE" << endl;
      |         ^~~~
      |         cost
Language: Java

mport java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int T = sc.nextInt();
        int[] c = new int[n];
        int[] t = new int[n];
        int min = Integer.MAX_VALUE;
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(T > t[i]) {
                if(min > t[i]) {
                    min = t[i];
                    ans = c[i];
                }
            }
        }
        if(ans == Integer.MAX_VALUE) System.out.println("TLE");
        else System.out.println(ans);
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

mport java.util.Scanner;

public class Main099 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int T = sc.nextInt();
        int[] c = new int[n];
        int[] t = new int[n];
        int min = Integer.MAX_VALUE;
        int ans = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            c[i] = sc.nextInt();
            t[i] = sc.nextInt();
            if(T > t[i]) {
                if(min > t[i]) {
                    min = t[i];
                    ans = c[i];
                }
            }
        }
        if(ans == Integer.MAX_VALUE) System.out.println("TLE");
        else System.out.println(ans);
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: C++

#include<vector>
#include<algorithm>
 
using namespace std;
 
int main(){
  int N, T,c,t;
  cin >> N >> T;
  int ans=1001;
  
  for(int i=0;i<N;i++){
    cin>>c>>t;
    if(t<=T){
      ans=min(ans,c);
    }
  }
  if(ans!=1001){
    cout<<ans<<endl;
  }
  else{
    cout<<"TEL"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> N >> T;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<algorithm>
  +++ |+#include <iostream>
    3 | 
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout<<ans<<endl;
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:16: error: 'endl' was not declared in this scope
   18 |     cout<<ans<<endl;
      |                ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<algorithm>
  +++ |+#include <ostream>
    3 | 
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout<<"TEL"<<endl;
      |     ^~~~
a.cc:21:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:18: error: 'endl' was not declared in this scope
   21 |     cout<<"TEL"<<endl;
      |                  ^~~~
a.cc:21:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<vector>
#include<algorithm>
 
using namespace std;
 
int main(){
  int N, T,c,t;
  cin >> N >> T;
  int ans=1001;
  
  for(int i=0;i<N;i++){
    cin>>c>>t;
    if(t<=T){
      ans=min(ans,c);
    }
  }
  if(ans!=1001)cout<<ans<<endl;
  else cout<<"TEL"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> N >> T;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<algorithm>
  +++ |+#include <iostream>
    3 | 
a.cc:17:16: error: 'cout' was not declared in this scope
   17 |   if(ans!=1001)cout<<ans<<endl;
      |                ^~~~
a.cc:17:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:27: error: 'endl' was not declared in this scope
   17 |   if(ans!=1001)cout<<ans<<endl;
      |                           ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<algorithm>
  +++ |+#include <ostream>
    3 | 
a.cc:18:8: error: 'cout' was not declared in this scope
   18 |   else cout<<"TEL"<<endl;
      |        ^~~~
a.cc:18:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:21: error: 'endl' was not declared in this scope
   18 |   else cout<<"TEL"<<endl;
      |                     ^~~~
a.cc:18:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include <stdio.h>
int main(void){
    int N, T, i, cst = 9999, cnt = 0;
    int c[1000];
    int t[1000];
    
    scanf("%d %d", &N, &T);
    
    for(i = 0; i < N; i++){
        scanf("%d %d", &c[i], &t[i]);
    }
    
    for(i = 0; i < N; i++){
        if(T >= t[i] && c[i] <= cst){
            cst = c[i];
        }else{
            cnt = cnt + 1;
        }
    }
    
    if(cnt == N){
        printf("TLE\n");
    }else if(cnt < N){
        printf("%d\n", cst);
    }
    

Compiler output:
main.c: In function 'main':
main.c:25:5: error: expected declaration or statement at end of input
   25 |     }
      |     ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
      int T = scn.nextInt();
      int x = 1000000;
      int y = 0;
      int[] a = new int[n*2];
      for(int i=0; i<a.length; ++i){
        a[i] = scn.nextInt;
      }
      for(int i=1; i<a.length; i+=2){
        if(x > a[i]){
          x = a[i];
          y = a[(i-1)];
        }
      }
      if(x<=T){
        Sytem.out.println(y);
      }else{
        System.out.println("TLE");
      }
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
        a[i] = scn.nextInt;
                  ^
  symbol:   variable nextInt
  location: variable scn of type Scanner
Main.java:21: error: package Sytem does not exist
        Sytem.out.println(y);
             ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
       Scanner sc = new Scanner(System.in);
      //取得
	  int N = sc.nextInt();
      int T = sc.nextInt();
      int min = 10001;
      
      for(int i=0;i<N;i++){
       int cost = sc.nextInt();
        if(sc.nextInt()<=T){
          min = Math.min(min,cost)
        }
      }
      //出力
      if(min==10001){
        System.out.println("TLE");
      }else{
        System.out.println(min);
      }
    }
}

Compiler output:
Main.java:13: error: ';' expected
          min = Math.min(min,cost)
                                  ^
1 error
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
 
        int N = sc.nextInt();
        int T = sc.nextInt();
        int result = 1001;
        for (int i=0;i<n;i++){
            int c = sc.nextInt();
            if (sc.nextInt()<=T){
                result = Math.min(c,result);
        }
        if (result==1001){
            System.out.println("TLE");
        }else{ 
            System.out.println(result);
    }
}

Compiler output:
Main.java:20: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include<bits/stdc++.h>
#include<cstdlib>
using namespace std;
int main(){
  int N; int T; cin>>N>>T;
  vector<vector<int>> S(N,vector<int>(2));
  int A=0; //TLEしないルート数
  int B=1001; //コスト
  for(int i=0; i<N; i++){
    for(int j=0; j<2; j++){
      cin>>S.at(i).at(j);
     
    }
    if(S.at(i).at(1)<=T){
      A++;
     B=min(B,S.at(i);at(0));
    }
  }
  if(A!=0)
    cout<<B<<endl;
  else cout<<"TLE"<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: expected ')' before ';' token
   16 |      B=min(B,S.at(i);at(0));
      |           ~         ^
      |                     )
a.cc:16:22: error: 'at' was not declared in this scope
   16 |      B=min(B,S.at(i);at(0));
      |                      ^~
Language: C++

#include <bits/stdc++.h>
#define be(v) (v).begin(),(v).end()
#define pb(q) push_back(q)
typedef long long ll;
using namespace std;
const ll mod=1000000007, INF=(1LL<<60);
#define doublecout(a) cout<<fixed<<setprecision(10)<<a<<endl;

int main() {
    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);
    ll n, t ;
    cin >> n >> t;
    ll x, y;
    ll ans = INF;
    while(n--){
    	cin >> x >> y;
    	if(y <= t) ans = min(ans, x);
    }
    cout << ((ans == INF)?"TLE": ans) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:26: error: operands to '?:' have different types 'const char*' and 'll' {aka 'long long int'}
   21 |     cout << ((ans == INF)?"TLE": ans) << endl;
      |              ~~~~~~~~~~~~^~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define be(v) (v).begin(),(v).end()
#define pb(q) push_back(q)
typedef long long ll;
using namespace std;
const ll mod=1000000007, INF=(1LL<<60);
#define doublecout(a) cout<<fixed<<setprecision(10)<<a<<endl;

int main() {
    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);
    ll n, t ;
    cin >> n >> t;
    ll x, y;
    ll ans = INF;
    while(n--){
    	cin >> x >> y;
    	if(y <= t) ans = min(ans, x);
    }
    cout << ((ans == INF) "TLE": ans) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:26: error: expected ')' before string constant
   21 |     cout << ((ans == INF) "TLE": ans) << endl;
      |             ~            ^~~~~~
      |                          )
Language: C++

#include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
#define MOD9 998244353
#define intMAX 51000;
#define PI 3.14159265359
using namespace std;
typedef long long llong;
typedef long double ldouble;

using Graph = vector<vector<int>>;

int ctoi(const char c){
	if('0' <= c && c <= '9') return (c-'0');
	return -1;
}

int main(){
	int N, T;
	cin >> N >> T;
	vector<int> c(N);
	vector<int> t(N);
	int ans = intMAX;
	for(int i=0; i<N; ++i) cin >> c[i] >> t[i];
	for(int i=0; i<N; ++i){
		if(t[i] <= T) ans = min(ans, c[i]);
	}
	if(ans == intMAX) cout << "TLE" << endl;
	else cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:25: error: expected primary-expression before ')' token
   28 |         if(ans == intMAX) cout << "TLE" << endl;
      |                         ^
Language: C

#include<stdio.h>
int main(){
  int N,T,i;
  int c[N+1],t[N+1];
  scanf("%d %d",&N,&T);
  for(i=0;i<N;i++){
    scanf("%d %d",&c[i],&t[i]);
  }
  int costMin=c[0],cnt=0;
  for(i=0;i<N;i++){
    if(y[i] <= T){
      if(c[i] < costMin){
        costMin = c[i];
        cnt++;
      }
    }
  }
  if(cnt ==0){
    printf("TLE");
  }else{
    printf("%d",&costMin);
  }
}

Compiler output:
main.c: In function 'main':
main.c:11:8: error: 'y' undeclared (first use in this function)
   11 |     if(y[i] <= T){
      |        ^
main.c:11:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
  int N, T;
  cin >> N >> T;
  vector <int> cost;
  for (int i = 0; i < N; i++) {
    int c, t;
    cin >> c >> t;
    if (t <= T) cost.push_back(c);
  }
  if (cost.size()==0) {
    cout << "TLE" << endl;
    return 0;
  }
  sort(cost.begin(), cost, end());
  cout << cost[0] << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:31: error: no matching function for call to 'end()'
   19 |   sort(cost.begin(), cost, end());
      |                            ~~~^~
In file included from /usr/include/c++/14/bits/range_access.h:36,
                 from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/initializer_list:99:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
   99 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
/usr/include/c++/14/initializer_list:99:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:74:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)'
   74 |     end(_Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:74:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:85:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
   85 |     end(const _Container& __cont) -> decltype(__cont.end())
      |     ^~~
/usr/include/c++/14/bits/range_access.h:85:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:106:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
  106 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
/usr/include/c++/14/bits/range_access.h:106:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:115:31: note: candidate: 'template<class _Tp> _Tp* std::end(valarray<_Tp>&)'
  115 |   template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept;
      |                               ^~~
/usr/include/c++/14/bits/range_access.h:115:31: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:116:37: note: candidate: 'template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)'
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
/usr/include/c++/14/bits/range_access.h:116:37: note:   candidate expects 1 argument, 0 provided
Language: C++

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

int main(){
  int N,T;
  cin>>N>>T;
  int C=1001
  for(int i=0;i<N;i++){
    int c,t;
    cin>>c>>t;
    if(t<=T)
      C=min(C,c);
  }
  if(C==1001)
    cout<<"TLE"<<endl;
  else
    cout<<C<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for(int i=0;i<N;i++){
      |   ^~~
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=0;i<N;i++){
      |               ^
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define uni(e) e.erase(unique(e.begin(),e.end()),e.end())
#define double long double
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
int INF=1e10;
int MOD=1e9+7;
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void yesno(T b){if(b)out("yes");else out("no");}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
template<class T> void YESNO(T b){if(b)out("YES");else out("NO");}
template<class T> void noyes(T b){if(b)out("no");else out("yes");}
template<class T> void NoYes(T b){if(b)out("No");else out("Yes");}
template<class T> void NOYES(T b){if(b)out("NO");else out("YES");}
int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
}
int kurai(int a,int b){
  int m=pow(10,b),n=pow(10,b-1);
  return (a%m)/n;
}
int ketawa(int a){
  int k=0;
  rep(i,keta(a)){
  k+=kurai(a,i+1);
  }
  return k;
}
int gcd(int a,int b){
  if(a%b==0)
    return b;
  return gcd(b,a%b);
}
int lcm(int a,int b){
    return a/gcd(a,b)*b;
}
int mid(int a,int b,int c){
  vector<int> k(3);
  k[0]=a;k[1]=b;k[2]=c;
  sort(all(k));
  return k[1];
}
bool sosuu(int a){
  bool b=1;
  if(a<=1)
    return 0;
  else{
  rep1(i,sqrt(a)-1){
  if(a%(i+1)==0)
  b=0;
  }
  return b;
  }
}
int modpow(int a,int b,int m=MOD){
 if(!b)return 1; if(b&1)return modpow(a,b-1,m)*a%m;
 int memo = modpow(a,b>>1,m);
 return memo*memo%m;
}
int fact_mod(int n) {
    int f=1; 
for(int i=2;i<n+1;i++) f=f*(i%MOD)% MOD;
    return f;
}
int mod_pow(int x,int n) {
    int res=1;
    while(n>0){
        if(n&1) res=(res*x)%MOD; 
        x=(x*x)%MOD;        
n>>=1; 
    }
    return res;
}
int c_mod(int n, int r) {
    if(r>n-r) r=n-r;
    if(r==0) return 1;
    int a=1;
    rep(i,r) 
a=a*((n-i)%MOD)%MOD;
    int b=mod_pow(fact_mod(r), MOD-2);
    return (a%MOD)*(b%MOD)%MOD;
}
signed main(){
  int a,b;
  cin>>a>>b;
  vector<int> c(a),d(a);
  rep(i,a)
    cin>>c[i]>>d[i];
  int e=INF;
  rep(i,a){
  if(b=>d[i])
    chmin(e,c[i]);
  }
  if(e==INF)
    cout<<"TLE"<<endl;
  else
    out(e);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:103:8: error: expected primary-expression before '>' token
  103 |   if(b=>d[i])
      |        ^
Language: C++

#include <bits/stdc++.h>
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1e16;
const ll mod = 1000000007;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

template<class T> inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template<class T> inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int ctoi(char c) {
  if (c >= '0' && c <= '9') {
    return c - '0';
  }
  return 0;
}
ll factorial(ll n) {
  if (n == 1) {
    return 1;
  }
  ll ans = factorial(n-1);
  return ans*n;
}
ll gcd(ll a, ll b) {
  if (b == 0) return a;
  return gcd(b, a%b);
}
ll lcm(ll a, ll b) {
  return (a/gcd(a, b))*b;
}
bool is_prime(ll n) {
  for (ll i = 2; i*i <= n; i++) {
    if (n%i == 0) return false;
  }
  return n != 1;
}
ll mod_pow(ll x, ll n, ll mod) {
  if (n == 0) return 1;
  ll res = mod_pow(x*x%mod, n/2, mod);
  if (n & 1) res = res * x % mod;
  return res;
}

int main() {
  ll n, T;
  cin >> n >> t;
  ll res = INF;
  bool flag = 1;
  rep(i, n) {
    ll c, t;
    cin >> c >> t;
    if (t <= T) {
      res = min(res, c);
      flag = 0;
    }
  }
  if (flag) {
    cout << "TLE" << endl;
  } else {
    cout << res << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:58:15: error: 't' was not declared in this scope
   58 |   cin >> n >> t;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,srt,end) for( (ll)i=(ll)(srt); i<(ll)(end); i++; )
#define VL vector<ll>
#define INF 1e18

int main(){
    ll N,T;
    cin>>N>>T;
    VL c(N),t(N);
    rep(i,0,N)cin>>c[i]>>t[i];
    
    ll ans=INF;
    rep(i,0,N){
        if(T>=t[i]){ans=min(ans,c[i]);}
    }
    if(ans==INF)cout<<"TLE"<<endl;
    else cout<<ans<<endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     rep(i,0,N)cin>>c[i]>>t[i];
      |         ^
a.cc:4:33: note: in definition of macro 'rep'
    4 | #define rep(i,srt,end) for( (ll)i=(ll)(srt); i<(ll)(end); i++; )
      |                                 ^
a.cc:4:62: error: expected ')' before ';' token
    4 | #define rep(i,srt,end) for( (ll)i=(ll)(srt); i<(ll)(end); i++; )
      |                           ~                                  ^
a.cc:12:5: note: in expansion of macro 'rep'
   12 |     rep(i,0,N)cin>>c[i]>>t[i];
      |     ^~~
a.cc:4:64: error: expected primary-expression before ')' token
    4 | #define rep(i,srt,end) for( (ll)i=(ll)(srt); i<(ll)(end); i++; )
      |                                                                ^
a.cc:12:5: note: in expansion of macro 'rep'
   12 |     rep(i,0,N)cin>>c[i]>>t[i];
      |     ^~~
a.cc:15:9: error: 'i' was not declared in this scope
   15 |     rep(i,0,N){
      |         ^
a.cc:4:33: note: in definition of macro 'rep'
    4 | #define rep(i,srt,end) for( (ll)i=(ll)(srt); i<(ll)(end); i++; )
      |                                 ^
a.cc:4:62: error: expected ')' before ';' token
    4 | #define rep(i,srt,end) for( (ll)i=(ll)(srt); i<(ll)(end); i++; )
      |                           ~                                  ^
a.cc:15:5: note: in expansion of macro 'rep'
   15 |     rep(i,0,N){
      |     ^~~
a.cc:4:64: error: expected primary-expression before ')' token
    4 | #define rep(i,srt,end) for( (ll)i=(ll)(srt); i<(ll)(end); i++; )
      |                                                                ^
a.cc:15:5: note: in expansion of macro 'rep'
   15 |     rep(i,0,N){
      |     ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,T;
  cin>>N>>T;
  vector<pair<int,int>> P(N);
  for(int i=0;i<N;i++){
    cin>>P.at(i).first>>P.at(i).second;
  }
  int ans=1000;
  bool a=false;
  for(int i=0;i<N;i++){
    if(P.at(i).second<=T){
      ans=min(ans,P.at(i)first);
      a=true;
    }
  }
  if(a){
    cout<<ans<<endl;
  }
  else{
    cout<<"TLE"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: expected ')' before 'first'
   14 |       ans=min(ans,P.at(i)first);
      |              ~           ^~~~~
      |                          )
a.cc:14:14: error: no matching function for call to 'min(int&, __gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type&)'
   14 |       ans=min(ans,P.at(i)first);
      |           ~~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:14:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'std::pair<int, int>'})
   14 |       ans=min(ans,P.at(i)first);
      |           ~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:14:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   14 |       ans=min(ans,P.at(i)first);
      |           ~~~^~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,T;
  cin>>N>>T;
  vector<pair<int,int>> P(N);
  for(int i=0;i<N;i++){
    cin>>P.first.at(i)>>P.second.at(i);
  }
  int ans=1000;
  bool a=false;
  for(int i=0;i<N;i++){
    if(P.second.at(i)<=T){
      ans=min(ans,P.first.at(i));
      a=true;
    }
  }
  if(a){
    cout<<ans<<endl;
  }
  else{
    cout<<"TLE"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
    8 |     cin>>P.first.at(i)>>P.second.at(i);
      |            ^~~~~
a.cc:8:27: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
    8 |     cin>>P.first.at(i)>>P.second.at(i);
      |                           ^~~~~~
a.cc:13:10: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
   13 |     if(P.second.at(i)<=T){
      |          ^~~~~~
a.cc:14:21: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
   14 |       ans=min(ans,P.first.at(i));
      |                     ^~~~~
Language: C++

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

int main(){
  int n,s,c[101],t[101],mn=10000000,mx=100000;
  cin>>n>>s;
  bool ad=false;
  for(int i=0;i<n;i++){
    cin>>c[i]>>t[i];
  }
  for(int i=0;i<n;i++){
    mx=min(mx,t[i]);
  }
  if(mx>t){
    ad=true;
  }
  for(int i=0;i<n;i++){
    if(t[i]<s){
      mn=min(mn,c[i]);
    }
  }
  if(ad=true){
    cout<<"TLE"<<endl;
  }
  else{
    cout<<mn<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if(mx>t){
      |      ~~^~
Language: C++

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

int main(){
  int n,s,c[101],t[101],mn=10000000,mx=-1;
  cin>>n>>s;
  bool ad=false;
  for(int i=0;i<n;i++){
    cin>>c[i]>>t[i];
  }
  for(int i=0;i<n;i++){
    mx=min(mx,t[i]);
  }
  if(mx>t){
    ad=true;
  for(int i=0;i<n;i++){
    if(t[i]<s){
      mn=min(mn,c[i]);
    }
  }
  if(ad=true){
    cout<<"TLE"<<endl;
  }
  else{
    cout<<mn<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if(mx>t){
      |      ~~^~
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main() {
  int N,T;
  cin>>N>>T;
  int Z=10000;
  for(int i=0;i<N;i++){
    int c,t;
    cin>>c>>t;
    if(t<=T){
      Z=min(c,Z);
    }
  }
  if(Z==100000){
    cout<<"TLE"<<endl;
  }
  else{
    cout<<c<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: 'c' was not declared in this scope
   19 |     cout<<c<<endl;
      |           ^
Language: C++

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

int main(){
  int n,t;
  cin>>n>>t;
  int min=0;
  bool cango=false;
  for(int i=0;i<n;i++){
    int c1,t1;
    cin>>c1>>t1;
    if(t1<=t){
      cango=true;
      min=min(min,c1);
    }
  }
  if(cango){
    cout<<min<<endl;
  }else{
    cout<<"TLE"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'min' cannot be used as a function
   14 |       min=min(min,c1);
      |           ~~~^~~~~~~~
Language: C++

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

int main(){
	int n,t;
  	cin >> n >> t;
  	long ans=1e9+7;
  	for(int i=0;i<n;i++){
    	long a,b;
      	cin >> a >> b;
      	if(b<=t)ans=min(ans,a);
    }
  	cout << (ans==1e9+7?"TLE":ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: operands to '?:' have different types 'const char*' and 'long int'
   13 |         cout << (ans==1e9+7?"TLE":ans);
      |                  ~~~~~~~~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
vector<int> input(int N) {
  vector<int> vec(N);
  for (int i = 0; i < N; i++) {
    cin >> vec.at(i);
  }
  return vec;
}

int main() {
  int n,t;
  cin >> n >> t;
  vector<int> c(n);
  vector<int> t(n);
  rep(i,n){
    cin >> c[i] >> t[i];
  }
  int ans=1001;
  rep(i,n){
    if(t[i]<=t){
      if(ans>c[i]){
        ans = c[i];
      }
    }
  }
  if(ans==1001){
    cout << "TLE" << endl;
  }else{
    cout << ans << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: conflicting declaration 'std::vector<int> t'
   16 |   vector<int> t(n);
      |               ^
a.cc:13:9: note: previous declaration as 'int t'
   13 |   int n,t;
      |         ^
a.cc:18:21: error: invalid types 'int[int]' for array subscript
   18 |     cin >> c[i] >> t[i];
      |                     ^
a.cc:22:9: error: invalid types 'int[int]' for array subscript
   22 |     if(t[i]<=t){
      |         ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int main()
{
	int N, T;
	cin >> N >> T;
	int k = 100000000;
	for (int i = 1; i <= N; ++i)
	{
		int c, t;
		cin >> c >> t;
		if (t <= T)
		{
			k = min(k, c);
		}
	}
	if (k = 100000000)
		cout << "TLE";
	else
		cout << u;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: 'u' was not declared in this scope
   23 |                 cout << u;
      |                         ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int main()
{
	int N, T;
	cin >> N >> T;
	int k = 1000000;
	int u;
	for (int i = 1; i <= N; ++i)
	{
		cin >> c >> t;
		if (t <= T)
		{
			u = min(k, c);
		}
	}
	if (u = 1000000)
		cout << "TLE";
	else
		cout << u;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: 'c' was not declared in this scope
   14 |                 cin >> c >> t;
      |                        ^
a.cc:14:29: error: 't' was not declared in this scope
   14 |                 cin >> c >> t;
      |                             ^
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int c[1000];
int t[1000];

int main()
{
	int N, T;
	cin >> N >> T;
	int k = 1000000;
	for (int i = 1; i <= n; ++i)
	{
		cin >> c[i] >> t[i];
		if (t[i] <= T)
			int u = min(k, c[i]);
	}
	if (u == 1000000)
		cout << "TLE";
	else
		cout << u;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: 'n' was not declared in this scope
   14 |         for (int i = 1; i <= n; ++i)
      |                              ^
a.cc:20:13: error: 'u' was not declared in this scope
   20 |         if (u == 1000000)
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9 // INF = Infinity 無限 最小値を求めるときによく使う　
int main() {
  //入力
  int n,t;
  cin >> n >> t;
  vector<int> c(n),d(n);
  rep(i,n) cin >> c.at(i) >> d.at(i);

  //処理部分
  int ans = INF;　//無限で初期化しておく(実用上は十分大きい数)
  rep(i,n){
    // 時間内につくものについてコストの最小値をとる
    if(d.at(i)<=t){
      ans = min(ans,c.at(i));
    }
  }
  
  //出力
  // 時間内につくものがないなら最小値の更新はされてないはず
  if(ans==INF){
    cout <<  "TLE" << endl;
  }else{
    cout << ans << endl;
  }
}


Compiler output:
a.cc:13:17: error: extended character 　 is not valid in an identifier
   13 |   int ans = INF;　//無限で初期化しておく(実用上は十分大きい数)
      |                 ^
a.cc: In function 'int main()':
a.cc:13:17: error: '\U00003000' was not declared in this scope
   13 |   int ans = INF;　//無限で初期化しておく(実用上は十分大きい数)
      |                 ^~
a.cc:14:7: error: 'i' was not declared in this scope
   14 |   rep(i,n){
      |       ^
a.cc:3:35: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9 // INF = Infinity 無限　最小値を求めるときによく使う　
int main() {
  //入力
  int n,t;
  cin >> n >> t;
  vector<int> c(n),d(n);
  rep(i,n) cin >> c.at(i) >> d.at(i);

  //処理部分
  int ans = INF;　//無限で初期化しておく(実用上は十分大きい数)
  rep(i,n){
    // 時間内につくものについてコストの最小値をとる
    if(d.at(i)<=t){
      ans = min(ans,c.at(i));
    }
  }
  
  //出力
  // 時間内につくものがないなら最小値の更新はされてないはず
  if(ans==INF){
    cout <<  "TLE" << endl;
  }else{
    cout << ans << endl;
  }
}


Compiler output:
a.cc:13:17: error: extended character 　 is not valid in an identifier
   13 |   int ans = INF;　//無限で初期化しておく(実用上は十分大きい数)
      |                 ^
a.cc: In function 'int main()':
a.cc:13:17: error: '\U00003000' was not declared in this scope
   13 |   int ans = INF;　//無限で初期化しておく(実用上は十分大きい数)
      |                 ^~
a.cc:14:7: error: 'i' was not declared in this scope
   14 |   rep(i,n){
      |       ^
a.cc:3:35: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
Language: C

#include <stdio.h>
int main(void){
  int N,T,i,index,c[100],t[100];
  
  scanf("%d%d",&N,&T);
  
  for(i=0;i<N;i++)
    scanf("%d%d",&c[i],&t[i]);
  index=0;
  for(i=0;i<N;i++){
    if(t[i]<T){
       if(c[i]>c[index]) index=i;
    }
    else printf("TLE");
  printf("%d",c[index]);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
  int N,T,i,index,c[100],t[100];
  
  scanf("%d%d",&N,&T);
  
  for(i=0;i<N;i++)
    scanf("%d%d",&c[i],&t[i]);
  intdex=0;
  for(i=0;i<N;i++){
    if(t[i]>T);
    else {
      if(c[i]<c[index]) index=i;
    }
  }
  printf("%d",index);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: 'intdex' undeclared (first use in this function); did you mean 'index'?
    9 |   intdex=0;
      |   ^~~~~~
      |   index
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>

int main () 
{
 int N , T;
 scanf("%d %d",&N,&T);
 int C[N];
 int T1[N];

 int min = INT_MAX;
 int count = 0;


 for (int i = 0;i<N;i++)
 {
   scanf("%d %d",&C[i],&T1[i]);
   if (min>C[i] && T>=T1[i])
   {
       min=C[i];
       count++;  
   }
 }

 if (count>0)printf("%d",min);
 else printf("TLE");
  



 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:12: error: 'INT_MAX' undeclared (first use in this function)
   13 |  int min = INT_MAX;
      |            ^~~~~~~
main.c:5:1: note: 'INT_MAX' is defined in header '<limits.h>'; this is probably fixable by adding '#include <limits.h>'
    4 | #include <string.h>
  +++ |+#include <limits.h>
    5 | 
main.c:13:12: note: each undeclared identifier is reported only once for each function it appears in
   13 |  int min = INT_MAX;
      |            ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N,T;
  cin>>N>>T;
  map<int,int> R;
  for(int i=0;i<N;i++){
  int c,t;
    cin>>c>>t;
    if(t<=T)
      R[i]=c;
  
  }
    int Min=R.at(0);
  if(R.size()==0)
      cout<<"TLE"<<endl;
  else{
    for(auto p;R){
    auto k=p.first;
      auto v=p.second;
      if(v<=Min)
        Min=v;
    } cout<<Min<<endl;
  
  }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: declaration of 'auto p' has no initializer
   18 |     for(auto p;R){
      |         ^~~~
a.cc:18:16: error: could not convert 'R' from 'std::map<int, int>' to 'bool'
   18 |     for(auto p;R){
      |                ^
      |                |
      |                std::map<int, int>
a.cc:18:17: error: expected ';' before ')' token
   18 |     for(auto p;R){
      |                 ^
      |                 ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N,T;
  cin>>N>>T;
  map<int,int> R;
  for(int i=0;i<N,i++){
  int c,t;
    cin>>c>>t;
    if(t<=T)
      R[i]=c;
  
  }
    int Min=R.at(0);
  if(R.size()==0)
      cout<<"TLE"<<endl;
  else{
    for(auto p;R){
    auto k=p.first;
      auto v=p.second;
      if(v<=Min)
        Min=v;
    } cout<<Min<<endl;
  
  }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before ')' token
    7 |   for(int i=0;i<N,i++){
      |                      ^
      |                      ;
a.cc:18:9: error: declaration of 'auto p' has no initializer
   18 |     for(auto p;R){
      |         ^~~~
a.cc:18:16: error: could not convert 'R' from 'std::map<int, int>' to 'bool'
   18 |     for(auto p;R){
      |                ^
      |                |
      |                std::map<int, int>
a.cc:18:17: error: expected ';' before ')' token
   18 |     for(auto p;R){
      |                 ^
      |                 ;
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define repd(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)

int main()
{
  int N, T;
  cin >> N >> T;
  int c[N], t[N];
  int cost = 1001;
  rep(i, N)
  {
    cin >> c[i] >> t[i];

    if (t[i] < T)
    {
      if (c[i] < cost)
        cost = c[i];
    }
  }

  if (cost == = '1001')
  {
    cout << "TLE";
    return 0;
  }

  cout << cost;
}

Compiler output:
a.cc:28:17: warning: multi-character character constant [-Wmultichar]
   28 |   if (cost == = '1001')
      |                 ^~~~~~
a.cc: In function 'int main()':
a.cc:28:15: error: expected primary-expression before '=' token
   28 |   if (cost == = '1001')
      |               ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int N,Tmax;
    int custo,tempo;
    int melhorc = 1000,melhort;
    ios::sync_with_stdio(false);
    cin >> N >> Tmax;
    melhort = Tmax + 1;
    for (int i = 0 ; i < N ; i++)
    {
        cin >> custo >> tempo;
        if(custo<=melhorc && tempo<=Tmax)
        {
            if(custo =< melhorc)
            {
                melhorc = custo;
                //cout << "melhorc: " << melhorc << endl;
                melhort = tempo;
            }
        }
    }
    if (melhort <= Tmax)
    {
        cout << melhorc << endl;
    }
    else
    {
        cout << "TLE" << endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: expected primary-expression before '<' token
   18 |             if(custo =< melhorc)
      |                       ^
Language: C++

#include <stdio.h>

int main()
{
	
	//N rotas
	
	int N, T;
	int save;
	int c[100];
	int t[100];
	scanf("%d %d", &N, &T);
	
	for (int i = 0; i < N; i++){
		scanf("%d %d", &c[i], &t[i]);
		if (t[i] > T){
			c[i] = 1001	;
		}
	}
	
	for (int j = 0; j < N; j++){
		for (int k = 1; k < N; k++){
			if(c[k] < c[j]){
				   save = c[j];
				   c[j] = c[k];
				   c[k] = save;	
			}
		}
	}
	
	
	if(c[0] =< T){
		printf("%d", c[0]);
	}
	else{
		printf("TLE");
	}
	
	
	
	
	
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:18: error: expected primary-expression before '<' token
   32 |         if(c[0] =< T){
      |                  ^
Language: C++

#include <iostream>
using namespace std;


int main(){
	int n,t,sol,a,b;
	cin >> n >> t;
	int sol = 1e9;
	for(int i=0;i<n;i++){
		cin >> a >> b;
		if(b <= t)
			sol = min(sol,a);
	}
	if(sol == 1e9)
		cout << "TLE"
	else
		cout << sol;
			
		
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: redeclaration of 'int sol'
    8 |         int sol = 1e9;
      |             ^~~
a.cc:6:17: note: 'int sol' previously declared here
    6 |         int n,t,sol,a,b;
      |                 ^~~
a.cc:15:30: error: expected ';' before 'else'
   15 |                 cout << "TLE"
      |                              ^
      |                              ;
   16 |         else
      |         ~~~~
Language: C++

#include <iostream>
using namespace std;


int main(){
	int n,t,sol,a,b;
	cin >> n >> t;
	int sol = 1e9;
	for(i=0;i<n;i++){
		cin >> a >> b;
		if(b <= t)
			sol = min(sol,a);
	}
	if(sol == 1e9)
		cout << "TLE"
	else
		cout << sol;
			
		
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: redeclaration of 'int sol'
    8 |         int sol = 1e9;
      |             ^~~
a.cc:6:17: note: 'int sol' previously declared here
    6 |         int n,t,sol,a,b;
      |                 ^~~
a.cc:9:13: error: 'i' was not declared in this scope
    9 |         for(i=0;i<n;i++){
      |             ^
a.cc:15:30: error: expected ';' before 'else'
   15 |                 cout << "TLE"
      |                              ^
      |                              ;
   16 |         else
      |         ~~~~
Language: C++

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


int main(){
  int N,T;

  cin >> N >> T;
  vector<int> c(N);
  vector<int> t(N);
  vector<pair<int,int>> p(N);
  for(int i = 0; i < N; i++){
    cin >> c[i] >> t[i];
  }


  for(int i = 0; i < N; i++){
    p[i] = make_pair(c[i],t[i]);
  }

  sort(p.begin(),p.end());

  for(int i = N - 1; i >= 0; i--){
    if(p[i].end() <= T){ cout << p[i].begin(); return 0;}
  }

  cout << "TLE" << endl;


    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:13: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'end'
   24 |     if(p[i].end() <= T){ cout << p[i].begin(); return 0;}
      |             ^~~
a.cc:24:39: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'begin'
   24 |     if(p[i].end() <= T){ cout << p[i].begin(); return 0;}
      |                                       ^~~~~
Language: C++

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


int main(){
  int N,T;

  cin >> N >> T;
  vector<int> x(N);
  vector<int> t(N);
  vector<pair<int,int>> p(N);
  for(int i = 0; i < N; i++){
    cin >> c[i] >> t[i];
  }


  for(int i = 0; i < N; i++){
    p[i] = make_pair(c[i],t[i]);
  }

  sort(p.begin(),p.end());

  for(int i = N - 1; i >= 0; i--){
    if(p[i].end() <= T){ cout << p[i].begin(); return 0;}
  }

  cout << "TLE" << endl;


    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'c' was not declared in this scope
   13 |     cin >> c[i] >> t[i];
      |            ^
a.cc:18:22: error: 'c' was not declared in this scope
   18 |     p[i] = make_pair(c[i],t[i]);
      |                      ^
a.cc:24:13: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'end'
   24 |     if(p[i].end() <= T){ cout << p[i].begin(); return 0;}
      |             ^~~
a.cc:24:39: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'begin'
   24 |     if(p[i].end() <= T){ cout << p[i].begin(); return 0;}
      |                                       ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <ctime>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cassert>
#include <bitset>
#include <list>
#include <cstdio>
#include <stdio.h>
#include <string.h>
#include <math.h>
#define rep(i,n) for(int i=0; i<(n); i++)
typedef long long ll;
using namespace std;

int main()
{
    int n, T;
    cin >> n >> T;
    ans = 1001;
    rep(i,n)
    {
        int c, t;
        cin >> c >> t;
        if(t<=T)
        {
            ans = min(ans, c);
        }
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 |     ans = 1001;
      |     ^~~
      |     abs
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <ctime>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cassert>
#include <bitset>
#include <list>
#include <cstdio>
#include <stdio.h>
#include <string.h>
#include <math.h>
#define rep(i,n) for(int i=0; i<(n); i++)
typedef long long ll;
using namespace std;

int main()
{
    int n, T;
    cin >> n >> T;
    ans = 1001;
    rep(i,0,n)
    {
        int c, t;
        cin >> c >> t;
        if(t<=T)
        {
            ans = min(ans, c);
        }
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc:27:14: error: macro "rep" passed 3 arguments, but takes just 2
   27 |     rep(i,0,n)
      |              ^
a.cc:18:9: note: macro "rep" defined here
   18 | #define rep(i,n) for(int i=0; i<(n); i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:26:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 |     ans = 1001;
      |     ^~~
      |     abs
a.cc:27:5: error: 'rep' was not declared in this scope
   27 |     rep(i,0,n)
      |     ^~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <ctime>
#include <functional>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <cassert>
#include <bitset>
#include <list>
#include <cstdio>
#include <stdio.h>
#include <string.h>
#include <math.h>
#define rep(i,n) for(int i=0; i<(n); i++)
typedef long long ll;
using namespace std;

int main()
{
    int n, t;
    cin >> n >> t;
    ans = 1001;
    rep(i,0,n)
    {
        int c, t;
        cin >> c >> t;
        if(t<=T)
        {
            ans = min(ans, c);
        }
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc:27:14: error: macro "rep" passed 3 arguments, but takes just 2
   27 |     rep(i,0,n)
      |              ^
a.cc:18:9: note: macro "rep" defined here
   18 | #define rep(i,n) for(int i=0; i<(n); i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:26:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 |     ans = 1001;
      |     ^~~
      |     abs
a.cc:27:5: error: 'rep' was not declared in this scope
   27 |     rep(i,0,n)
      |     ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef vector<int> vec1;
typedef vector<string> vec2;
typedef vector<double> vec3;

int main() {

  int n, t;
  cin >> n >> t;
  vec1 c(n);
  vec1 b(n);
  for(int i = 0; i < n; i++) {
    cin >> c.at(i) >> b.at(i);
  }
  int ans = 100000;
  for(int i = 0; i < n; i++) {
    if(c.at(i) > ans && b.at(i) <= t) {
      ans = c.at(i);
    }
  }
  if(ans == 100000) {
    cout < "TLE" << endl;
  } else {
    cout << ans << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   24 |     cout < "TLE" << endl;
      |            ~~~~~~^~~~~~~