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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void){
    int n,T,c,t;
    cin >>n>>T;
    
    int min_t=10000;
    for(int i=0;i<n;i++){
        cin >> c >> t;
        if(t=<T&&c<min_t){
            min_t = c;
        }
    }
    
    if(min_t==10000){
        cout << "TLE" << endl;
    } else {
        cout << min_t << endl;
    }
    return 0;
}


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

#include<stdio.h>

 int main(void)

{
 int m[1000],s[1000],N,T,a,b,i,j;
  scanf("%d%d", &N, &T);
 printf("%d %d\n",N,T);
 for(i=0;i<N;i++){
   scanf("%d %d", &m[i], &s[i]);
   printf("%d %d\n",m[i],s[i]);
}
 a = N;
 for(i=0;i<N;i++){
 if ((m[i] <= a)  &&(s[i] <= T)){
 a = m[i];
}
}
 if(a = m[i]) printf("%d", a);
 else if(a = N) printf("TLE");
 return 0;
}
~                            

Compiler output:
a.cc:23:2: error: expected class-name at end of input
   23 | ~
      |  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
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 == INF ) {
cout << ”TLE” << endl ;
}
else {
cout << ans << endl ;
}
}


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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
int main(){
  int n,T;
  cin>>n>>T;
  vector<int> c(n),t(n);
  rep(i,n)cin>>c[i]>>t[i];
  vector<int> v;
  rep(i,n){
  if(t[i]<=T)v.push_back(c[i]);
}
  if(v.size()==0)cout<<"TLE"<<endl;
  else{
    int ans=min_element(v.begin(),v.end());
    cout<<*ans<<endl;
  }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:23:24: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in initialization
   23 |     int ans=min_element(v.begin(),v.end());
      |             ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      |                        |
      |                        __gnu_cxx::__normal_iterator<int*, std::vector<int> >
a.cc:24:11: error: invalid type argument of unary '*' (have 'int')
   24 |     cout<<*ans<<endl;
      |           ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
int main(){
  int n,T;
  cin>>n>>T;
  vector<int> c(n),t(n);
  rep(i,n)cin>>c[i]>>t[i];
  vector<int> v;
  rep(i,n){
  if(t[i]<=T)v.push_back(c[i]);
}
  if(v.size()==0)cout<<"TLE"<<endl;
  else{
    int ans=min_element(v.begin(),v.end());
    cout<<ans<<endl;
  }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:23:24: error: cannot convert '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in initialization
   23 |     int ans=min_element(v.begin(),v.end());
      |             ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
      |                        |
      |                        __gnu_cxx::__normal_iterator<int*, std::vector<int> >
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
int main(){
  int n,T;
  cin>>n>>T;
  vector<int> c(n),t(n);
  rep(i,n)cin>>c[i]>>t[i];
  vector<int> v;
  rep(i,n){
  if(t[i]<=T)v.push_back(c[i]);
}
  if(v.size()==0)cout<<"TLE"<<endl;
  else cout<<*min_element(v.begin(),v.end())<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:22:52: error: expected '}' at end of input
   22 |   else cout<<*min_element(v.begin(),v.end())<<endl;
      |                                                    ^
a.cc:12:11: note: to match this '{'
   12 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
int main(){
  int n,t;
  cin>>n>>t;
  int v[n][2];
  vector<int>c(n);
  rep(i,n)cin>>v[i][0]>>v[i][1];
  rep(i,n){
  if(v[i][1]<=t)c.push_back(v[i][0])
  }
  int min=1001;
  if(c.size!=0){
  rep(i,c.size())if(min>c[i])min=c[i];
  
  cout << min <<endl;
  }
  else cout<<"TLE"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:37: error: expected ';' before '}' token
   19 |   if(v[i][1]<=t)c.push_back(v[i][0])
      |                                     ^
      |                                     ;
   20 |   }
      |   ~                                  
a.cc:22:8: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?)
   22 |   if(c.size!=0){
      |      ~~^~~~
      |            ()
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
int main(){
  int n,t
  cin>>n>>t;
  int v[n][2];
  vector<int>c(n);
  rep(i,n)cin>>v[i][0]>>v[i][1];
  rep(i,n){
  if(v[i][1]<=t)c.push_back(v[i][0])
  }
  int min=1001;
  if(c.size!=0){
  rep(i,c.size())if(min>c[i])min=c[i];
  
  cout << min <<endl;
  }
  else cout<<"TLE"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected initializer before 'cin'
   14 |   cin>>n>>t;
      |   ^~~
a.cc:19:15: error: 't' was not declared in this scope
   19 |   if(v[i][1]<=t)c.push_back(v[i][0])
      |               ^
a.cc:19:37: error: expected ';' before '}' token
   19 |   if(v[i][1]<=t)c.push_back(v[i][0])
      |                                     ^
      |                                     ;
   20 |   }
      |   ~                                  
a.cc:22:8: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?)
   22 |   if(c.size!=0){
      |      ~~^~~~
      |            ()
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
int main(){
  int n,t
  cin>>n>>t;
  v[n][2];
  vector<int>c(n);
  rep(i,n)cin>>v[i][0]>>v[i][1];
  rep(i,n){
  if(v[i][1]<=t)c.push_back(v[i][0])
  }
  int min=1001;
  if(c.size!=0){
  rep(i,c.size())if(min>c[i])min=c[i];
  
  cout << min <<endl;
  }
  else cout<<"TLE"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected initializer before 'cin'
   14 |   cin>>n>>t;
      |   ^~~
a.cc:15:3: error: 'v' was not declared in this scope
   15 |   v[n][2];
      |   ^
a.cc:19:15: error: 't' was not declared in this scope
   19 |   if(v[i][1]<=t)c.push_back(v[i][0])
      |               ^
a.cc:22:8: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?)
   22 |   if(c.size!=0){
      |      ~~^~~~
      |            ()
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main()
{
  int N,T;
  cin >> N >> T;
  vector< pair<int,int> > route;

  //    cout << "checkkkk" << "\n";
  for(int i = 0; i < N; i++){
    int c,t;
    cin >> c >> t;
    //    cout << "check" << "\n";
    route.push_back(make_pair(t, c));
    //    route[i] = make_pair(t, c);
  }

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

  int mincost = route[0].second;;
  bool flag = false;
  for(int i = 0; i < N; i++){
    if(route[i].first <= T){
      flag = true;
      if(mincost > route[i].second) mincost = route[i].second;
    }
    else break;
  }

  if(flag == false) cout << "TLE" << "\n";
  else cout << mincost << "\n";

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   21 |   sort(route.begin(), route.end());
      |   ^~~~
      |   short
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main()
{
  int N,T;
  cin >> N >> T;
  vector< pair<int,int> > route(N);

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

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

  int mincost = route[0].second;;
  bool flag = false;
  for(int i = 0; i < N; i++){
    if(route[i].first <= T){
      flag = true;
      if(mincost > route[i].second) mincost = route[i].second;
    }
    else break;
  }

  if(flag == false) cout << "TLE" << "\n";
  else cout << mincost << "\n";

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   18 |   sort(route.begin(), route.end());
      |   ^~~~
      |   short
Language: C++

#include <bits/stdc++.h>
#define debug(x) cerr << "\n" \
                      << #x << " = " << x << ".\n"
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define print(xx) cout << (xx) << endl
using namespace std;
#define int long long
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vint;
const int INF = ((1LL << 30) + (1LL << 29));
const ll MOD = 1000000007;

/* 
*/

//=================================================
int N,T;
struct keiro{
    int cost,time,index;
};
vector<keiro> cti;
//=================================================
void input()
{
    cin>>N>>T;
    cti.resize(N);
    rep(i,N){
        cin>>cti[i].cost>>cti[i].time;
        cti[i].index = i+1;
    }
}

//=================================================
void solve()
{
    int ans = INF;
    for (auto x: cti){
        if (x.time <= T && x.cost < ans){
            ans = x.cost;
        }
    }
    cout<< (ans != INF) ? to_string(ans) : "TLE" << endl;

}

//=================================================
signed main()
{
    input();
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:43:50: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   43 |     cout<< (ans != INF) ? to_string(ans) : "TLE" << endl;
      |                                            ~~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define debug(x) cerr << "\n" \
                      << #x << " = " << x << ".\n"
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define print(xx) cout << (xx) << endl
using namespace std;
#define int long long
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vint;
const int INF = ((1LL << 30) + (1LL << 29));
const ll MOD = 1000000007;

/* 
*/

//=================================================
int N,T;
struct keiro{
    int cost,time,index;
}
vector<keiro> cti;
//=================================================
void input()
{
    cin>>N>>T;
    ct.resize(N);
    rep(i,N){
        cin>>cti[i].cost>>ct[i].time;
        cti[i].index = i+1;
    }
}

//=================================================
void solve()
{
    sort(ct.begin(),ct.end());
    pii shortest = ct[0];
    cout<< ((shortest.time <= T) ? to_string(shortest.index) : "TLE" )<<endl;

}

//=================================================
signed main()
{
    input();
    solve();
    return 0;
}

Compiler output:
a.cc:22:15: error: invalid declarator before 'cti'
   22 | vector<keiro> cti;
      |               ^~~
a.cc: In function 'void input()':
a.cc:27:5: error: 'ct' was not declared in this scope
   27 |     ct.resize(N);
      |     ^~
a.cc:29:14: error: 'cti' was not declared in this scope
   29 |         cin>>cti[i].cost>>ct[i].time;
      |              ^~~
a.cc: In function 'void solve()':
a.cc:37:10: error: 'ct' was not declared in this scope
   37 |     sort(ct.begin(),ct.end());
      |          ^~
a.cc:39:23: error: 'pii' {aka 'struct std::pair<long long int, long long int>'} has no member named 'time'
   39 |     cout<< ((shortest.time <= T) ? to_string(shortest.index) : "TLE" )<<endl;
      |                       ^~~~
a.cc:39:55: error: 'pii' {aka 'struct std::pair<long long int, long long int>'} has no member named 'index'
   39 |     cout<< ((shortest.time <= T) ? to_string(shortest.index) : "TLE" )<<endl;
      |                                                       ^~~~~
Language: C++

#include <bits/stdc++.h>
#define debug(x) cerr << "\n" \
                      << #x << " = " << x << ".\n"
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define print(xx) cout << (xx) << endl
using namespace std;
#define int long long
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vint;
const int INF = ((1LL << 30) + (1LL << 29));
const ll MOD = 1000000007;

/* 
*/

//=================================================
int N,T;
vector<pii> ct;
//=================================================
void input()
{
    cin>>N>>T;
    ct.resize(N);
    rep(i,N){
        cin>>ct[i].first>>ct[i].second;
    }
}

//=================================================
void solve()
{
    sort(ct.begin(),ct.end());
    pii shortest = ct[0];
    cout<< (shortest.second <= T) ? shortest.first : "TLE"<<endl;

}

//=================================================
signed main()
{
    input();
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:35:59: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   35 |     cout<< (shortest.second <= T) ? shortest.first : "TLE"<<endl;
      |                                                      ~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
#define debug(x) cerr << "\n" \
                      << #x << " = " << x << ".\n"
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define print(xx) cout << (xx) << endl
using namespace std;
#define int long long
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vint;
const int INF = ((1LL << 30) + (1LL << 29));
const ll MOD = 1000000007;

/* 
*/

//=================================================
int N,T;
vector<pii> ct;
//=================================================
void input()
{
    cin>>N>>T;
    ct.resize(N);
    rep(i,N){
        cin>>ct[i].first>>ct[i].secnod;
    }
}

//=================================================
void solve()
{
    sort(ct.begin(),ct.end());
    pii shortest = ct[0];
    cout<< (shortest.second <= T) ? shortest.first : "TLE"<<endl;

}

//=================================================
signed main()
{
    input();
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void input()':
a.cc:26:33: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 'secnod'; did you mean 'second'?
   26 |         cin>>ct[i].first>>ct[i].secnod;
      |                                 ^~~~~~
      |                                 second
a.cc: In function 'void solve()':
a.cc:35:59: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   35 |     cout<< (shortest.second <= T) ? shortest.first : "TLE"<<endl;
      |                                                      ~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
#define debug(x) cerr << "\n" \
                      << #x << " = " << x << ".\n"
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define print(xx) cout << (xx) << endl
using namespace std;
#define int long long
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vint;
const int INF = ((1LL << 30) + (1LL << 29));
const ll MOD = 1000000007;

/* 
*/

//=================================================
int N,T;
vector<pii> ct;
//=================================================
void input()
{
    cin>>N>>T;
    ct.resize(N);
    rep(i,N){
        ciN>>ct[i].first>>ct[i].secnod;
    }
}

//=================================================
void solve()
{
    sort(ct.begin(),ct.end());
    pii shortest = ct[0];
    cout<< (shortest.second <= T) ? shortest.first : "TLE"<<endl;

}

//=================================================
signed main()
{
    input();
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void input()':
a.cc:26:9: error: 'ciN' was not declared in this scope
   26 |         ciN>>ct[i].first>>ct[i].secnod;
      |         ^~~
a.cc:26:33: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 'secnod'; did you mean 'second'?
   26 |         ciN>>ct[i].first>>ct[i].secnod;
      |                                 ^~~~~~
      |                                 second
a.cc: In function 'void solve()':
a.cc:35:59: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   35 |     cout<< (shortest.second <= T) ? shortest.first : "TLE"<<endl;
      |                                                      ~~~~~^~~~~~
Language: C++

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

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


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #difine; did you mean #define?
    2 | #difine rep(i,n) for(int i=0; i<(n); i++)
      |  ^~~~~~
      |  define
a.cc: In function 'int main()':
a.cc:10:3: error: 'rep' was not declared in this scope
   10 |   rep(i,N) cin >> c[i];
      |   ^~~
Language: C++

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

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


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #difine; did you mean #define?
    2 | #difine rep(i,n) for(int i=0; i<(n); i++)
      |  ^~~~~~
      |  define
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   rep(i,N) cin >> c[i];
      |       ^
a.cc:9:3: error: 'rep' was not declared in this scope
    9 |   rep(i,N) cin >> c[i];
      |   ^~~
Language: C++

#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a,int b){return a*b/gcd(a,b);}

using namespace std;

const int mod=1e9+7;

void run();

void init() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout<<fixed<<setprecision(12);
}

signed main(){
    init();
    run();
    return 0;
}

void run(){
    int N, T;
    cin >> N >> T;
    priority_queue<int> que;
    rep(i,n)
    {
        int c, t;
        cin >> c >> t;
        if(t<=T)
        {
            que.push(c)
        }
    }
    cout << que.top() << endl;
}

Compiler output:
a.cc: In function 'void run()':
a.cc:44:11: error: 'n' was not declared in this scope
   44 |     rep(i,n)
      |           ^
a.cc:6:32: note: in definition of macro 'rep'
    6 | #define rep(i,n) for(int i=0;i<n;++i)
      |                                ^
a.cc:50:24: error: expected ';' before '}' token
   50 |             que.push(c)
      |                        ^
      |                        ;
   51 |         }
      |         ~
Language: C

#include <stdio.h>
#include <math.h>
 
int main(void)
{
  int N,T,i,k=1001;
  int c[100],t[100];
  
  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[i]<=T)
    {
      if(c[i]<=k)
      {
        k=c[i];
      }
    }
  }
  if(k>=1001)
  {
    printf("TLE");
  }
  else(k<=1000)
  {
    printf("%d",k);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:16: error: expected ';' before '{' token
   29 |   else(k<=1000)
      |                ^
      |                ;
   30 |   {
      |   ~
Language: C

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

int main(void)
{
  int N,T,i,k=1001;
  int c[100],t[100];
  
  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[i]<=T)
    {
      if(c[i]<=k)
      {
        k=c[i];
      }
    }
  }
  if(k>=1001)
  {
    printf("TLE");
  }
  else(k<=1000)
  {
    printf("%d",k);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:20: error: expected expression before '%' token
    9 |   scanf("%d %d",&N,%T);
      |                    ^
main.c:29:16: error: expected ';' before '{' token
   29 |   else(k<=1000)
      |                ^
      |                ;
   30 |   {
      |   ~
Language: C++

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

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

    // 時間が昇順になるようにソート
    sort(route.begin(), route.end());

    bool flag = false;
    int min_cost = 1 << 4;
    for(int i = 0; i < N; i++){
        if (route[i].first > T) break;

        if(route[i].second < min_cost){
            flag = true;
            min_cost = 
        }
    }

    if (flag == true){
        cout << min_cost << endl;
    }
    else {
        cout << "TLE" << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:9: error: expected primary-expression before '}' token
   28 |         }
      |         ^
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int num = in.nextInt();
    int timelimit = in.nextInt();
    int costmin;
    for (int i = 0; i < num; i++) {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    }
    if (costmin == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(costmin);
    }
  }
}

Compiler output:
Main.java:15: error: variable costmin might not have been initialized
      if (costmin == 0 || costmin > cost) {
          ^
Main.java:19: error: variable costmin might not have been initialized
    if (costmin == 0) {
        ^
2 errors
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner();
    int num = in.nextInt();
    int timelimit = in.nextInt();
    int costmin;
    for (int i = 0; i < num; i++) {
      int cost = in.nextInt();
      int time = in.nextInt();
      if (timelimit < time) {
        continue;
      }
      if (costmin == 0 || costmin > cost) {
        costmin = cost;
      }
    }
    if (costmin == 0) {
      System.out.println("TLE");
    } else {
      System.out.println(costmin);
    }
  }
}

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
    Scanner in = new Scanner();
                 ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

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

int main()
{
	int n,T;
  	cin>>n>>T;
  	int x,y;
  	int min_cost=INT_MAX;
  	for(int i=0 ; i<n ; ++i)
    {
      	cin>>x>>y;
		if(y<=T)
        {
        	min_cost=min(min_cost,x);
        }
    }
  	cout<<(min_cost!=INT_MAX?min_cost:"TLE")<<endl;
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t; cin >> n >> t;
  int x=1001;
  vector<int> c(n);
  vector<int> t(n);
  for (int i=0; i<n; i++) {
    cin >> c[i] >> t[i];
    if (t[i]<=t){
      x=min(x,c[i]);
    }
  }
 cout << x << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t; cin >> n >> t;
  int x=1001;
  vector<int> c(n), t(n);
  for (int i=0; i<n; i++) {
    cin >> c[i] >> t[i];
    if (t[i]<=t){
      x=min(x,c[i]);
    }
  }
 cout << x << endl;
}


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


#include <stdio.h>

int main(){
    int n, t, c[100], t[100];
    int i, cmin=1001;

    scanf("%d %d", &n, &t);

    for(i=0; i<n; i++){
        scanf("%d %d", c[i], t[i]);

        if(t >= t[i]){
            if(cmin > c[i]){
                cmin = c[i];
            }
        }
    }

    if(cmin == 1001)
        printf("TLE\n");
    else
        printf("%d\n", cmin);
    
    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:5:23: error: conflicting types for 't'; have 'int[100]'
    5 |     int n, t, c[100], t[100];
      |                       ^
main.c:5:12: note: previous declaration of 't' with type 'int'
    5 |     int n, t, c[100], t[100];
      |            ^
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <tuple>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
  int a, b;
  for(int i = 0; i < n; i++){
    cin >> a >> b;
    if(b <= t){
      p.push_back(make_pair(a,b));
    }
  }
  if(p.size() == 0){
    cout << "TLE" << endl;
  }else{
    sort(p.begin(), p.end());
    cout << p.at(0).first << endl;
  }
  return 0;

}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:12:22: error: 'n' was not declared in this scope
   12 |   for(int i = 0; i < n; i++){
      |                      ^
a.cc:14:13: error: 't' was not declared in this scope
   14 |     if(b <= t){
      |             ^
a.cc:15:7: error: 'p' was not declared in this scope
   15 |       p.push_back(make_pair(a,b));
      |       ^
a.cc:18:6: error: 'p' was not declared in this scope
   18 |   if(p.size() == 0){
      |      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n,t;
  cin >> n >> t;
  vector<int> a(n),b(n);
  for (int i=0;i<n;i++){
    cin >> a[i] >> b[i];
  }
  int m=1001;
  for (int i=0;i<n;i++){
    bool f=false;
    if(b[i]<=t){
      f=true;
    }
    if(f){
      m=min(m,a[i]);
    }
  }
  if(m==1001){
    cout << "TLE" << endl;
  }
  else {
    cout << m << endl;
  }
}
}

Compiler output:
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'i'
    6 |   for(int i = 0; i < N i++){
      |                       ^~
      |                       ;
Language: C++

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:34: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |   cin >> n >> T;for(register int i = 0 ,c ,t; i < n; i++){cin>>c>>t;t<=T?mi=min(mi,c):mi=mi;}cout<<(mi==5000?"TLE":mi);}
      |                                  ^
a.cc:5:41: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |   cin >> n >> T;for(register int i = 0 ,c ,t; i < n; i++){cin>>c>>t;t<=T?mi=min(mi,c):mi=mi;}cout<<(mi==5000?"TLE":mi);}
      |                                         ^
a.cc:5:44: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |   cin >> n >> T;for(register int i = 0 ,c ,t; i < n; i++){cin>>c>>t;t<=T?mi=min(mi,c):mi=mi;}cout<<(mi==5000?"TLE":mi);}
      |                                            ^
a.cc:5:109: error: operands to '?:' have different types 'const char*' and 'int'
    5 |   cin >> n >> T;for(register int i = 0 ,c ,t; i < n; i++){cin>>c>>t;t<=T?mi=min(mi,c):mi=mi;}cout<<(mi==5000?"TLE":mi);}
      |                                                                                                     ~~~~~~~~^~~~~~~~~
Language: C++

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:34: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |   cin >> n >> T;for(register int i = 0 ,c ,t; i < n; i++){cin>>c>>t;t<=T?mi=min(mi,c):mi=mi;}cout<<(mi==5000?"TLE":mi;}
      |                                  ^
a.cc:5:41: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |   cin >> n >> T;for(register int i = 0 ,c ,t; i < n; i++){cin>>c>>t;t<=T?mi=min(mi,c):mi=mi;}cout<<(mi==5000?"TLE":mi;}
      |                                         ^
a.cc:5:44: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    5 |   cin >> n >> T;for(register int i = 0 ,c ,t; i < n; i++){cin>>c>>t;t<=T?mi=min(mi,c):mi=mi;}cout<<(mi==5000?"TLE":mi;}
      |                                            ^
a.cc:5:109: error: operands to '?:' have different types 'const char*' and 'int'
    5 |   cin >> n >> T;for(register int i = 0 ,c ,t; i < n; i++){cin>>c>>t;t<=T?mi=min(mi,c):mi=mi;}cout<<(mi==5000?"TLE":mi;}
      |                                                                                                     ~~~~~~~~^~~~~~~~~
a.cc:5:118: error: expected ')' before ';' token
    5 |   cin >> n >> T;for(register int i = 0 ,c ,t; i < n; i++){cin>>c>>t;t<=T?mi=min(mi,c):mi=mi;}cout<<(mi==5000?"TLE":mi;}
      |                                                                                                    ~                 ^
      |                                                                                                                      )
Language: C

#include<bits/stdc++.h>
using namespace std;
struct cource{
  int cost;
  int time;
};


bool cmp(cource a,cource b){
  if(a.cost <= b.cost)return true;
  return false;
}

int main(void){
  int N,T,count = 0; cin>>N>>T;
  vector<cource>r;
  r.resize(N);
  for(int i = 0;i < N;i++){
    cin>>r[i].cost>>r[i].time;
  }


  sort(r.begin(),r.end(),cmp);

  for(int t = 0;t < N;t++){
    if(r[t].time <= T){
      cout<<r[t].cost;
      break;
    }
    if(t == N-1)cout<<"TLE";
  }


}


Compiler output:
main.c:1:9: 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;
  vector<int> c(N);
  for(int i=0;i<N;i++){
    int d,t;
    cin >> d >> t;
    if(T>t)c(i)=d;
    else c(i)=1001;
  }
  sort(c.begin(),c.end());
  if(c[0]==1001)cout << "TLE";
  else cout <<c[0];
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: no match for call to '(std::vector<int>) (int&)'
   10 |     if(T>t)c(i)=d;
      |            ~^~~
a.cc:11:11: error: no match for call to '(std::vector<int>) (int&)'
   11 |     else c(i)=1001;
      |          ~^~~
Language: C++

#include <stdio.h>

int main(void)
{
	int n,T;
	scanf("%d %d",&N,&T);
	
	int c[n],t[n],i;
	
	for(i = 0; i < n; i++){
		scanf("%d %d",&c[i],&t[i]);
	}
	
	int count = 0;
	for(i = 0; i < n; i++){
		int min = 1000;
		if(T > t[i]){
			if(min > c[i]){
				min = c[i];
			}
		}else{
			count++;
		}
	}
	
	if(count == n){
		printf("TLE\n");
	}else{
		printf("%d\n",min);
	}
	
	return 0;
}
			
	
	

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: 'N' was not declared in this scope
    6 |         scanf("%d %d",&N,&T);
      |                        ^
a.cc:29:31: error: 'min' was not declared in this scope; did you mean 'main'?
   29 |                 printf("%d\n",min);
      |                               ^~~
      |                               main
Language: C++

#include <stdio.h>

int main(void)
{
	int N,T;
	scanf("%d %d",&N,&T);
	
	int c[n],t[n],i;
	
	for(i = 0; i < n; i++){
		scanf("%d %d",&c[i],&t[i]);
	}
	
	int count = 0;
	for(i = 0; i < n; i++){
		int min = 1000;
		if(T > t[i]){
			if(min > c[i]){
				min = c[i];
			}
		}else{
			count++;
		}
	}
	
	if(count == n){
		printf("TLE\n");
	}else{
		printf("%d\n",min);
	}
	
	return 0;
}
			
	
	

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'n' was not declared in this scope
    8 |         int c[n],t[n],i;
      |               ^
a.cc:11:32: error: 'c' was not declared in this scope
   11 |                 scanf("%d %d",&c[i],&t[i]);
      |                                ^
a.cc:11:38: error: 't' was not declared in this scope
   11 |                 scanf("%d %d",&c[i],&t[i]);
      |                                      ^
a.cc:17:24: error: 't' was not declared in this scope
   17 |                 if(T > t[i]){
      |                        ^
a.cc:18:34: error: 'c' was not declared in this scope
   18 |                         if(min > c[i]){
      |                                  ^
a.cc:29:31: error: 'min' was not declared in this scope; did you mean 'main'?
   29 |                 printf("%d\n",min);
      |                               ^~~
      |                               main
Language: C++

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

#define REP(i, n) for(int i=0; i<n;i++)
#define REPR(i, n) for(int i=n-1 ; i>=0; i--)
#define FOR(i, m, n) for(int i=m; i<n; i++)

#define INF 2e9
#define ll long long

int main(){
    int n, tim;
    cin>>n>>tim;
    int c[n], t[n]
    int ans = 100000;
    REP(i, n){
        cin>>c[i]>>t[i];
    }

    REP(i, n){
        if(t[i]<=tim){
            if(ans>c[i]){
                ans = c[i];
            }
        }
    }

    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected initializer before 'int'
   15 |     int ans = 100000;
      |     ^~~
a.cc:17:20: error: 't' was not declared in this scope
   17 |         cin>>c[i]>>t[i];
      |                    ^
a.cc:21:12: error: 't' was not declared in this scope
   21 |         if(t[i]<=tim){
      |            ^
a.cc:22:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |             if(ans>c[i]){
      |                ^~~
      |                abs
a.cc:28:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   28 |     cout<<ans<<endl;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
int N,T,c[101],t[101],ans,i;
int main()
{
    cin>> N >> T;

   for(i=0;i<N;i++)
   {
        cin>> c[i];
        cin>> t[i];
   }
   j=0;
   for(i=0;i<N;i++)
   {
       if(c[i]<=c[j] && t[i]<=time)
       {
           j=i;
           h=1;
       }
   }
   if(h==0) cout<<"TLE";
   else cout<<c[j]<<endl;
   return 0
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: 'j' was not declared in this scope
   14 |    j=0;
      |    ^
a.cc:17:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |        if(c[i]<=c[j] && t[i]<=time)
      |                         ~~~~^~~~~~
a.cc:20:12: error: 'h' was not declared in this scope
   20 |            h=1;
      |            ^
a.cc:23:7: error: 'h' was not declared in this scope
   23 |    if(h==0) cout<<"TLE";
      |       ^
a.cc:25:12: error: expected ';' before '}' token
   25 |    return 0
      |            ^
      |            ;
   26 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n, time, i, ans;
  cin >> n >> time;
  int c[n], t[n];
  for(i=0; i<n; i++){
    cin >> c[i] >> t[i];
    if(t[i]<=tt&&c[i]<m){
      ans=i+1;
      m=c[i];
    }
  }
  cout << ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'tt' was not declared in this scope; did you mean 't'?
    9 |     if(t[i]<=tt&&c[i]<m){
      |              ^~
      |              t
a.cc:9:23: error: 'm' was not declared in this scope
    9 |     if(t[i]<=tt&&c[i]<m){
      |                       ^
Language: C++

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


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

}
    


Compiler output:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main(){
  int n,t,f=0,fc=100000;
  cin >> n >> t;
  int c[n],ta[n];
  for(int i=0;i<n;i++){
    cin >> c[i] >> ta[i];
  }
  for(int i=0;i<n;i++){
    if(ta[i]<t && ta[i]<fc)){
		f=1;
    	fc=c[i];
    }
  }
  if(fc)
    cout << fc << endl;
  else
    cout << 'TLE' << endl;
  return 0;
}

Compiler output:
a.cc:21:13: warning: multi-character character constant [-Wmultichar]
   21 |     cout << 'TLE' << endl;
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:13:28: error: expected primary-expression before ')' token
   13 |     if(ta[i]<t && ta[i]<fc)){
      |                            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 1<<30;

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)ans=min(ans, c);
  }
  cout << (ans==INF?"TLE":ans) << endl;
}


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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 1<<30;

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)ans=min(ans, c);
  }
  cout << (ans==INF?"TLE":c) << endl;
}


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

#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <numeric>

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;



int main() {
    int N, T; cin >> N >> T;
    vector<int> c(N), t(N);
    for (int i = 0; i < N; ++i) {
        cin >> c[i] >> t[i];
    }
    vector<int> filtered c ;
    for (int i = 0; i < N; ++i) {
        if (t[i]<=T) {
            filtered c .push back(c[ i ]);
        }
    }
    if (filtered c.size() == 0) {
         cout << ”TLE” << endl;
    }else {
        cout << ∗min element(filtered c.begin(), filtered c.end()) << endl; 
    }
    return 0;
}

Compiler output:
a.cc:27:18: error: extended character ” is not valid in an identifier
   27 |          cout << ”TLE” << endl;
      |                  ^
a.cc:27:18: error: extended character ” is not valid in an identifier
a.cc:29:17: error: extended character ∗ is not valid in an identifier
   29 |         cout << ∗min element(filtered c.begin(), filtered c.end()) << endl;
      |                 ^
a.cc: In function 'int main()':
a.cc:20:26: error: expected initializer before 'c'
   20 |     vector<int> filtered c ;
      |                          ^
a.cc:23:13: error: 'filtered' was not declared in this scope
   23 |             filtered c .push back(c[ i ]);
      |             ^~~~~~~~
a.cc:26:9: error: 'filtered' was not declared in this scope
   26 |     if (filtered c.size() == 0) {
      |         ^~~~~~~~
a.cc:26:17: error: expected ')' before 'c'
   26 |     if (filtered c.size() == 0) {
      |        ~        ^~
      |                 )
a.cc:27:18: error: '\U0000201dTLE\U0000201d' was not declared in this scope
   27 |          cout << ”TLE” << endl;
      |                  ^~~~~
a.cc:29:17: error: '\U00002217min' was not declared in this scope
   29 |         cout << ∗min element(filtered c.begin(), filtered c.end()) << endl;
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int N,T;
    cin >> N >> T;
    int C,R;
    int res　= 2147483646;
    for(int i=0;i<N;i++){
        int c,t;
        cin >> c >> t;
        if(t<=T){
            res =min(res,c);
        }
    }
    if(res ==2147483646){
    
        cout << "TLE" <<endl;
    }else{
    
    cout << res << endl;

    }
    }


Compiler output:
a.cc:8:9: error: extended character 　 is not valid in an identifier
    8 |     int res　= 2147483646;
      |         ^
a.cc: In function 'int main()':
a.cc:13:13: error: 'res' was not declared in this scope
   13 |             res =min(res,c);
      |             ^~~
a.cc:16:8: error: 'res' was not declared in this scope
   16 |     if(res ==2147483646){
      |        ^~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int N,T;
    cin >> N >> T;
    int C,R;
    int res　= 2147483647;
    for(int i=0;i<N;i++){
        int c,t;
        cin >> c >> t;
        if(t<=T){
            res =min(res,c);
        }
    }
    if(res ==2147483647){
    
        cout << "TLE" <<endl;
    }else{
    
    cout << res << endl;

    }
    }


Compiler output:
a.cc:8:9: error: extended character 　 is not valid in an identifier
    8 |     int res　= 2147483647;
      |         ^
a.cc: In function 'int main()':
a.cc:13:13: error: 'res' was not declared in this scope
   13 |             res =min(res,c);
      |             ^~~
a.cc:16:8: error: 'res' was not declared in this scope
   16 |     if(res ==2147483647){
      |        ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N,T;
  cin>>N>>T;
  
  vector<int>t(N);
  vector<int>c(N);
  
 
  int min=1000;
  
  int sum=0;
  
  
  for(int i=0;i<N;i++){
    cin>>c.at(i)>>t.at(i);
    
    if(t.at(i)<T&&c.at(i)<min){
      min=c.at(i);
      sum++
  }
  }
  
  if(sum==0){
    cout<<"TEL"<<endl;
  }
  else{
    
  
  
      cout<<min<<endl;
  }
  
}

  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected ';' before '}' token
   21 |       sum++
      |            ^
      |            ;
   22 |   }
      |   ~