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

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

int main()
{
    int N,T,ans,i,j,h;
    cin>> N >> T;
    int c[n+1],t[n+1];
   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]<=T)
       {
           j=i;
           h=1;
       }
   }
   if(h==0) cout<<"TLE"<<endl;
   else cout<<c[j]<<endl;
   return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'n' was not declared in this scope
   10 |     int c[n+1],t[n+1];
      |           ^
a.cc:13:15: error: 'c' was not declared in this scope
   13 |         cin>> c[i];
      |               ^
a.cc:14:15: error: 't' was not declared in this scope
   14 |         cin>> t[i];
      |               ^
a.cc:19:11: error: 'c' was not declared in this scope
   19 |        if(c[i]<=c[j] && t[i]<=T)
      |           ^
a.cc:19:25: error: 't' was not declared in this scope
   19 |        if(c[i]<=c[j] && t[i]<=T)
      |                         ^
a.cc:26:15: error: 'c' was not declared in this scope
   26 |    else cout<<c[j]<<endl;
      |               ^
Language: C++

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

int main()
{
    int N,T,c[101],t[101],ans,i,j,h;
    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:18:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |        if(c[i]<=c[j] && t[i]<=time)
      |                         ~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
int N,T,c[101],t[101],ans,i,j,h;
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:17:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |        if(c[i]<=c[j] && t[i]<=time)
      |                         ~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
int N,T,c[101],t[101],ans,i,j;
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: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";
      |       ^
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";
      |       ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,t;
  string ans="TLE";
  cin>>n>>t;
  for(int i=0;i<n;i++){
    int c,x;
    cin>>c>>x;
    if(x<=t){ans=(string)(min((int)ans,c);}
                          }
                          cout<<ans;
                          }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   10 |     if(x<=t){ans=(string)(min((int)ans,c);}
      |                               ^~~~~~~~
a.cc:10:42: error: expected ')' before ';' token
   10 |     if(x<=t){ans=(string)(min((int)ans,c);}
      |                          ~               ^
      |                                          )
Language: C++

#include<iostream>
using namespace std;
int main(){
  intn,t;
  string ans="TLE";
  cin>>n>>t;
  for(int i=0;i<n;i++){
    int c,x;
    cin>>c>>x;
    if(x<=t){ans=(string)(min((int)ans,x);}
                          }
                          cout<<ans;
                          }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'intn' was not declared in this scope; did you mean 'int'?
    4 |   intn,t;
      |   ^~~~
      |   int
a.cc:4:8: error: 't' was not declared in this scope; did you mean 'tm'?
    4 |   intn,t;
      |        ^
      |        tm
a.cc:6:8: error: 'n' was not declared in this scope
    6 |   cin>>n>>t;
      |        ^
a.cc:10:31: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   10 |     if(x<=t){ans=(string)(min((int)ans,x);}
      |                               ^~~~~~~~
a.cc:10:42: error: expected ')' before ';' token
   10 |     if(x<=t){ans=(string)(min((int)ans,x);}
      |                          ~               ^
      |                                          )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'c' was not declared in this scope
   10 |   if(c == (1<<30)) cout << "TLE" << endl;
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ',' or ';' before 'scanf'
    7 |         scanf("%d%d", &N, &T);
      |         ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int N, T, c, c_time[1024] = {0}, ans = 0;
    
    cin >> N >> T;
    for (int i = 0; i < N; i++) {
        cin >> c;
        cin >> c_time[c];
    }

    for (int i = 0; i < 1024; i++) {
        if (c_time[i] != 0 && c_time[i] < T) {
            ans = i;
            break;
        }
    }
    
    cout << (ans != 0 ? ans : "TLE") << endl;
}

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

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

int main(){
  int n, T; cin >> n >> T;
  int ans = 1e7;
  for(int i = 0; i < n; i++){
    int c, t; cin >> c >> t;
    if(t <= T) ans = min(ans, c);
  }
  cout << ((ans < 1e7) ? ans : "TLE") << endl;
}

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

#include <iostream>
#include<stdio.h>
#include<vector>
using namespace std;
int main(void){
    int N,T;
    int ans=99999;
    cin>>N>>T;
    vector<int> c(N);
    vector<int> t(N);
    for(int i=0;i<N;i++)
    {
        cin>>c[i]>>t[i];
    }
    
    for(int i=0;i<N;i++)
    {
        if(t[i]<=T)
        {
            ans=min(ans,c[i]);
        }
    }
    if(ans==99999)  cout<<"TLE";
    else    cout<<ans<<endl;
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:25:14: error: expected '}' at end of input
   25 |     return 0;
      |              ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
Language: C++

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

int main () {
  int n, t;
  cin >> n >> t;
  int ct[n][2];
  int min_cost = 10000;
  int i; 
  for (i = 0; i < n; i++) {
    cin >> ct[i][0] >> ct[i][1];
    if (ct[i][1] <= t) {
      min(min_cost, ct[i][0]);
    }
  }
  cout << (min_cost == 10000 ? "TLE" : min_cost) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: warning: ignoring return value of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]', declared with attribute 'nodiscard' [-Wunused-result]
   13 |       min(min_cost, ct[i][0]);
      |       ~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: declared here
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:16:30: error: operands to '?:' have different types 'const char*' and 'int'
   16 |   cout << (min_cost == 10000 ? "TLE" : min_cost) << endl;
      |            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
Language: C++

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

int main(){
  int n,limit;
  int cheapest=1001;
  cin>>n >>limit;
  vector<int> c(n);
  vector<int> t(n);
  
  for(int i=0;i<n;i++){
    cin>>c.at(i);
    cin>>t.at(i);
  }
  
  for(int i=0;i<n;i++){
    if(t.at(i) <= limit){
      ceapest = min(cheapest,c.at(i));
    }
  }
  cout<<cheapest<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: 'ceapest' was not declared in this scope; did you mean 'cheapest'?
   18 |       ceapest = min(cheapest,c.at(i));
      |       ^~~~~~~
      |       cheapest
Language: C++

#include "bits/stdc++.h"
#define FOR(i, a, b) for (int i = a; i < b; i++)
#define mFOR(i, a, b) for (int i = a; i > b; i--)
#define MP make_pair
#define PB push_back
#define ALL(v) v.begin(), v.end()
#define N 100007
#define INF 1000000007
using namespace std;

typedef long long ll;

ll gcd(ll a, ll b) { return b == 0 ? a : gcd(b, a % b); }

int main()
{
   int n, t, c_i, t_i, res = INF;
   cin >> n >> t;
   FOR(i, 0, n)
   {
      cin >> c_i >> t_i;
      if (t_i <= t)
         res = min(res, c_i);
   }

   cout << (res == INF ? "TLE" : res) << endl;
   return 0;
}


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

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
#include<vector>
using namespace std;
int min_cost=10000;
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[i]>>t[i];
    }
    int MAX=1<<30//2の30乗
    int ans=MAX;
    for(int i=0;i<N;i++){
        if(t[i]<=T){
            ans=min(ans,c[i]);
        }
    }
    if(ans<MAX){
        cout<<ans<<endl;
        return 0;
    }else{
        cout<<"TLE"<<endl;
        return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: expected ',' or ';' before 'int'
   18 |     int ans=MAX;
      |     ^~~
a.cc:21:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |             ans=min(ans,c[i]);
      |             ^~~
      |             abs
a.cc:24:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |     if(ans<MAX){
      |        ^~~
      |        abs
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
#include<vector>
using namespace std;
int min_cost=10000;
int main(){
    int N,T;
    cin>>N>>T;
    for(int i=0;i<N;i++){
        int c,t;
        cin>>c>>t;
        if(t<T){
            if(c<mim_cost){
                min_cost=c;
            }
        }
    }
    if(min_cost==10000){
          cout<<min_cost<<endl;
          return 0;
    }else{
        cout<<"TLE"<<endl;
        return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: 'mim_cost' was not declared in this scope; did you mean 'min_cost'?
   16 |             if(c<mim_cost){
      |                  ^~~~~~~~
      |                  min_cost
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
#include<vector>
using namespace std;
int min_cost=10000;
int main(){
    int N,T;
    cin>>N>>T;
    for(int i=0;i<N;i++){
        int c,t;
        cin>>c>>t;
        if(t<T){
            if(c<mim_cost)min_cost=c;
        }
    }
    if(min_cost==10000){
          cout<<min_cost<<endl;
          return 0;
    }else{
        cout<<"TLE"<<endl;
        return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: 'mim_cost' was not declared in this scope; did you mean 'min_cost'?
   16 |             if(c<mim_cost)min_cost=c;
      |                  ^~~~~~~~
      |                  min_cost
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
#include<vector>
using namespace std;
int main(){
    int N,T;
    cin>>N>>T;
    int min_cost=10000;
    for(int i=0;i<N;i++){
        int c,t;
        cin>>c>>t;
        if(t<T){
            if(c<mim_cost)min_cost=c;
        }
    }
    if(min_cost==10000){
          cout<<min_cost<<endl;
          return 0;
    }else{
        cout<<"TLE"<<endl;
        return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: 'mim_cost' was not declared in this scope; did you mean 'min_cost'?
   16 |             if(c<mim_cost)min_cost=c;
      |                  ^~~~~~~~
      |                  min_cost
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
#include<vector>
using namespace std;
int main(){
    int N,T;
    cin>>N>>T;
    int min_cost=10000;
    for(int i=0;i<n;i++){
        cin>>c>>t;
        if(t<T){
            if(c<mim_cost)min_cost=c;
        }
    }
    if(min_cost==10000){
          cout<<min_cost<<endl;
    return 0;
    }else{
        cout<<"TLE"<<endl;
        return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'n' was not declared in this scope
   12 |     for(int i=0;i<n;i++){
      |                   ^
a.cc:13:14: error: 'c' was not declared in this scope
   13 |         cin>>c>>t;
      |              ^
a.cc:13:17: error: 't' was not declared in this scope
   13 |         cin>>c>>t;
      |                 ^
a.cc:15:18: error: 'mim_cost' was not declared in this scope; did you mean 'min_cost'?
   15 |             if(c<mim_cost)min_cost=c;
      |                  ^~~~~~~~
      |                  min_cost
Language: C++

#include <iostream>

using namespace std;

int main(){
  int n, t;
  int flag=0;
  int ans=INT_MAX;
  cin >> n >> t;
  for(int i=0;i<n;i++){
    int ci, ti;
    cin >> ci >> ti;
    if(ti <= t && ci < ans){
      flag = 1;
      ans = ci;
    }
  }
  if(flag!=0){
    cout << ans << endl;
  }else{
    cout << "TLE" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'INT_MAX' was not declared in this scope
    8 |   int ans=INT_MAX;
      |           ^~~~~~~
a.cc:2:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    1 | #include <iostream>
  +++ |+#include <climits>
    2 |
Language: C++

#include <iostream>

using namespace std;

int main(){

int n,t;
  cin >> n >> t;
  
int cost=10000;
  for(int i=0;i<n;i++){
   int c, u;
    cin >> c >> u;
    if(t>=u){
    cost=min(cost,c)
    }
  }
  if(cost!=10000){
  cout << cost << endl;
  }
  else{
  cout << "TLE" << endl;
  }


}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: expected ';' before '}' token
   15 |     cost=min(cost,c)
      |                     ^
      |                     ;
   16 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

int N, T;
int c[1005], y[1005];

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

    int ans = 1000;
    for (int i = 0; i < N; i++) {
        cin >> c[i] >> t[i];
        if (t[i] <= T) ans = min(ans, c[i]);
    }

    cout << ans << endl;
}

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

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  int N, T;
  cin >> N >> T;
  int c[100] = {};
  int a[100] = {};
  int t, A;
  A = 0;
  for(int i = 0;i < N;i++){
    cin >> c[i] >> t;
    if(t <= T){
      a[A] = c[i];
      A++;
    }
  }
  sort(a,a+A)
  if(A == 0){
    cout << "TLE" << endl;
  }else{
    cout << a[0] << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: expected ';' before 'if'
   18 |   sort(a,a+A)
      |              ^
      |              ;
   19 |   if(A == 0){
      |   ~~          
a.cc:21:4: error: 'else' without a previous 'if'
   21 |   }else{
      |    ^~~~
Language: C

#include<stdio.h>

int main() {
	int n, t, tc, tt, i, min;
	if (scanf("%d%d", &n, &t) == 0) return 1;
	min = 1001;
	for (i = 0; i < n; i++) {
		if (scanf("%d%d", &tc, &tt) == 0) return 1;
		if (tt <= t && min > tc) min = tc;
	}
	if (min == 1001) printf("TLE");
	else printfg("%d", min);
}


Compiler output:
main.c: In function 'main':
main.c:12:14: error: implicit declaration of function 'printfg'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |         else printfg("%d", min);
      |              ^~~~~~~
      |              printf
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
  int nT; cin >> n >> T;
  vector<int>c(n);
  vector<int>t(n);
  for(int i = 0;i < n;i++){
    cin >> c[i] >> t[i];
  }
  vector<int>a(n);
  int A = 0;
  for(int i = 0;i < n;i++){
    if(t[i] < T){
      a[A] = c[i];
      A++;
    }
  }
  int ans = *min_element(a.begin(),a.end());
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'n' was not declared in this scope; did you mean 'nT'?
    6 |   int nT; cin >> n >> T;
      |                  ^
      |                  nT
a.cc:6:23: error: 'T' was not declared in this scope; did you mean 'nT'?
    6 |   int nT; cin >> n >> T;
      |                       ^
      |                       nT
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
  int nT; cin >> n >> T;
  vector<int>c(n);
  vector<int>t(n);
  for(int i = 0;i < n;i++){
    cin >> c[i] >> t[i];
  }
  vector<int>a(n);
  int A = 0;
  for(int i = 0;i < n;i++){
    if(t[i] < T){
      a[A] = c[i];
      A++;
    }
  }
  int ans = *min_element(a.begin(),a.end());
  cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'n' was not declared in this scope; did you mean 'nT'?
    6 |   int nT; cin >> n >> T;
      |                  ^
      |                  nT
a.cc:6:23: error: 'T' was not declared in this scope; did you mean 'nT'?
    6 |   int nT; cin >> n >> T;
      |                       ^
      |                       nT
a.cc:21:23: error: expected '}' at end of input
   21 |   cout << ans << endl;
      |                       ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
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[i]>>t[N];
  }
  
  int MAX=10001;
  int ans=MAX;
  
  for(int i=0;i<N;i++){ 
    if(t[i]<=T){
      ans=min(ans.c[i]);
    }
  }
  if(ans<MAX){
    cout<<ans<<endl;
  }
  else{cout<<"TLE"<<endl;
      }
}

  
 

Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: request for member 'c' in 'ans', which is of non-class type 'int'
   18 |       ans=min(ans.c[i]);
      |                   ^
Language: C++

#include <iostream>
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 == INF ) {
              cout << ”TLE” << endl ; 
            } 
            else { cout << ans << endl ;
                 } 
           }


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

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

int main() {
  int n,T;
  cin >> n >> T;
  vector<int> c(n),d(n);
  for(int i = 0; i < n ; i++){
    cin >> c.at(i) >> t.at(i) ;
  }
  
  int ans = 1001;
  for(int i = 0; i<n ; i++){
    if(t.at(i) < T){
      if(ans > c.at(i)){
        ans = c.at(i);
      }
    }
  }
  
  if(ans == 1001){
    cout << "TLE" << endl;
  }
  else{
    cout << ans << endl;
  }
}

    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 't' was not declared in this scope
    9 |     cin >> c.at(i) >> t.at(i) ;
      |                       ^
a.cc:14:8: error: 't' was not declared in this scope
   14 |     if(t.at(i) < T){
      |        ^
Language: C++

#include <iostream>
#include <vector>

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[i] >> t[i];
    }

    int min = *max_element(c.begin(), c.end()) + 1;
    int o_min = min;
    for(int i = 0; i < N; i++){
        if (t[i] <= T) {
            if (min >= c[i]) {
                min = c[i];
            }
        }
    }
    if (min != o_min) {
        cout << min << endl;
    }else{
        cout << "TLE" << endl;
    }
    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: 'max_element' was not declared in this scope
   17 |     int min = *max_element(c.begin(), c.end()) + 1;
      |                ^~~~~~~~~~~
Language: C++

#include <iostream>
#include <vector>

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[i] >> t[i];
  }
  int minc = 10000;
  for(int i = 0; i < N; i++){
    if(minc > c[i]){
      if(t[i] > T) continue;
      else minc = c[i];
    }
  }
  cout << mimc;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: 'mimc' was not declared in this scope; did you mean 'minc'?
   21 |   cout << mimc;
      |           ^~~~
      |           minc
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <stack>
#include <math.h>
#define rep(i, n) for(int i = 0; i < (n); ++i)
// int H[N]; rep(i,N) scanf("%d", &H[i]);
using namespace std;

template<class T> inline bool chmax(T& a, T b){ if(a < b) { a=b; return 1; }return 0;}
template<class T> inline bool chmin(T& a, T b){ if(a > b) { a=b; return 1; }return 0;}

int GCD(int a, int b) { return b ? GCD(b, a%b) : a; }
const long long INF = 1LL << 60;
// spring s; cin >> s;
// cout << res << endl;
// --------write my code!!!!!----------//

// I'm trying to ~~~
int main(){
    int N,T; cin>>N>>T;
    int c[i],t[i];
    rep(i,N) cin >> c[i] >> t[i];
    int min_c = 1010;
    rep(i,N){
        if(t[i]<=T){
            if(c[i]<=min_c) min_c = c[i];
        }
    }
    if(min_c!=1010) cout << min_c << endl;
    else cout << "TLE" << endl;
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:26:11: error: 'i' was not declared in this scope
   26 |     int c[i],t[i];
      |           ^
a.cc:27:21: error: 'c' was not declared in this scope
   27 |     rep(i,N) cin >> c[i] >> t[i];
      |                     ^
a.cc:27:29: error: 't' was not declared in this scope
   27 |     rep(i,N) cin >> c[i] >> t[i];
      |                             ^
a.cc:30:12: error: 't' was not declared in this scope
   30 |         if(t[i]<=T){
      |            ^
a.cc:31:16: error: 'c' was not declared in this scope
   31 |             if(c[i]<=min_c) min_c = c[i];
      |                ^
Language: C++

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

int main() {
  int n,t;
  cin >> n >> T;
  vector<int> c(n),d(n),t(n),s(n);
  for(int i = 0; i < n ; i++){
    cin >> c.at(i) >> t.at(i) ;
    d.at(i) = c.at(i);
    s.at(i) = t.at(i);
  }
  sort(c.begin(), c.end());
  sort(t.begin(), t.end());
  if(t.at(0) > T){
    cout << "TLE" << endl;
  }
  
  bool y = false;
  
  for(int i = 0; i < n ; i++){
    for(int j = 0; j < n ; i++){
      if(c.at(i) == d.at(j)){
        if(s.at(j) <= T ){
          cout << d.at(j) << endl;
          y = true;
          break;
        }
        else {
          break;
        }
      }
    }
    if(y){
      break;
    }
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'T' was not declared in this scope
    6 |   cin >> n >> T;
      |               ^
a.cc:7:25: error: conflicting declaration 'std::vector<int> t'
    7 |   vector<int> c(n),d(n),t(n),s(n);
      |                         ^
a.cc:5:9: note: previous declaration as 'int t'
    5 |   int n,t;
      |         ^
a.cc:9:25: error: request for member 'at' in 't', which is of non-class type 'int'
    9 |     cin >> c.at(i) >> t.at(i) ;
      |                         ^~
a.cc:11:17: error: request for member 'at' in 't', which is of non-class type 'int'
   11 |     s.at(i) = t.at(i);
      |                 ^~
a.cc:14:10: error: request for member 'begin' in 't', which is of non-class type 'int'
   14 |   sort(t.begin(), t.end());
      |          ^~~~~
a.cc:14:21: error: request for member 'end' in 't', which is of non-class type 'int'
   14 |   sort(t.begin(), t.end());
      |                     ^~~
a.cc:15:8: error: request for member 'at' in 't', which is of non-class type 'int'
   15 |   if(t.at(0) > T){
      |        ^~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
    int N,T;
    cin >> N >> T;
    
    int c[100] ={};
    int t[100] ={};
    int ans = INT_MAX;
    
    
    for(int i=0;i<N;i++){
        cin >> c[i] >> t[i];
        if(t[i]<=T){
            ans=min(ans,c[i]);
        }
    }
    if(ans==INT_MAX){
        cout << "TLE" << endl;
    }else{
        cout << ans << endl;
        
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'INT_MAX' was not declared in this scope
   11 |     int ans = INT_MAX;
      |               ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <algorithm>
  +++ |+#include <climits>
    3 | using namespace std;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected unqualified-id before ';' token
    7 |         int n, ;T
      |                ^
a.cc:7:17: error: 'T' was not declared in this scope
    7 |         int n, ;T
      |                 ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>

using namespace std;

int main(){
  int n,t,c,x;
  int i,j;
  vector <int> v;
  
  for(i=0;i<n;i++){
    cin>>c>>x;
    if(x<t)
      v.push_back(c);
  }
  sort(v.begin(),v.end());
  
  if(v.length()==0)
    cout<<"TLE"<<endl;
  else
    cout<<v[0]<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: 'class std::vector<int>' has no member named 'length'
   19 |   if(v.length()==0)
      |        ^~~~~~
Language: C++

n, t = gets.strip.split.map(&:to_i)
minc=1<<29
minv=-1
(1..n).each do |i|
	a, b = gets.strip.split.map(&:to_i)
	if b<=t && a<minc
		minv=a
		minc=b
	end
end

if minv>0
	puts minv
else
	puts 'TLE'
end



Compiler output:
a.cc:4:2: error: too many decimal points in number
    4 | (1..n).each do |i|
      |  ^~~~
a.cc:15:14: warning: multi-character character constant [-Wmultichar]
   15 |         puts 'TLE'
      |              ^~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n, t = gets.strip.split.map(&:to_i)
      | ^
Language: C++

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

int main() {
  int N,T;
  vector<int> c(N);
  vector<int> t(N);
  vector<int> y(N);
  for(int i=0;i<N;i++;){
  cin>>c.at(i);
  cin>>t.at(i);
    if(t.at(i)<=T) y.at(i)=c.at(i);
  }
  
    else if(t.at(i)>T) y.at(i)=1001;
  }
  sort(y.begin(),y.end());
  
  
  
  
  
  cout<<y.at(0)<<endl;
  
  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ')' before ';' token
    9 |   for(int i=0;i<N;i++;){
      |      ~               ^
      |                      )
a.cc:9:23: error: expected primary-expression before ')' token
    9 |   for(int i=0;i<N;i++;){
      |                       ^
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else if(t.at(i)>T) y.at(i)=1001;
      |     ^~~~
a.cc:15:18: error: 'i' was not declared in this scope
   15 |     else if(t.at(i)>T) y.at(i)=1001;
      |                  ^
a.cc: At global scope:
a.cc:17:7: error: expected constructor, destructor, or type conversion before '(' token
   17 |   sort(y.begin(),y.end());
      |       ^
a.cc:23:3: error: 'cout' does not name a type
   23 |   cout<<y.at(0)<<endl;
      |   ^~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

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

const inf = 1000000000000000LL;

signed main() {
	int n, t;
	cin >> n >> t;
	int ans = inf;
	rep(i, n) {
		int c, s;
		cin >> c >> s;
		if(s <= t) {
			ans = min(ans, c);
		}
	}
	if(ans == 0) {
		cout << "TLE" << endl;
	}
	else {
		cout << ans << endl;
	}
}

Compiler output:
a.cc:6:7: error: 'inf' does not name a type; did you mean 'int'?
    6 | const inf = 1000000000000000LL;
      |       ^~~
      |       int
a.cc: In function 'int main()':
a.cc:11:19: error: 'inf' was not declared in this scope; did you mean 'ynf'?
   11 |         int ans = inf;
      |                   ^~~
      |                   ynf
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'T' was not declared in this scope
   12 |     if(ti<=T)ret=min(ret, ci);
      |            ^
Language: C++

#include <iostream>

using namespace std;

int main (){
	int N, T, c[120], t[105];
	cin >> N >> T;
	
	for(int i=0; i<N; i++){
		cin >> c[i] >> t[1];
	}
	int ans = 999999999;
	
	for(int i=0; i<N;i++){
		if(t[i]<=T){
			if(c[i] < ans){
				ans = c[i];
			}
		}
	}A
	if(ans <999999999){
		cout << ans << endl;
	}
	else{
		cout << "TEL" << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: 'A' was not declared in this scope
   20 |         }A
      |          ^
a.cc:24:9: error: 'else' without a previous 'if'
   24 |         else{
      |         ^~~~
Language: C++

#include <iostream>

using namespace std;
 int main(){
 	int N , T;
 	cin >> N >> T;
 	int c[N] , t[N];
 	for(int i=0; i<N; i++){cin >> c[i] >> t[i];}
 	int answer=2000;
 	
 	 for(int i=0; i<N; i++){
 	 	if (T>=t[i]){
 	 		if(answer>c[i]{
 	 			answer=c[i];
 	 		}
 	 	}
 	 }
 	 cout << answer << endl;
 	  if (answer=2000){
 	  	cout << "TLE" << endl;
 	  }
 	 
 	 return 0 ;
 	 	
 	 	
 	 }

Compiler output:
a.cc: In function 'int main()':
a.cc:13:39: error: expected ')' before '{' token
   13 |                         if(answer>c[i]{
      |                           ~           ^
      |                                       )
a.cc:16:17: error: expected primary-expression before '}' token
   16 |                 }
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int N, J, C[120], t[150];
	cin >> N >> T;
	
	for(int i=0; i<N; i++){
		cin >> c[i] >> t[i];
	}
	
	int ans = 9999;
	
	for(int i=0;i<N;i++){
		if(t[i] <=T){
			if(c[i] < ans){
				ans = c[i];
				
			}
		}
	}
	if(ans < 9999){
		cout << ans << andl;
	}
	else{
		cout << "TLE" << endl;
		
	}
	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'T' was not declared in this scope
    6 |         cin >> N >> T;
      |                     ^
a.cc:9:24: error: 'c' was not declared in this scope
    9 |                 cin >> c[i] >> t[i];
      |                        ^
a.cc:16:28: error: 'c' was not declared in this scope
   16 |                         if(c[i] < ans){
      |                            ^
a.cc:23:32: error: 'andl' was not declared in this scope
   23 |                 cout << ans << andl;
      |                                ^~~~
Language: C++

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

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

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

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

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

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

  return 0;
}


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

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

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

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

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

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

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:22: error: operands to '?:' have different types 'const char*' and 'LL' {aka 'long long int'}
   36 |   ans = (ans == 1001)?"TLE":ans;
      |         ~~~~~~~~~~~~~^~~~~~~~~~
Language: C++

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

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

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

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

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

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:35: error: invalid operands of types 'LL' {aka 'long long int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   36 |   cout << (ans == 1001)?"TLE":ans << endl;
      |                               ~~~~^~~~~~~
Language: C++

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

int main(){
  int N,T;
  vector<int> cost(N);
  vector<int> time(N);
  
  for(int i=0;i<N;i++){
    if(i % 2 ==0){
     cin >> cost[i];
    }
    else if (i % 2 ==1){
     cin >> time[i];
    }
  }
  
  //配列timeの中から条件をみたすiを見つける
  int mincost = cost[0];
  int mintime;
  for(int i=0;i<N;i++){
    if (T>time[i] ){
       if(mincost > cost[i]){
       mincost = cost[i];
       mintime = time[i];
       } 
      }
    }
  
  }

  if (mintime == T){
 cout << "TLE" << endl;
 }
  else{
 cout << mincost << endl;
 }

}


Compiler output:
a.cc:32:3: error: expected unqualified-id before 'if'
   32 |   if (mintime == T){
      |   ^~
a.cc:35:3: error: expected unqualified-id before 'else'
   35 |   else{
      |   ^~~~
a.cc:39:1: error: expected declaration before '}' token
   39 | }
      | ^
Language: C++

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

int main(){
  int N,T;
  vector<int> cost(N);
  vector<int> time(N);
  
  for(int i=0;i<N;i++){
    if(i % 2 ==0){
     cin >> cost[i];
    }
    else if (i % 2 ==1){
     cin >> time[i];
    }
  }
  
  //配列timeの中から条件をみたすiを見つける
  int mincost = cost[0];
  int mintime;
  for(int i=0;i<N;i++){
    if (T>time[i] ){
       if(mincost > cost[i]){
       mincost = cost[i];
       mintime = time[i]
       } 
      }
    }
  
  }

 if(mintime == T){
 cout << "TLE" << endl;
 }
 else{
 cout << mincost << endl;
 }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:25: error: expected ';' before '}' token
   25 |        mintime = time[i]
      |                         ^
      |                         ;
   26 |        }
      |        ~                 
a.cc: At global scope:
a.cc:32:2: error: expected unqualified-id before 'if'
   32 |  if(mintime == T){
      |  ^~
a.cc:35:2: error: expected unqualified-id before 'else'
   35 |  else{
      |  ^~~~
a.cc:39:1: error: expected declaration before '}' token
   39 | }
      | ^
Language: C++

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

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define FORR(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--)

#define CHMIN(a, b) (a) = min((a), (b))
#define CHMAX(a, b) (a) = max((a), (b))

#define DEBUG(x) cout << #x << ": " << (x) << endl
#define PRINT(x) cout << x << endl
int main() {
  int N, T;
  cin >> N >> T;
  vector<pii> V(N);

  FOR(i, 0, N) {
    int a, b;
    cin >> a >> b;
    V[i] = pii(a, b);
  }

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

  FOR(i, 0, N) {
    int c = V[i].first;
    int t = V[i].second;

    if (t <= T) {
      PRINT(c);
      return ;
    }
  }

  PRINT("TLE");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   38 |       return ;
      |       ^~~~~~
Language: C++

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

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define FORR(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--)

#define CHMIN(a, b) (a) = min((a), (b))
#define CHMAX(a, b) (a) = max((a), (b))

#define DEBUG(x) cout << #x << ": " << (x) << endl
#define PRINT(x) cout << x << endl
int main() {
  int N, T;
  cin >> N >> T;
  vector<pii> V(N);

  FOR(i, 0, N) {
    int a, b;
    cin >> a >> b;
    V[i] = pii(a, b);
  }

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

  FOR(i, 0, N) {
    int c = V[i].first();
    int t = V[i].second();

    if (c <= T) {
      PRINT(c);
      return;
    }
  }

  PRINT("TLE");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:23: error: expression cannot be used as a function
   33 |     int c = V[i].first();
      |             ~~~~~~~~~~^~
a.cc:34:24: error: expression cannot be used as a function
   34 |     int t = V[i].second();
      |             ~~~~~~~~~~~^~
a.cc:38:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   38 |       return;
      |       ^~~~~~
Language: C++

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

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define FORR(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--)

#define CHMIN(a, b) (a) = min((a), (b))
#define CHMAX(a, b) (a) = max((a), (b))

#define DEBUG(x) cout << #x << ": " << (x) << endl
#define PRINT(x) cout << x << endl
int main() {
  int N, T;
  cin >> N >> T;
  vector<pii> V(N);

  FOR(i, 0, N) {
    int a, b;
    cin >> a >> b;
    V[i] = pii(a, b);
  }

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

  FOR(i, 0, N) {
    c = V[i].first();
    t = V[i].second();

    if (c <= T) {
      PRINT(c);
      return;
    }
  }

  PRINT("TLE");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:5: error: 'c' was not declared in this scope
   33 |     c = V[i].first();
      |     ^
a.cc:33:19: error: expression cannot be used as a function
   33 |     c = V[i].first();
      |         ~~~~~~~~~~^~
a.cc:34:5: error: 't' was not declared in this scope
   34 |     t = V[i].second();
      |     ^
a.cc:34:20: error: expression cannot be used as a function
   34 |     t = V[i].second();
      |         ~~~~~~~~~~~^~
a.cc:38:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   38 |       return;
      |       ^~~~~~
Language: C++

#include <stdio.h>

int
main(int argc,char *argv[])
{
  int N, T, c[100], t[100];
  scanf("%d%d", &N, &T);
  for(int i = 0; i < N; i++)
  {
    scanf("%d%d", &c[i], &t[i]);
  }
  
  int min_cost = 1001;
  
  for(int i = 0; i < N; i++){
    if(t[i] <= T &&　min_cost > c[i]){
      min_cost = c[i];
    }
  }
  
  if(min_cost == 1001){
    printf("%s\n", "TLE");
  }
  else{
    printf("%d\n", min_cost);
  }
  
  return 0;
}
    

Compiler output:
a.cc:16:20: error: extended character 　 is not valid in an identifier
   16 |     if(t[i] <= T &&　min_cost > c[i]){
      |                    ^
a.cc: In function 'int main(int, char**)':
a.cc:16:20: error: '\U00003000min_cost' was not declared in this scope; did you mean 'min_cost'?
   16 |     if(t[i] <= T &&　min_cost > c[i]){
      |                    ^~~~~~~~~~
      |                    min_cost
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;

typedef long long ll; 

#define REP(var,n) for(int var=0;var<(n);var++)
#define REPP(var,n) for(int var=1;var<(n);var++)
#define ALL(c) (c).begin(),(c).end()

int main(){
  int N, T;
  cin >> N >> T;
  
  int a[N];
  int b[N];

  REP(i, N){ 
    cin >> a[i];
    cin >> b[i];
  }

  int tmpCost = 1001;

  REP(i, N){ 
    if(b[i] < T && a[i] < tmpCost){
      tmpCost = a[i];
    }   
  }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:35:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   35 |   if(ans == -1){
      |      ^~~
      |      abs
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |         if(t<=T)ans=min(ans,c);
      |                 ^~~
      |                 abs
a.cc:12:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     }cout<<ans<<endl;return 0;
      |            ^~~
      |            abs
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |     cin >> c[i] >> t[i];
      |             ^
a.cc:9:21: error: invalid types 'int[int]' for array subscript
    9 |     cin >> c[i] >> t[i];
      |                     ^
a.cc:13:9: error: invalid types 'int[int]' for array subscript
   13 |     if(t[i]<=T){
      |         ^
a.cc:14:15: error: invalid types 'int[int]' for array subscript
   14 |       cnt[i]=c[i];
      |               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 't' was not declared in this scope
    6 |   cin >> n >> t;
      |               ^
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |     cin >> c[i] >> t[i];
      |             ^
a.cc:14:15: error: invalid types 'int[int]' for array subscript
   14 |       cnt[i]=c[i];
      |               ^
a.cc:18:11: error: 'vec' was not declared in this scope
   18 |   cout << vec[0];
      |           ^~~
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 minCost = 1001;
        for(int i=0; i<n; i++){
            int cost = sc.nextInt();
            int time = sc.nextInt();
            if(t >＝ time){
                if(minCost > cost) minCost = cost;
            }
        }
        if(minCost == 1001) System.out.println("TLE");
        else System.out.println(minCost);
    }
}

Compiler output:
Main.java:12: error: illegal character: '\uff1d'
            if(t >? time){
                  ^
Main.java:12: error: not a statement
            if(t >? time){
                    ^
Main.java:12: error: ';' expected
            if(t >? time){
                        ^
3 errors