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

#include <iostream>
#include <string>
#include <map>
#include <set>
#include <vector>
#include <algorithm>
#include <iomanip>

using namespace std;

int main()
{
  int N, T;
  cin >> N >> T;

  int min_c = 10000;
  for (int i = 0; i < N; ++i)
  {
    int c, t;
    cin >> c >> t;

    if (t <= T)
    {
      if (min_c > c)
      {
        min_c = c;
      }
    }
  }

  if (min_t <= 1000) cout << min_c << endl;
  else cout << "TLE" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:7: error: 'min_t' was not declared in this scope; did you mean 'min_c'?
   31 |   if (min_t <= 1000) cout << min_c << endl;
      |       ^~~~~
      |       min_c
Language: C++

//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const int INF= 1e9+5;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>>vvi;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: conflicting declaration 'std::vector<int> t'
   17 |   vector<int>t(n);
      |              ^
a.cc:14:9: note: previous declaration as 'int t'
   14 |   int n,t;
      |         ^
a.cc:18:23: error: invalid types 'int[int]' for array subscript
   18 |   rep(i,n)cin>>c[i]>>t[i];
      |                       ^
a.cc:20:12: error: invalid types 'int[int]' for array subscript
   20 |     if(t>=t[i])ans=min(ans,c[i]);
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int n,t;
  cin>>n>>t;
  int a,b,min = INT_MAX;
  bool flag = false;
  for(int i=0;i<n;i++){
  	cin>>a>>b;
    if(b<t){
    	if(a<min)
          min = a;
      		falg = true;
    }
  }
  if(flag)
    cout<<min;
  else
    cout<<"TLE";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'falg' was not declared in this scope; did you mean 'flag'?
   13 |                 falg = true;
      |                 ^~~~
      |                 flag
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main()
{ 
  vector< pair<int,int> > v;
  int n,T;
  scanf("%d%d",&n,&T);
  int i,c[n],t[n];
  for(i=0;i<n;++i)
    {
        scanf("%d%d",&c[i],&t[i]);
        v.push_back(make_pair(c[i],t[i]));
         
  }
  
   sort(v.begin().v.end());
  
  for(i=0;i<v.size();++i)
  {
    if(v[i].second<=T)
        break;
  }
  
  if(i==v.size())
      printf("TLE");
  
  else
     printf("%d",v[i].first);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: 'std::vector<std::pair<int, int> >::iterator' has no member named 'v'
   18 |    sort(v.begin().v.end());
      |                   ^
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
 
int main()
{ 
  vector< pair<int,int> > v;
  int n,T;
  scanf("%d%d",&n,&t);
  int i,c[n],t[n];
  for(i=0;i<n;++i)
    {
        scanf("%d%d",&c[i],&t[i]);
        v.push_back(make_pair(c[i],t[i]));
         
  }
  
   sort(v.begin().v.end());
  
  for(i=0;i<v.size();++i)
  {
    if(v[i].second<=t)
        break;
  }
  
  if(i==v.size())
      printf("TLE");
  
  else
     printf("%d",v[i].first);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 't' was not declared in this scope
    9 |   scanf("%d%d",&n,&t);
      |                    ^
a.cc:18:19: error: 'std::vector<std::pair<int, int> >::iterator' has no member named 'v'
   18 |    sort(v.begin().v.end());
      |                   ^
Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define MOD 1000000007
#define INF 1e18
#define PI 3.14159265358979

using namespace std;

ll gcd(ll a, ll b);
ll power(ll n, ll k);
ll inv(ll n);
ll genfact(ll n, ll k);
ll fact(ll n);
ll nck(ll n, ll k);

int main(void){
  int n, t;
  cin >> n >> t;
  int m = 1e9;
  int a, b;
  for (int i = 0; i < n; i++){
    cin >> a >> b;
    if (b <= t)
      m = min(m, a);
  }

  cout << (m == 1e9 ? "TLE" : m) << endl;

  return 0;
}

ll gcd(ll a, ll b){
  if (a < b)
    return gcd(b, a);
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}

ll power(ll n, ll k){
  ll res = 1;
  while(k > 0){
    if (k & 1) 
      res = res * n % MOD;
    n = n * n % MOD;
    k >>= 1;
  }
  return res;
}

ll genfact(ll n, ll k){

  ll res = 1;
  while (k >= 0){
    res = (res * (n - k)) % MOD;
    k--;
  }

  return res;
}

ll inv(ll n){
  return power(n, MOD - 2);
}

ll fact(ll n){
  return genfact(n, n - 1);
}

ll nck(ll n, ll k){
  if (k == 0)
    return 1;
  if (n <= 0)
    return 0;

  return ((genfact(n, k) % MOD) * inv(fact(k))) % MOD;
}


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

#include <bits/stdc++.h>
using namespace std;
int main() {
int N,T;cin>>N>>T;
int m=99999;//假设 m 为较大的值
for(int i=0; i<N; i++){
int c,t;cin>>c>>t;
if(T>=t)m=min(c,m);
} i
f(m==99999)cout<<"TLE"<<endl;//说明每条路都超过规定时间
else cout<<m<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'i' was not declared in this scope
    9 | } i
      |   ^
a.cc:11:1: error: 'else' without a previous 'if'
   11 | else cout<<m<<endl;
      | ^~~~
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);
    for(int i=0;i<n;i++){
        cin >> c.at(i) >> t.at(i);
        if(t.at(i)>T){
            c.at(i)=1001;
        }
    }
    sort(c.begin(),c.end());
    if(c.a(0)==1001) cout << "TLE" << endl;
    else cout << c.at(0) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'class std::vector<int>' has no member named 'a'; did you mean 'at'?
   16 |     if(c.a(0)==1001) cout << "TLE" << endl;
      |          ^
      |          at
Language: C++

// [[ABC134C] Exception Handling] https://www.luogu.com.cn/problem/AT4843
#include <algorithm>
#include <iostream>
#include <map>
using namespace std;
const int inf = int(1e9);
int main() {
  int N, T;
  cin >> N >> T;

  int ans = inf;
  for (int i = 0; i < N; i++) {
    int c, t;
    cin >> c >> t;

    if (t < T && c < ans) ans = c;
  }

  if (ans == 1nf) {
    cout << "TLE" << endl;
  } else {
    cout << ans << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: unable to find numeric literal operator 'operator""nf'
   19 |   if (ans == 1nf) {
      |              ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,T,c,t;
  cin >> N >> T;
  int m = 1001;
  for (int i = 0; i < N; i++){
    cin >> c >> t;
    if (t <= T) m = min(m,c);
  }
  cout << (m == 1001 ? "TLE" : m);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: operands to '?:' have different types 'const char*' and 'int'
   11 |   cout << (m == 1001 ? "TLE" : m);
      |            ~~~~~~~~~~^~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int INF=1e9;
int main() {
  int n, T;
  cin >> n >> T;
  int mi=INF, ans;
  for(int i=0; i<n; i++) {
    int a,b;
    cin >> a >> b;
    if(b<=T && mi>b) {
      mi=b; ans=a;
    }
  }
  cout << (mi<INF? ans:"TLE") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: operands to '?:' have different types 'int' and 'const char*'
   15 |   cout << (mi<INF? ans:"TLE") << endl;
      |            ~~~~~~^~~~~~~~~~~
Language: C++

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

int main() {
  int n, T;
  cin >> n >> T;
  int mi=1e9, ans;
  for(int i=0; i<n; i++) {
    int a,b;
    cin >> a >> b;
    if(b<=T && mi>b) {
      mi=a; ans=a;
    }
  }
  cout << (mi<1e9? ans:"TLE") << endl;
  return 0;
}

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

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

int main() {
    int n, t, ans=1001;
    cin >> n >> t;
    for (int i = 0; i < n; i++) {
        int ci, ti;
        cin >> ci >> ti;
        if (ti <= t)
            ans = min(ans, ci);
    if (ans < 1001) cout << ans << endl;
    else cout << "TLE" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++


n,t = map(int,input().split())
l = [ list(map(int,input().split(" "))) for i in range(n)]
#print(l)

l = sorted(l)
#print(l)

for j in range(n):
    if l[j][1] <= t:
        print(l[j][0])
        break
else:
    print('TLE')



Compiler output:
a.cc:4:2: error: invalid preprocessing directive #print
    4 | #print(l)
      |  ^~~~~
a.cc:7:2: error: invalid preprocessing directive #print
    7 | #print(l)
      |  ^~~~~
a.cc:14:11: warning: multi-character character constant [-Wmultichar]
   14 |     print('TLE')
      |           ^~~~~
a.cc:2:1: error: 'n' does not name a type
    2 | n,t = map(int,input().split())
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = (0); i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(x) (x).begin(),(x).end()
#define rrng(x) (x).rbegin(),(x).rend()
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define show(x) cout << #x << " = " << (x) << endl
#define show2(x,y) cout << #x << " = " << (x) << ", " << #y << " = " << (y) << endl
#define show3(x,y,z) cout << #x << " = " << (x) << ", " << #y << " = " << (y) <<  ", " << #z << " = " << (z) << endl
#define showv(v) rep(i,v.size()) printf("%d%c", v[i], i==v.size()-1?'\n':' ')
#define showv2(v) rep(j,v.size()) showv(v[j])
#define showt(t,n) rep(i,n) printf("%d%c", t[i], i==n-1?'\n':' ')
#define showt2(t,r,c) rep(j,r) showt(t[j],c)
#define showvp(p) rep(i,p.size()) printf("%d %d\n", p[i].first, p[i].second);
#define printv(v) rep(i,v.size()) printf("%d\n", v[i])
#define printt(t,n) rep(i,n) printf("%d\n", t[i])
#define incl(v,x) find(rng(v),x)!=v.end()
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define uni(x) x.erase(unique(rng(x)),x.end())
#define SP << " " <<
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using pii = pair<int, int>;
using tiii = tuple<int, int, int>;
typedef vector<pii> vp;
typedef vector<tiii> vt;
const int mod = 1000000007;
const double EPS = 1e-9;
const int INF = (1<<30)-1;
const ll INFLL = (1LL<<62)-1;
#define dame { puts("No"); return 0;}
#define yn {puts("Yes");}else{puts("No");}
inline int in() { int x; scanf("%d",&x); return x;}
//cout << fixed << setprecision(10);
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

int main () {
  int n, T;
  cin >> n >> T;
  int ans = INF;
  rep(i,n) {
    int c, t;
    cin >> c >> t;
    if (t <= T) {
      chmin(ans, c);
    }
  }
  cout << (ans != INF ? ans : "TLE") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:64:23: error: operands to '?:' have different types 'int' and 'const char*'
   64 |   cout << (ans != INF ? ans : "TLE") << endl;
      |            ~~~~~~~~~~~^~~~~~~~~~~~~
Language: C++


#include <bits/stdc++.h>
#define rep(i,n) for (int i = (0); i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(x) (x).begin(),(x).end()
#define rrng(x) (x).rbegin(),(x).rend()
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define show(x) cout << #x << " = " << (x) << endl
#define show2(x,y) cout << #x << " = " << (x) << ", " << #y << " = " << (y) << endl
#define show3(x,y,z) cout << #x << " = " << (x) << ", " << #y << " = " << (y) <<  ", " << #z << " = " << (z) << endl
#define showv(v) rep(i,v.size()) printf("%d%c", v[i], i==v.size()-1?'\n':' ')
#define showv2(v) rep(j,v.size()) showv(v[j])
#define showt(t,n) rep(i,n) printf("%d%c", t[i], i==n-1?'\n':' ')
#define showt2(t,r,c) rep(j,r) showt(t[j],c)
#define showvp(p) rep(i,p.size()) printf("%d %d\n", p[i].first, p[i].second);
#define printv(v) rep(i,v.size()) printf("%d\n", v[i])
#define printt(t,n) rep(i,n) printf("%d\n", t[i])
#define incl(v,x) find(rng(v),x)!=v.end()
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define uni(x) x.erase(unique(rng(x)),x.end())
#define SP << " " <<
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using pii = pair<int, int>;
using tiii = tuple<int, int, int>;
typedef vector<pii> vp;
typedef vector<tiii> vt;
const int mod = 1000000007;
const double EPS = 1e-9;
const int INF = (1<<30)-1;
const ll INFLL = (1LL<<62)-1;
#define dame { puts("No"); return 0;}
#define yn {puts("Yes");}else{puts("No");}
inline int in() { int x; scanf("%d",&x); return x;}
//cout << fixed << setprecision(10);
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

int main () {
  int n, T;
  cin >> n >> T;
  int ans = INF;
  rep(i,n) {
    int c, t;
    cin >> c >> t;
    if (t <= T) {
      chmin(ans, c);
    }
  }
  cout << (ans != INF ? c : "TLE") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:65:25: error: 'c' was not declared in this scope
   65 |   cout << (ans != INF ? c : "TLE") << endl;
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int n, t, ans = 1001;
	cin >> n >> t;

	for(int i=0;i<n;i++){
		int cost, time;
		cin >> cost >> time;
		if(t>=time && cost>=min) ans = cost;
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>='
   11 |                 if(t>=time && cost>=min) ans = cost;
      |                               ~~~~^~~~~
Language: C++

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

int main() {

  int n,t,minc=INF;
  cin>>n>>t;
  vector<pair<int,int>>A(n);
  for(int i=0;i<n;i++){
    cin>>A[i].first>>A[i].second;}
  for(int i=0;i<n;i++){
    if(A[i].second<=t&&minc>A[i].first) minc=A[i].first;}
  
  minc!=INF ? cout<<minc<<endl : cout<<"TLE"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected primary-expression before '?' token
   15 |   minc!=INF ? cout<<minc<<endl : cout<<"TLE"<<endl;
      |             ^
Language: C++

#include <iostream>
#include <utility>
#include <vector>
using namespace std;
int main(){
  int n,t;
  cin >> n >> t;
  vector<pair> v(n);
  int mini=1001;
  for (int i=0; i<n;i++){
    int a,b;
    cin >> a >> b;
    pair<int,int> p=make_pair(a,b);
    v[i]=p;
    if ( p.second < t && p.first < mini) mini = p.first;
  }
  if (mini==1001) cout << "TEL" << endl;
  else cout << mini << endl;
  return 0;
}
  
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
    8 |   vector<pair> v(n);
      |              ^
a.cc:8:14: note:   expected a type, got 'pair'
a.cc:8:14: error: template argument 2 is invalid
a.cc:14:6: error: invalid types 'int[int]' for array subscript
   14 |     v[i]=p;
      |      ^
Language: C++

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

int main(){
    int n,t;
    cin >> n >> t;
    vector<pair<int,int>> a(n);
    for(int i=0;i<n;i++{
        cin >> a.at(i).first >>a.at(i).second;
    }
    sort(a.begin(),a.end());
    for(int i=0;i<n;i++){
        if(a.at(i).secod<=t){
            cout << a.at(i).first <<endl;
            return 0;
        }
    }
    cout << "TLE" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ')' before '{' token
    8 |     for(int i=0;i<n;i++{
      |        ~               ^
      |                        )
a.cc:13:20: 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 'secod'; did you mean 'second'?
   13 |         if(a.at(i).secod<=t){
      |                    ^~~~~
      |                    second
Language: C++

#include<iostream>
#include<vector>
using namespace std;

int main(){
 	int N,T,c,t,ans(1000);
  	cin >> N >> T;
  	for(int i = 0 ; i < N ; i ++){
    	cin >> c >> t;
      	if(t =< T && c < ans) ans = c;
    }
  	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected primary-expression before '<' token
   10 |         if(t =< T && c < ans) ans = c;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    vector<int> m(0);
    int n,s,t;
    cin >> n >> t;
    int b[n][2];
    double a = 0;

    for(int i = 0; i < n; i++){
        for(int k = 0; k < 2; k++){
            cin >> b[i][k];
        }
    }
    int ans = 1001;
    for(int l = 0; l < n; l++){
        for(int o = 0; o < 2; o++){
            if(t >= b[l][1]){
                ans = min(b[l][0], ans);
            }
        }
    }


    if(ans == 1001){
        cout << "TLE";
    }else{
        cout << ans;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:29:6: error: expected '}' at end of input
   29 |     }
      |      ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

///スマホコーディング
#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
typedef long long ll;
int main(){
  int n,t; cin>>n>>t;
  int minv=1e9;
  rep(i,0,n){
    int c,p; cin>>c>>p;
    if(p<=t)minv=min(minv,c);
  }
  if(minv==1e9)cout<<“TLE”<<endl;
  else cout<<minv<<endl;
  return 0;
}


Compiler output:
a.cc:13:22: error: extended character “ is not valid in an identifier
   13 |   if(minv==1e9)cout<<“TLE”<<endl;
      |                      ^
a.cc:13:22: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:22: error: '\U0000201cTLE\U0000201d' was not declared in this scope
   13 |   if(minv==1e9)cout<<“TLE”<<endl;
      |                      ^~~~~
Language: C++

n,t = [int(x) for x in input().split()]
costs = []
timeIndices = []

for i in range(n):
	cost,time = [int(x) for x in input().split()]
	costs.append(cost)
	if time<=t: timeIndices.append(i)

mincostIndex=0
for i in timeIndices:
	if costs[i] < costs[mincostIndex]:
		mincostIndex=i

if (timeIndices): print(costs[mincostIndex])
else: print("TLE")


Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n,t = [int(x) for x in input().split()]
      | ^
Language: C++

#include<algorithm>
using namespace std;
struct node{
    int t,c;
}a[101];
int n,T;
bool cmp(node A,node B)
{
    if(A.t<=T&&B.t<=T) return A.c<B.c;
    else return A.t<B.t;
}
int main()
{
    scanf("%d%d",&n,&T);
    for(int i=1;i<=n;i++)
      scanf("%d%d",&a[i].c,&a[i].t);
    sort(a+1,a+n+1,cmp);
    if(a[1].t<=T) printf("%d",a[1].c);
    else puts("TLE");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'scanf' was not declared in this scope
   14 |     scanf("%d%d",&n,&T);
      |     ^~~~~
a.cc:18:19: error: 'printf' was not declared in this scope
   18 |     if(a[1].t<=T) printf("%d",a[1].c);
      |                   ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include<algorithm>
  +++ |+#include <cstdio>
    2 | using namespace std;
a.cc:19:10: error: 'puts' was not declared in this scope
   19 |     else puts("TLE");
      |          ^~~~
Language: C++

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

int main(){
  int n,t,a,b,c;
  cin >> n >> t;
  c=0;
  for(int i=0;i<n;i++){
    cin >> a >> b;
    if(b<=t && a<c){
      c=a;
    }
  }
  if(c==0){
    cout << "TLE" << endl;
  }else{
    cout << c << endl;
  }
}

Compiler output:
a.cc:1:10: fatal error: bits.stdc++.h: No such file or directory
    1 | #include <bits.stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  int n,t,a,b,c;
  cin >> n >> t;
  c=0;
  for(int i=0;i<n;i++){
    cin >> a >> b;
    if(b<=t && a<c){
      c=a;
    }
  }
  if(c==0){
    cout << "TLE" << endl;
  }else{
    cout << c << endl;

Compiler output:
a.cc:1:10: fatal error: bits.stdc++.h: No such file or directory
    1 | #include <bits.stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main(){
  int n,t,i;
  cin>>n>>T;
  int c[n],t[n];
  for(i=0;i<n;i++)cin>>c[i]>>t[i];
  int cnt=0;
  int p[n];
  for(i=0;i<n;i++){
    if(t[i]<=T){
      p[cnt]=c[i];
      cnt++;
    }
  }
  if(cnt==0){
    cout<<"TLE";
  }else{
    sort(p,p+cnt);
    cout<<p[0];
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'T' was not declared in this scope
    6 |   cin>>n>>T;
      |           ^
a.cc:7:12: error: conflicting declaration 'int t [n]'
    7 |   int c[n],t[n];
      |            ^
a.cc:5:9: note: previous declaration as 'int t'
    5 |   int n,t,i;
      |         ^
a.cc:8:31: error: invalid types 'int[int]' for array subscript
    8 |   for(i=0;i<n;i++)cin>>c[i]>>t[i];
      |                               ^
a.cc:12:9: error: invalid types 'int[int]' for array subscript
   12 |     if(t[i]<=T){
      |         ^
Language: C++

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

int main(){
  int n,t,i;
  cin>>n>>T;
  int c[n],t[n];
  for(i=0;i<n;i++)cin>>c[i]>>t[i];
  int cnt=0;
  for(i=0;i<n;i++){
    if(t[i]<=T){
      p[cnt]=c[i];
      cnt++;
    }
  }
  sort(p,p+cnt);
  cout<<p[0];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'T' was not declared in this scope
    6 |   cin>>n>>T;
      |           ^
a.cc:7:12: error: conflicting declaration 'int t [n]'
    7 |   int c[n],t[n];
      |            ^
a.cc:5:9: note: previous declaration as 'int t'
    5 |   int n,t,i;
      |         ^
a.cc:8:31: error: invalid types 'int[int]' for array subscript
    8 |   for(i=0;i<n;i++)cin>>c[i]>>t[i];
      |                               ^
a.cc:11:9: error: invalid types 'int[int]' for array subscript
   11 |     if(t[i]<=T){
      |         ^
a.cc:12:7: error: 'p' was not declared in this scope
   12 |       p[cnt]=c[i];
      |       ^
a.cc:16:8: error: 'p' was not declared in this scope
   16 |   sort(p,p+cnt);
      |        ^
Language: C++

(defun solve (n ans tmax)
  (cond
    ((< n 1)
     (if (> ans 1000) 'tle ans))
    (t
     (let ((cost (read)) (time (read)))
	 (if (and
	      (<= time tmax)
	      (< cost ans))
	     (solve (- n 1) cost tmax)
	     (solve (- n 1) ans tmax))))))
(print (solve (read) 1000000000 (read)))

Compiler output:
a.cc:4:23: warning: missing terminating ' character
    4 |      (if (> ans 1000) 'tle ans))
      |                       ^
a.cc:4:23: error: missing terminating ' character
    4 |      (if (> ans 1000) 'tle ans))
      |                       ^~~~~~~~~~
a.cc:1:7: error: expected ')' before 'solve'
    1 | (defun solve (n ans tmax)
      | ~     ^~~~~~
      |       )
Language: C++

#include <bits/stdc++.h>

#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
const int INF = 1e9;

int main() {
  int n, T;
  cin >> n >> T;
  vector<int> kitakuro;
  bool flag = false;
  rep(i, n) {
    int c, t;
    cin >> c >> t;
    if (t > T) continue;
    kitakuro.emplace_back(c);
    flag = true;
  }

  if (flag) {
    sort(kitakuro.begin(), kitakuro.end());
    int ans = kitakuro[0];
    cout << ans << endl;
  } else {
    string ans = "TLE";
  }
    cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   28 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
  int n, t ;
  cin >> n >> t  ;
  
  vector<int> c(n) ;
  vector<int> tt(n) ;
  
  for(int i=0;i<n;i++)
    cin >> c[i] ;

  for(int i=0;i<n;i++)
    cin >> tt[i] ;
  
  int min = 1001 ;
  
  bool cond = 0 ;
  for(int i=0;i<n;i++){
    if(tt[i]<=t && c[i]<min){
      ans = c[i] ; 
      cond = 1 ;
    }
  }

  if(cond)
    cout << ans << endl ;
  else 
    cout << "TLE" << endl ;
  
    return 0 ;    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |       ans = c[i] ;
      |       ^~~
      |       abs
a.cc:30:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   30 |     cout << ans << endl ;
      |             ^~~
      |             abs
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
  int n, t ;
  cin >> n >> t  ;
  
  vector<int> c(n) ;
  vector<int> tt(n) ;
  
  for(int i=0;i<n;i++)
    cin >> c[i] ;

  for(int i=0;i<n;i++)
    cin >> tt[i] ;
  
  bool cond = 0 ;
  vector<int> ind(n,-1) ;
  for(int i=0;i<n;i++){
    if(tt[i]<t){
      ind[i] = i ; 
      cond = 1 ;
    }
  }
  
  int ans = -1 ;
  
  if(cond){
  for(int i=0;i<n;i++){
    if(ind[i]>=0){
      int tmp ;
      tmp = c[i] ;
      if(ans<0){
        ans = tmp ;
      }else if(ans>0 && ans<tmp){
        ans = tmp ;
      }
    }
  }
  }
  
  if(cond)
    cout << "TLE" << endl ;
  else 
    cout << ans << endl ;
  
    return 0 ;    
  }
  
  int ind ;
  for(int i=0;i<n;i++){
    if(tt[tt.size()-1]==ori[i]){
      ind = i ;
      break ;
    }
  }
  return 0 ;
}


Compiler output:
a.cc:53:3: error: expected unqualified-id before 'for'
   53 |   for(int i=0;i<n;i++){
      |   ^~~
a.cc:53:15: error: 'i' does not name a type
   53 |   for(int i=0;i<n;i++){
      |               ^
a.cc:53:19: error: 'i' does not name a type
   53 |   for(int i=0;i<n;i++){
      |                   ^
a.cc:59:3: error: expected unqualified-id before 'return'
   59 |   return 0 ;
      |   ^~~~~~
a.cc:60:1: error: expected declaration before '}' token
   60 | }
      | ^
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
  int n, t ;
  cin >> n >> t  ;
  
  vector<int> c(n) ;
  vector<int> tt(n) ;
  
  for(int i=0;i<n;i++)
    cin >> c[i] ;

  for(int i=0;i<n;i++)
    cin >> tt[i] ;
  
  bool cond = 0 ;
  vector<int> ind(n,-1) ;
  for(int i=0;i<n;i++){
    if(tt[i]<t){
      ind[i] = i ; 
      cond = 1 ;
    }
  }
  
  if(cond){
  int ans = -1 ;
  for(int i=0;i<n;i++){
    if(ind[i]>=0){
      int tmp ;
      tmp = c[i] ;
      if(ans<0){
        ans = tmp ;
      }else if(ans>0 && ans<tmp){
        ans = tmp ;
      }
    }
  }
  }
  
  if(cond)
    cout << "TLE" << endl ;
  else 
    cout << ans << endl ;
  
    return 0 ;    
  }
  
  int ind ;
  for(int i=0;i<n;i++){
    if(tt[tt.size()-1]==ori[i]){
      ind = i ;
      break ;
    }
  }
  return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   46 |     cout << ans << endl ;
      |             ^~~
      |             abs
a.cc: At global scope:
a.cc:52:3: error: expected unqualified-id before 'for'
   52 |   for(int i=0;i<n;i++){
      |   ^~~
a.cc:52:15: error: 'i' does not name a type
   52 |   for(int i=0;i<n;i++){
      |               ^
a.cc:52:19: error: 'i' does not name a type
   52 |   for(int i=0;i<n;i++){
      |                   ^
a.cc:58:3: error: expected unqualified-id before 'return'
   58 |   return 0 ;
      |   ^~~~~~
a.cc:59:1: error: expected declaration before '}' token
   59 | }
      | ^
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
  int n, t ;
  cin >> n >> t  ;
  
  vector<int> c(n) ;
  vector<int> tt(n) ;
  
  for(int i=0;i<n;i++)
    cin >> c[i] ;

  for(int i=0;i<n;i++)
    cin >> tt[i] ;
  
  vector<int> ori(n) ;
  for(int i=0;i<n;i++)
    ori[i] = tt[i] ;
  
  sort(tt.begin(), tt.end(), greater<int>());
  if(tt[tt.size()-1]>=t){
    cout << "TLE" << endl ;
    return 0 ;    
  }
  
  int ind ;
  for(int i=0;i<n;i++){
    if(tt[tt.size()-1]==ori[i]){
      ind = i ;
      break ;
    }
  }
  
  cout << c[i] << endl ;
  return 0 ;
}


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

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

int main(){
   int a, b,c;
  cin >> a >> b;
  
  for(int i=0;i<a;i++){
    cin >> c[i] >>d[i];
  }
  
  c = 1010 ;
  for(int i=0;i<a;i++){
    if(d[i] <= b){
      c =min(c,c[i]);
    }
  }
  if(c == 1010){
    cout << "TLE" <<endl;
    
    return 0;
  }
  else{
  cout << c << endl;
  
  return 0;
}
  
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |     cin >> c[i] >>d[i];
      |             ^
a.cc:10:19: error: 'd' was not declared in this scope
   10 |     cin >> c[i] >>d[i];
      |                   ^
a.cc:15:8: error: 'd' was not declared in this scope
   15 |     if(d[i] <= b){
      |        ^
a.cc:16:17: error: invalid types 'int[int]' for array subscript
   16 |       c =min(c,c[i]);
      |                 ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0;i < (n);i++)
using namespace std;
  
int main () {
  int n, t;
  cin >> n >> t;
  vector<pair<int,int>> p;
  rep(i,n) { 
    int a, b;
    cin >> a >> b;
    p.push_back(make_pair(a,b));
  }
  sort(p.begin(),p.end());
  int ans = 0;
  rep(i,n) {
    if(p.at(i).secont <= t) {
      ans = p.at(i).first;
      break;
    }
  }
  if(ans == 0)
    cout << "TLE";
  else 
    cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: 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 'secont'; did you mean 'second'?
   17 |     if(p.at(i).secont <= t) {
      |                ^~~~~~
      |                second
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0;i < (n);i++)
using namespace std;
  
int main () {
  int n t;
  cin >> n >> t;
  vector<pair<int,int>> p;
  rep(i,n) { 
    int a, b;
    cin >> a >> b;
    p.push_back(make_pair(a,b));
  }
  sort(p.begin(),p.end());
  int ans = 0;
  rep(i,n) {
    if(p.at(i).secont <= t) {
      ans = p.at(i).first;
      break;
    }
  }
  if(ans == 0)
    cout << "TLE";
  else 
    cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 't'
    6 |   int n t;
      |         ^
a.cc:7:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |   cin >> n >> t;
      |          ^
      |          yn
a.cc:7:15: error: 't' was not declared in this scope; did you mean 'tm'?
    7 |   cin >> n >> t;
      |               ^
      |               tm
a.cc:17:16: 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 'secont'; did you mean 'second'?
   17 |     if(p.at(i).secont <= t) {
      |                ^~~~~~
      |                second
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0;i < (n);i++)
using namespace std;
  
int main () {
  int n, t;
  cin >> n >> t;
  vector<pair<int,int>> a(n);
  rep(i,n) cin >> a[i].first >> a[i].second;
  sort(a.begin(),a.end());
  int ans=0;
  rep(i,n) {
    if(a[i].second <= t) {
      ans = a[i].first;
      break;
    }
    if(ans = 0) 
      cout << "TLE";
    else 
      cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:5:13: note: to match this '{'
    5 | int main () {
      |             ^
Language: C++

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

int main(){
  int n,t,ans=1e9,cost,time;cin>>n>>t;
  REP(i,n){
    cin>>cost>>time;
    if(time<=t) ans=min(ans,cost); 
  }    
  cout<<(ans!=1e9?ans:"TLE");
}

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

#include <iostream>
#include <iomanip>
#include <vector>
#include <cmath>
#include <algorithm>
#include <iomanip>
#include <cstring>
#include <map>

#define rep(i, N) for (int i = 0; i < (int)N; i++)
using namespace std;
typedef long long ll;
const ll LLINF = 9223372036854775807;
const int MOD = 1000000007;

int main() {
  int N, T; cin >> N >> T;

  result = 0;
  rep(i, N) {
    int c, t; cin >> c >> t;
    if (t<=T) result = max(result, c);
  }
  if (result==0) cout << "TLE" << endl;
  else cout << result << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: 'result' was not declared in this scope
   19 |   result = 0;
      |   ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'min_c' was not declared in this scope
   14 |       if(c<min_c) {
      |            ^~~~~
Language: C++

#include <bits/stdc.h>
using namespace std;
int main() {
  int n, t;
  cin >> n >> t;
  int ans = 1010;
  for (int i = 0; i < n; i ++) {
    int c, t1;
    cin >> c >> t1;
    if (ans > c && t1 > t) ans = c;
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc:1:10: fatal error: bits/stdc.h: No such file or directory
    1 | #include <bits/stdc.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
   int n,t;
   cin>>n>>t;
   int a[n],b[b];
   int cost=1001;
   rep(i,n){
     cin>>a[i]>>b[i];
     if(b[i]<=t){
       cost=min(cost,a[i]);
     }
   }
  if(cost!=1001){
    cout<<cost<<endl;
  }else{
    cout<<"TLE"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'b' was not declared in this scope
    9 |    int a[n],b[b];
      |               ^
Language: C++

#include <iostream>
#include <vector>

int main()
{
    int N, T;
    std::cin >> N >> T;

    int minv = 1001;
    for (int i = 0; i < N; i++) {
        int c, t;
        std::cin >> c >> t;
        if (t <= T && minv > c) {
            minv = c;
        }
    }

    std::cout << ((minv==1001) ? "TLE" : minv) << std::endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:32: error: operands to '?:' have different types 'const char*' and 'int'
   18 |     std::cout << ((minv==1001) ? "TLE" : minv) << std::endl;
      |                   ~~~~~~~~~~~~~^~~~~~~~~~~~~~
Language: C++

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

int main() {
    int n,t;
    cin>>n>>t;
    int mn=1001;
    while (n--) {
        int c,tt;
        cin>>c>>tt;
        if (tt<=t)
            mn=min(mn,c)
    }
    if (mn==1001)
        puts("TLE");
    else
        cout<<mn<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expected ';' before '}' token
   13 |             mn=min(mn,c)
      |                         ^
      |                         ;
   14 |     }
      |     ~
Language: C++

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

int main(){
  int N,T;
  cin >>N>>T;
  
  int c,t;
  int ans = 1000;
  for(i,1,N){
    cin >>c>>t;
    if(t<T) ans=min(ans,c);
  }
  cout <<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i,1,N){
      |       ^
a.cc:16:1: error: expected primary-expression before '}' token
   16 | }
      | ^
a.cc:15:20: error: expected ')' before '}' token
   15 |   cout <<ans<<endl;
      |                    ^
      |                    )
   16 | }
      | ~                   
a.cc:11:6: note: to match this '('
   11 |   for(i,1,N){
      |      ^
a.cc:16:1: error: expected primary-expression before '}' token
   16 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

class B {
	int N, T;
public:
	void solve()
	{
		int c, t;
		int ans{1001};
		for (int i{ 0 }; i < n; i++)
		{
			cin >> c >> t;
			if (t <= T)
			{
				if (c < ans) ans = c;
			}
		}

		if (ans != 1001)
			cout << ans << endl;
		else
			cout << "TLE" << endl;
	}

	B()
	{
		cin >> N >> T;
	}
};


int main()
{
	B solution;
	solution.solve();

	return 0;
}

Compiler output:
a.cc: In member function 'void B::solve()':
a.cc:12:38: error: 'n' was not declared in this scope
   12 |                 for (int i{ 0 }; i < n; i++)
      |                                      ^
Language: C++

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

int main() {
  int n, m, a = 9999;
  cin >> n >> m;
  for(int i = 0; i < n; i++){
    int c, t;
    cin >> c >> t;
    if(t <= m)
      int r = min(a, c);
      a = r;
  }
  if(a == 9999)
    cout << "TLE" << endl;
  else
    cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'r' was not declared in this scope
   12 |       a = r;
      |           ^
Language: C++

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

int main() {
  int n, m, a = 9999;
  cin >> n >> m;
  for(int i = 0; i < n; i++){
    int c, t;
    cin >> c >> t;
    if(t <= m){
      int r = min{a, c};
      a = r;
    }
  }
  if(a == 9999)
    cout << "TLE" << endl;
  else
    cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: cannot resolve overloaded function 'min' based on conversion to type 'int'
   11 |       int r = min{a, c};
      |               ^~~
Language: C++

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

int main() {
  int n, m, a = 9999;
  cin >> n >> m;
  for(int i = 0; i < n; i++){
    int c, t;
    cin >> c >> t;
    if(t <= m)
      a = min{a, c};
  }
  if(a == 9999)
    cout << "TLE" << endl;
  else
    cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: cannot resolve overloaded function 'min' based on conversion to type 'int'
   11 |       a = min{a, c};
      |           ^~~
Language: C++

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

int main() {
  int n, m, a = 9999;
  cin >> n >> m;
  for(int i = 0; i < n; i++){
    int c, t;
    cin >> c >> t;
    if(t <= m){
      a = min{a, c};
    }
  }
    if(a == 9999)
      cout << "TLE" << endl;
    else
      cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: cannot resolve overloaded function 'min' based on conversion to type 'int'
   11 |       a = min{a, c};
      |           ^~~
Language: C++

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

int main() {
  int n, m, a = 9999;
  cin >> n >> m;
  for(int i = 0; i < n; i++){
    int c, t;
    cin >> c >> t;
    if(t <= m){
      a = min{a, c};
    }
    if(a == 9999)
      cout << "TLE" << endl;
    else
      cout << a << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: cannot resolve overloaded function 'min' based on conversion to type 'int'
   11 |       a = min{a, c};
      |           ^~~
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main(){
    int n,t; cin >> n >> t;
    vector<pair<int,int>> arr(n);
    for(int i = 0; i < n; ++i){
        int c,d;
        cin >> c >> d;
        arr.push_back(tie(c,d));
        sort(arr.begin(),arr.end());
    }

    for(int i = 0; i <= n; i++){
        if(i == n){
            cout << "TLE";
            break;
        }
        else if(arr[i].second <= t){
            cout << arr[i].first;
            break;
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(std::tuple<int&, int&>)'
   11 |         arr.push_back(tie(c,d));
      |         ~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'std::tuple<int&, int&>' to 'const std::vector<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'std::tuple<int&, int&>' to 'std::vector<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
Language: C++

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

int main(){
    int n,t; cin >> n >> t;
    vector<pair<int,int>> arr;
    for(int i = 0; i < n; i++){
        int c,d;
        cin >> c >> d;
        arr.push_back(tie(c,d));
        sort(arr.begin(),arr.end());
    }

    for(int i = 0; i <= n; i++){
        if(i == n){
            cout << "TLE";
            break;
        }
        else if(arr[i].second <= t){
            cout << arr[i].first;
            break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(std::tuple<int&, int&>)'
   11 |         arr.push_back(tie(c,d));
      |         ~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'std::tuple<int&, int&>' to 'const std::vector<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'std::tuple<int&, int&>' to 'std::vector<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
Language: C++

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

int main(){
    int n,t; cin >> n >> t;
    vector<pair<int,int>> arr;
    for(int i = 0; i < n; i++){
        int c,d;
        cin >> c >> d;
        arr.push_back(tie(c,d));
        sort(arr.begin(),arr.end());
    }

    for(int i = 0; i <= n; i++){
        if(i == n){
            cout << "TLE";
            break;
        }
        if(arr[i].second <= t){
            cout << arr[i].first;
            break;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(std::tuple<int&, int&>)'
   11 |         arr.push_back(tie(c,d));
      |         ~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'std::tuple<int&, int&>' to 'const std::vector<std::pair<int, int> >::value_type&' {aka 'const std::pair<int, int>&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; value_type = std::pair<int, int>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'std::tuple<int&, int&>' to 'std::vector<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
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[] c = new int[n];
      int[] t = new int[n];
      int min = 100000;
      for(int i = 0;i < n;i++){
      	c[i] = sc.nextInt();
        t[i] = sc.nextInt();
        if(t[i] > T) c[i] = 10000;
        min = Math.min(min,c[i]);
      }
      if(min >= 10000)System.out.println("TLE");
      else if(min <= 1000)System.out.println(min);
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
      int[] c = new int[n];
                        ^
  symbol:   variable n
  location: class Main
Main.java:8: error: cannot find symbol
      int[] t = new int[n];
                        ^
  symbol:   variable n
  location: class Main
Main.java:10: error: cannot find symbol
      for(int i = 0;i < n;i++){
                        ^
  symbol:   variable n
  location: class Main
3 errors