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

#include <iostream>
using namespace std;

int main(){
  int N,T,c[1001],t[1001];
  int Cur= 0,Mincost = 1001;
  cin >> N >> T;
  
  for(int i=0;i < N;i++){
    cin >> c[i] >> t[i];
  }
  ////////
  for(int i=0;i < N;i++){
    　if(T <= t[i]){
       if(Mincost >= c[i]){
         Cur = i+1;
         Mincost = c[i];
       }
     }
  }
  if (Cur == 1001){
    cout << "TLE" <<endl;
  }else{
    cout << Cur << endl;
  }
}

Compiler output:
a.cc:14:5: error: extended character 　 is not valid in an identifier
   14 |     　if(T <= t[i]){
      |     ^
a.cc: In function 'int main()':
a.cc:14:5: error: '\U00003000if' was not declared in this scope
   14 |     　if(T <= t[i]){
      |     ^~~~
Language: C++

#include<iostream>

int main()
{
	int i,N,T,c[1001],t[1001];
	int cans=1001,tans=0;
	cin >> N >> T;
	for(i=1;i<=N;i++){
		cin >> c[i] >> t[i];
	}
	
	//結果
	for(i=1;i<=N;i++){
		if(t[i]<T && c[i] < cans) tans==c[i];
	}
	
	if(tans==0){ cout >> 'TLE';
	}else cout >>tans;
}


Compiler output:
a.cc:17:30: warning: multi-character character constant [-Wmultichar]
   17 |         if(tans==0){ cout >> 'TLE';
      |                              ^~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> N >> T;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:17:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |         if(tans==0){ cout >> 'TLE';
      |                      ^~~~
      |                      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |         }else cout >>tans;
      |               ^~~~
      |               std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <stdio.h>

int main(){

    int N,T;
    scanf("%d %d",&N,&T);
    int time,cost;
    int min_cost=1001;
    int flag=0;

    for(int i=0;i<N;i++){
        scanf("%d %d",&cost,&time);
        if(time < T){
            if(cost<min_cost){
                min_cost=cost;
                flag++;
            }
        }
    }

    if(flag==0)prinf("TLE");
    else printf("%d",min_cost);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: 'prinf' was not declared in this scope; did you mean 'printf'?
   21 |     if(flag==0)prinf("TLE");
      |                ^~~~~
      |                printf
Language: C++

#define MAX 1000
#define REP(i,x) for(int i=0;i<(int)(x);i++)
int main(){
  int n,t,a[MAX],b[MAX];
  cin>>n>>t;

  int i,cost,time;
  cost = MAX;
  time = MAX;
  REP(i,n){
    cin>>a[i]>>b[i];
    if (a[i]<=cost&&b[i]<=t){
      cost = a[i];
      time = b[i];
    }
  }
  if (cost==MAX){
    cout<<"TLE";
  }else{
    cout<<cost;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>n>>t;
      |   ^~~
a.cc:18:5: error: 'cout' was not declared in this scope; did you mean 'cost'?
   18 |     cout<<"TLE";
      |     ^~~~
      |     cost
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'cost'?
   20 |     cout<<cost;
      |     ^~~~
      |     cost
Language: C++

int main() {
	int n, t;
	vector<P> pa;
	int rc = INF;
	cin >> n >> t;
	for (int i = 0; i < n; i++) {
		P t3;
		cin >> t3.first >> t3.second;
		if (t3.second <= t ) {
			if (t3.first < rc) {
				rc = t3.first;
			}
		}
	}
	if (rc == INF) {
		cout << "TLE" << endl;
	} else {
		cout << rc << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'vector' was not declared in this scope
    3 |         vector<P> pa;
      |         ^~~~~~
a.cc:3:16: error: 'P' was not declared in this scope
    3 |         vector<P> pa;
      |                ^
a.cc:3:19: error: 'pa' was not declared in this scope
    3 |         vector<P> pa;
      |                   ^~
a.cc:4:18: error: 'INF' was not declared in this scope
    4 |         int rc = INF;
      |                  ^~~
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> n >> t;
      |         ^~~
a.cc:7:18: error: expected ';' before 't3'
    7 |                 P t3;
      |                  ^~~
      |                  ;
a.cc:8:24: error: 't3' was not declared in this scope; did you mean 't'?
    8 |                 cin >> t3.first >> t3.second;
      |                        ^~
      |                        t
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "TLE" << endl;
      |                 ^~~~
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |                 cout << "TLE" << endl;
      |                                  ^~~~
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout << rc << endl;
      |                 ^~~~
a.cc:18:31: error: 'endl' was not declared in this scope
   18 |                 cout << rc << endl;
      |                               ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define repr(i,k,n) for(int i = (k); i < (n); i++)
#define rep(i,n) repr(i,0,n)
#define ALL(a) begin(a),end(a)
typedef vector<int> vi;
typedef vector<string> vs;
typedef long long ll;
const ll INF = 114514810;
const ll MOD = 1000000007;
int ctoi(const char c){
    switch(c){
    case '0': return 0;
    case '1': return 1;
    case '2': return 2;
    case '3': return 3;
    case '4': return 4;
    case '5': return 5;
    case '6': return 6;
    case '7': return 7;
    case '8': return 8;
    case '9': return 9;
  }
}
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int N, T, ci, ti, co=1000;
    bool fl = false;
    cin >> N >> T;
    rep(i, N){
        cin >> ci >> ti;
        if (ci<=co&&ti<=T){
            co = ci;
            fl = true;
        }
    }
    cout << (fl?co:"TLE") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:16: error: operands to '?:' have different types 'int' and 'const char*'
   39 |     cout << (fl?co:"TLE") << endl;
      |              ~~^~~~~~~~~
a.cc: In function 'int ctoi(char)':
a.cc:24:1: warning: control reaches end of non-void function [-Wreturn-type]
   24 | }
      | ^
Language: C++

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

int main(){
  int n,t,array[100],array2[100],ans=1001;
  cin>>n>>t;
  for(int i=0;i<n;i++){
    cin>>array[i]>>array2[i];
    if(array2[i]<=t){
      ans=min(ans,array2[i]);
    }
  }
  cout<<(ans-1001?ans:"TLE")<<endl;
}

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

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

int main(){
  int n,t,array[100],array2[100],ans=1e9;
  cin>>n>>t;
  for(int i=0;i<n;i++){
    cin>>array[i]>>array2[i];
    if(array2[i]<=t){
      ans=min(ans,array2[i]);
    }
  }
  cout<<(ans-1e9?ans:"TLE")<<endl;
}

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

int main(){
    int n,t; cin >> n >> t;
//    cout << n << " " << t << endl;
    int min_c = 2000;
    for(int i = 0 ; i < n ; i++){
        int c,tt; cin >> c >> tt;
//        cout << c << " " << tt << endl;
        if(tt <= t && min_c > c){
            min_c = c;
        }
    }

    if(min_c ==  2000){
        cout << "TLE" << endl;
    }else{
        cout << min_c << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:14: error: 'cin' was not declared in this scope
    2 |     int n,t; cin >> n >> t;
      |              ^~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << "TLE" << endl;
      |         ^~~~
a.cc:14:26: error: 'endl' was not declared in this scope
   14 |         cout << "TLE" << endl;
      |                          ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout << min_c << endl;
      |         ^~~~
a.cc:16:26: error: 'endl' was not declared in this scope
   16 |         cout << min_c << endl;
      |                          ^~~~
Language: C++

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

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_begin(), filtered_c.end()) << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:26: error: 'filtered_begin' was not declared in this scope; did you mean 'filtered_c'?
   23 |     cout << *min_element(filtered_begin(), filtered_c.end()) << endl;
      |                          ^~~~~~~~~~~~~~
      |                          filtered_c
Language: C++

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

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.pushback(c[i]);
    }
  }
  if(filtered_size() = 0){
    cout << "TLE" << endl;
  }
  else {
    cout << *min_element(filtered_begin(), filtered_c.end()) << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: 'class std::vector<int>' has no member named 'pushback'; did you mean 'push_back'?
   16 |       filtered_c.pushback(c[i]);
      |                  ^~~~~~~~
      |                  push_back
a.cc:19:6: error: 'filtered_size' was not declared in this scope; did you mean 'filtered_c'?
   19 |   if(filtered_size() = 0){
      |      ^~~~~~~~~~~~~
      |      filtered_c
a.cc:23:26: error: 'filtered_begin' was not declared in this scope; did you mean 'filtered_c'?
   23 |     cout << *min_element(filtered_begin(), filtered_c.end()) << endl;
      |                          ^~~~~~~~~~~~~~
      |                          filtered_c
Language: C

#include <stdio.h>
int main(){
  int N,T;
  scanf("%d %d",&N,&T);
  int arr[N];
  int a,b;
  for(int i=0;i<N;i++){
    scanf("%d %d",&a,&b);
    if(b<=T){
      arr[i]=a;
    }
    else{
      arr[i]=1001;
    }
  }
  
  int min=1001;
  for(int i=0;i<N;i++){
    if(arr[i]<min){
      min=arr[i];
    }
  }
  if(min<1001){
    printf("%d",min);
  }
  else{
    printf("TLE")
  }
}

Compiler output:
main.c: In function 'main':
main.c:27:18: error: expected ';' before '}' token
   27 |     printf("TLE")
      |                  ^
      |                  ;
   28 |   }
      |   ~
Language: C

#include <stdio.h>
int main(){
  int N,T;
  scanf("%d %d",&N,&T);
  int arr[N];
  int a,b;
  for(int i=0;i<N;i++){
    scanf("%d %d",&a,&b);
    if(b<=T){
      arr[i]=a;
    }
    else{
      arr[i]=1001;
    }
  }
  
  int min=1001;
  for(int i=0;i<N;i++){
    if(arr[i]<min){
      min=arr[i]
    }
  }
  if(min<1001){
    printf("%d",min);
  }
  else{
    printf("TLE")
  }
}

Compiler output:
main.c: In function 'main':
main.c:20:17: error: expected ';' before '}' token
   20 |       min=arr[i]
      |                 ^
      |                 ;
   21 |     }
      |     ~            
main.c:27:18: error: expected ';' before '}' token
   27 |     printf("TLE")
      |                  ^
      |                  ;
   28 |   }
      |   ~
Language: C++

/*
ID: leihaow1
TASK: 
LANG: C++              
*/ 
#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int n,m,k,a,b,c[10001];
int main(){
	scanf("%d%d",&n,&m);
	while (n--){
		scanf("%d%d",&a,&b);
		if (b>m) continue;
		else{
			c[++k]=a;
		}
	}
	sort(c+1,c+1+k);
	is (!c[1]) cout<<"TLE";
	else cout<<c[1];
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'is' was not declared in this scope
   21 |         is (!c[1]) cout<<"TLE";
      |         ^~
a.cc:22:9: error: 'else' without a previous 'if'
   22 |         else cout<<c[1];
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
using namespace std;
typedef long long ll;
int INF = (1LL << 30) - 1;
int MOD = 1e9+7;
main(){
    int N,T;
    cin >> N >> T;
    int mini = INF;
    rep(i,0,N){
        int a,b;
        cin >> a >> b;
        if(T >= b)mini = min(mini, a);
    }
    if(mini == INF)cout << "TLE" << endl;
    else cout << a << endl;
}

Compiler output:
a.cc:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    7 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:17:18: error: 'a' was not declared in this scope
   17 |     else cout << a << endl;
      |                  ^
Language: C++

//テスト2
#include <stdio.h>
#include <limits>

int N, T, i, c[100], t[100], C = INT_MAX, Flag;

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

Compiler output:
a.cc:5:34: error: 'INT_MAX' was not declared in this scope
    5 | int N, T, i, c[100], t[100], C = INT_MAX, Flag;
      |                                  ^~~~~~~
a.cc:4:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    3 | #include <limits>
  +++ |+#include <climits>
    4 | 
a.cc: In function 'int main()':
a.cc:13:25: error: 'Flag' was not declared in this scope
   13 |                         Flag = 1;
      |                         ^~~~
a.cc:16:13: error: 'Flag' was not declared in this scope
   16 |         if (Flag)printf("%d", C);
      |             ^~~~
Language: C

#include <stdio.h>

int main()
{
  int a,b,i=0;
  scanf("%d %d",&a,&b);
  int c[a],d[a];
  for(i<=a)
  {
    scanf("%d %d",&c[i],d[i]);
    i++
  }
  


Compiler output:
main.c: In function 'main':
main.c:8:11: error: expected ';' before ')' token
    8 |   for(i<=a)
      |           ^
      |           ;
main.c:8:11: error: expected expression before ')' token
main.c:11:8: error: expected ';' before '}' token
   11 |     i++
      |        ^
      |        ;
   12 |   }
      |   ~     
main.c:12:3: error: expected declaration or statement at end of input
   12 |   }
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i,a,n) for(int i=(a); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it)
#define ALLOF(c) (c).begin(), (c).end()
typedef long long ll;
typedef unsigned long long ull;

static const INF = 1000000;

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

  int ret = INF;
  rep(i,N){
    int c, t;
    cin >> c >> t;
    if(t <= T){
      ret = min(ret, c);
    }
  }

  if(ret == INF){
    cout << "TLE" << endl;
  }else{
    cout << ret << endl;
  }
  
  return 0;
}


Compiler output:
a.cc:10:14: error: 'INF' does not name a type
   10 | static const INF = 1000000;
      |              ^~~
a.cc: In function 'int main()':
a.cc:16:13: error: 'INF' was not declared in this scope
   16 |   int ret = INF;
      |             ^~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 |   if (ans == 1001) ans = "TLE";
      |                          ^~~~~
      |                          |
      |                          const char*
Language: C++

#include <iostream>

using namespace std;

int main()
{
  	int N, T, min_cost = INT_MAX; cin >> N >> T;
  
  	for( int i = 0; i < N; i++ )
    {
      	int c, t; cin >> c >> t;
      
      	if ( t <= T and c < min_cost )
          	min_cost = c;
    }
  
  	if ( min_cost < INT_MAX )
      	cout << min_cost;
  	else
      	cout << "TLE";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:30: error: 'INT_MAX' was not declared in this scope
    7 |         int N, T, min_cost = INT_MAX; cin >> N >> T;
      |                              ^~~~~~~
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 "bits/stdc++.h"
using namespace std;


int main(void) {
	vector<int> c;
	vector<int> t;
	int time, i, k,a,b;
	vector<int> ans;
	
	scanf("%d%d",&n,&time);
	for (i = 0; i<n; ++i) {
		cin >> a; cin >> b;
		if (b <= time) {
			c.push_back(a);
			t.push.back(b);
		}
	}
	k = c.size();
	if (k == 0) {
		printf("TLE\n");
	}

	else {
		sort(c.begin(), c.end());
		printf("%d\n", c[0]);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: 'n' was not declared in this scope
   11 |         scanf("%d%d",&n,&time);
      |                       ^
a.cc:16:27: error: 'class std::vector<int>' has no member named 'push'
   16 |                         t.push.back(b);
      |                           ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int n, t;
  cin >> n >> t;
  int c = numeric_limits<int>::max();
  for (auto i = 0; i < n; i++) {
    int cc, tt;
    cin >> cc >> tt;
    if (tt <= t && cc < c) {
      c = cc;
    }
  }
  cout << (c == numeric_limits<int>::max() ? "TLE" : to_string(c)) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'numeric_limits' was not declared in this scope
    8 |   int c = numeric_limits<int>::max();
      |           ^~~~~~~~~~~~~~
a.cc:8:26: error: expected primary-expression before 'int'
    8 |   int c = numeric_limits<int>::max();
      |                          ^~~
a.cc:16:32: error: expected primary-expression before 'int'
   16 |   cout << (c == numeric_limits<int>::max() ? "TLE" : to_string(c)) << endl;
      |                                ^~~
a.cc:16:32: error: expected ')' before 'int'
   16 |   cout << (c == numeric_limits<int>::max() ? "TLE" : to_string(c)) << endl;
      |           ~                    ^~~
      |                                )
Language: C++

#include＜bits/stdc++.h＞
using namespace std;

int main() {

	int N, T,ans;
	cin >> N >> T;

	int c[100];
	int t[100];
	ans = 10000;

	for (int i = 0; i < N; i++) {

		cin >> c[i] >> t[i];

		if (t[i] < T) {
			ans = min(ans, c[i]);
		}
		
	}
	if (ans == 10000) {
		cout << "TLE" << endl;
	}
	else {
		cout << ans << endl;
	}

		return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #include\U0000ff1cbits
    1 | #include＜bits/stdc++.h＞
      |  ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> N >> T;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include＜bits/stdc++.h＞
a.cc:18:31: error: 'min' was not declared in this scope; did you mean 'main'?
   18 |                         ans = min(ans, c[i]);
      |                               ^~~
      |                               main
a.cc:23:17: error: 'cout' was not declared in this scope
   23 |                 cout << "TLE" << endl;
      |                 ^~~~
a.cc:23:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:34: error: 'endl' was not declared in this scope
   23 |                 cout << "TLE" << endl;
      |                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include＜bits/stdc++.h＞
a.cc:26:17: error: 'cout' was not declared in this scope
   26 |                 cout << ans << endl;
      |                 ^~~~
a.cc:26:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:32: error: 'endl' was not declared in this scope
   26 |                 cout << ans << endl;
      |                                ^~~~
a.cc:26:32: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> N >> T;
      |         ^~~
a.cc:3:16: error: 'N' was not declared in this scope
    3 |         cin >> N >> T;
      |                ^
a.cc:3:21: error: 'T' was not declared in this scope
    3 |         cin >> N >> T;
      |                     ^
a.cc:4:19: error: 'inf' was not declared in this scope; did you mean 'int'?
    4 |         int ans = inf;
      |                   ^~~
      |                   int
a.cc:8:34: error: 'min' was not declared in this scope; did you mean 'main'?
    8 |                 if(t <= T) ans = min(ans, c);
      |                                  ^~~
      |                                  main
a.cc:10:24: error: 'cout' was not declared in this scope
   10 |         if(ans >= inf) cout << "TLE" << endl;
      |                        ^~~~
a.cc:10:41: error: 'endl' was not declared in this scope
   10 |         if(ans >= inf) cout << "TLE" << endl;
      |                                         ^~~~
a.cc:11:14: error: 'cout' was not declared in this scope
   11 |         else cout << ans << endl;
      |              ^~~~
a.cc:11:29: error: 'endl' was not declared in this scope
   11 |         else cout << ans << endl;
      |                             ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
   int n, t;
   int ans = INT_MAX:
   cin >> n >> t;
   for (int i = 0; i < n; i++) {
     int a, b;
     cin >> a >> b;
     if (b <= t) ans = min(ans, a);
   }
   if (ans == INT_MAX) cout << "tle\n";
   else cout << ans << "\n";
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: expected ',' or ';' before ':' token
    5 |    int ans = INT_MAX:
      |                     ^
Language: C++

#include <iostream>
#include <string>
#include <stdio.h>
#include <algorithm>
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 MAX = 1 << 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;
}
else{
    cout << "TLE" << endl;
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'vector' was not declared in this scope
   10 |     vector<int> c(N);
      |     ^~~~~~
a.cc:5:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    4 | #include <algorithm>
  +++ |+#include <vector>
    5 | using namespace std;
a.cc:10:12: error: expected primary-expression before 'int'
   10 |     vector<int> c(N);
      |            ^~~
a.cc:11:12: error: expected primary-expression before 'int'
   11 |     vector<int> t(N);
      |            ^~~
a.cc:13:16: error: 'c' was not declared in this scope
   13 |         cin >> c[i] >> t[i];
      |                ^
a.cc:13:24: error: 't' was not declared in this scope
   13 |         cin >> c[i] >> t[i];
      |                        ^
a.cc:18:8: error: 't' was not declared in this scope
   18 |     if(t[i] <= T){
      |        ^
a.cc:19:24: error: 'c' was not declared in this scope
   19 |         ans = min(ans, c[i])
      |                        ^
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int main(){
	int N,T;
	int ci[1000],ti[1000];
	cin >> N >> T;
	for(int i=0;i<N;++i){ 
		cin >> ci[i] >> ti[i]; 
	}
	int ans=2000;
	for(int i=0;i<N;++i){
	    if(ans>ci[i]&&ti[i]<T)
			ans=ci[i]
	}
	if(ans==2000) cout << "TLE" <<endl;
	else cout << ans <<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:34: error: expected ';' before '}' token
   16 |                         ans=ci[i]
      |                                  ^
      |                                  ;
   17 |         }
      |         ~
Language: C++

#include <cstdio>
#include <climits>

int n,T,x,y,ans;

int main()
{
	scanf("%d%d",&n,&T);
	ans = INT_MAX;
	for (int i = 1 ; i <= n ; i++) 
	{
		scanf("%d%d",&x,&y);
		if (y <= T) ans = min(ans,x);
	}
	if (ans == INT_MAX) printf("TLE\n");
	else printf("%d\n",ans);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:35: error: 'min' was not declared in this scope; did you mean 'main'?
   13 |                 if (y <= T) ans = min(ans,x);
      |                                   ^~~
      |                                   main
Language: C++

#include<iostream>
using namespace std;

int N;
int T;

int mixT=1001;
int minc=1001;

int main(){
    cin >> N >> T;
    int c[N][2];
    for(int i=0;i<N;i++){
        for(int j=0;j<2;j++){
            cin >> c[i][j];
            if(j == 1){if(c[i][j]<minT) minT=c[i][j];}
            if(c[i][j]<minc) minc=c[i][j];
        }
    }
    if(minT > T) cout<<"TLE"<<endl;
    else cout<<minc<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:35: error: 'minT' was not declared in this scope; did you mean 'mixT'?
   16 |             if(j == 1){if(c[i][j]<minT) minT=c[i][j];}
      |                                   ^~~~
      |                                   mixT
a.cc:20:8: error: 'minT' was not declared in this scope; did you mean 'mixT'?
   20 |     if(minT > T) cout<<"TLE"<<endl;
      |        ^~~~
      |        mixT
Language: C++

#include<iostream>
using namespace std;

int N;
int T;

int mixT=1001;
int minc=1001

int main(){
    cin >> N >> T;
    int c[N][2];
    for(int i=0;i<N;i++){
        for(int j=0;j<2;j++){
            cin >> c[i][j];
            if(j == 1){if(c[i][j]<minT) minT=c[i][j];}
            if(c[i][j]<minc) minc=c[i][j];
        }
    }
    if(minT > T) cout<<"TLE"<<endl;
    else cout<<minc<<endl;
}


Compiler output:
a.cc:10:1: error: expected ',' or ';' before 'int'
   10 | int main(){
      | ^~~
Language: C++

#include<iostream>
using namespace std;

int N;
int T;

int c[N][2];

int mixT=1001;
int minc=1001

int main(){
    cin >> N >> T;
    for(int i=0;i<N;i++){
        for(int j=0;j<2;j++){
            cin >> c[i][j];
            if(j == 1){if(c[i][j]<minT) minT=c[i][j];}
            if(c[i][j]<minc) minc=c[i][j];
        }
    }
    if(minT > T) cout<<"TLE"<<endl;
    else cout<<minc<<endl;
}


Compiler output:
a.cc:7:7: error: size of array 'c' is not an integral constant-expression
    7 | int c[N][2];
      |       ^
a.cc:12:1: error: expected ',' or ';' before 'int'
   12 | int main(){
      | ^~~
Language: C++

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

int N;
int T;

int c[N][2];

int mixT=1001;
int minc=1001

int main(){
    cin >> N >> T;
    for(int i=0;i<N;i++){
        for(int j=0;j<2;j++){
            cin >> c[i][j];
            if(j == 1){if(c[i][j]<minT) minT=c[i][j];}
            if(c[i][j]<minc) minc=c[i][j];
        }
    }
    if(minT > T) cout<<"TLE"<<endl;
    else cout<<minc<<endl;
}


Compiler output:
a.cc:2:9: fatal error: math: No such file or directory
    2 | #include<math>
      |         ^~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

/**
 *
 * @author Ivan Eka
 */
public class TimeLimitExceeded {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        boolean check = true;
        int count = 0;
        int c = 0, t;
        int N = sc.nextInt();
        int T = sc.nextInt();
        int[][] Route = new int[N][2];
        for (int c1 = 0; c1 < N; c1++) {
            Route[c1][0] = sc.nextInt();
            Route[c1][1] = sc.nextInt();
            if (Route[c1][1] == T) {
                c = Route[c1][0];
            } else if (Route[c1][1] > T) {
                count++;
            }
        }
        if (count == N) {
            System.out.println("TLE");
        } else if (c != 0) {
            System.out.println(c);
        } else {
            t = T;
            for (int c2 = 0; c2 < N; c2++) {
                if (t > Route[c2][1]) {
                    c = Route[c2][0];
                    t = Route[c2][1];
                } else {
                    count++;
                }
            }
            System.out.println(c);
        }
    }
}

Compiler output:
Main.java:7: error: class TimeLimitExceeded is public, should be declared in a file named TimeLimitExceeded.java
public class TimeLimitExceeded {
       ^
1 error
Language: Java

    public void solve(String[] args) {

        MyScanner scanner = new MyScanner();

        int n = scanner.nextInt();

        int t = scanner.nextInt();

        int cst = 0;

        int tmp1=0;

        int tmp2=0;

        for (int i = 0;i<n;i++) {



        	tmp1 = scanner.nextInt();

        	tmp2 = scanner.nextInt();

        	if(tmp2<=t) {

        		if(cst==0) {

        			cst=tmp1;

        		}else {

        			if(tmp1<=cst) {

        				cst=tmp1;

        			}

        		}

        	}

        }

        if(cst!=0) {

        	System.out.println(cst);

        }else {

        	System.out.println("TLE");

        }



    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public void solve(String[] args) {
           ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		// TODO Auto-generated method stub
		 Scanner sc = new Scanner(System.in);
	        int n = sc.nextInt();
	        int t = sc.nextInt();
	        int ce = 0;
	        int ci = 0;
	        
	        for(int a=1; a>=n; a++) {
	        	int c = 0;
	        	int ti = 0;
	        	c = sc.nextInt();
	        	ce = c;
	        	ti = sc.nextInt();
	        	if(ti<=t) {
	        		if(true) {
	        			ce = c;
	        			System.out.println(ce);
                      break:
	        		}
	        	}else {

	        		System.out.println("TLE");
	        	}
        }
	}

}

Compiler output:
Main.java:24: error: ';' expected
                      break:
                           ^
1 error
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		int n,T,i,c,t,min,temp;
        i = 0;
        temp = 1001;
		Scanner sc = new Scanner(System.in);

		n = sc.nextInt();
		T = sc.nextInt();

		while(i < n){
			t = sc.nextInt();
			c = sc.nextInt();
			if(t <= T && c < temp){
                temp = c;
			}
            i++;
		}
    min = c;
    System.out.println(min);
    
    sc.close();
	return;
	}
}

Compiler output:
Main.java:20: error: variable c might not have been initialized
    min = c;
          ^
1 error
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		int n,T,i,c,t,min,temp;
        i = 0;
        temp = 1001;
		Scanner sc = new Scanner(System.in);

		n = sc.nextInt();
		T = sc.nextInt();

		while(i < n){
			t = sc.nextInt();
			c = sc.nextINt();
			if(t <= T && c < temp){
                temp = c;
			}
            i++;
		}
    min = c;
    System.out.println(min);
    
    sc.close();
	return;
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
			c = sc.nextINt();
			      ^
  symbol:   method nextINt()
  location: variable sc of type Scanner
1 error
Language: C++

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

int main()
{
	ios::sync_with_stdio(false);
	int num, time, i, rec;
	cin >> num >> time;
	int c[num], t[num];
	for (i = 0; i < num; i++)cin >> c[i] >> t[i];
	rec = 10000;
	for (i = 0; i < num; i++) {
		if (rec>c[i]&&t[i]<time=) {
		rec = c[i];
		}
	}
	if (rec == 10000) cout << "TLE";
	else cout << rec;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:41: error: expected primary-expression before ')' token
   14 |                 if (rec>c[i]&&t[i]<time=) {
      |                                         ^
Language: C++

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

int main() {

	int N, T;
	cin >> N >> T;

	int c[100];
	int t[100];

	int ans[100];
	int j=0;

	cin >> c[0] >> t[0];

	for (int i = 1; i < N; i++) {

		cin >> c[i] >> t[i];

		if (t[i] < T) {
		    ans[j]=c[i];
			j++;
		}
	}

	for (int i = 1; i < N; i++) {
		if (ans[i - 1] < ans[i]) {
			ans[i] = ans[i - 1];
		}

		cout << ans[N] << endl;

		return 0;
	}

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


import java.util.*;
public class Main {
	public static void main(String[] args) {
		        Scanner sc = new Scanner(System.in);
		        List<Object> list = new ArrayList<>();
		        int finish =0;
				int N = sc.nextInt();
				int T = sc.nextInt();
		        while( sc.next() !=null) {
		        	    Map aa = new HashMap();
				    // 整数の入力
		        	    int i = 0;
				    int c = sc.nextInt();
					int t = sc.nextInt();
					aa.put(c,t);
					list.add(aa);
					i++;
					finish =i;

		        }

		        String s = "TLE";
		        for(int i = 1; i<=finish;i++) {
		        }
		        System.out.print(s);

	}

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

#include <bits/stdc++.h>
 
struct time {
    int cost;
    int time;
    int a;
};
 
int main () {
    int n, t;
    int count = 0;
    std::cin >> n >> t;
    struct time a[n];
    for (int i = 0; i < n; ++i) {
        std::cin >> a[i].cost >> a[i].time ;
        if (a[i].time > t) {
            a[i].a = 1;
        }
        else {
            a[i].a = 0;
            ++count;
        }
    }
    
    int b[count];
    int j = 0;
    for (int i = 0; i < n ; ++i) {
        if (a[i].a == 0) {
            b[j] = a[i].time;
            ++j;
        }
        else {
        }
    }
 　　sort(b, b + count);
    std::cout << b[0] << std::endl;
}


Compiler output:
a.cc:35:2: error: extended character 　 is not valid in an identifier
   35 |  　　sort(b, b + count);
      |  ^
a.cc:35:2: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:35:2: error: '\U00003000\U00003000sort' was not declared in this scope
   35 |  　　sort(b, b + count);
      |  ^~~~~~~~
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		int n,T,i,c,t,min;
        i = 0;
		Scanner sc = new Scanner(System.in);

		n = sc.nextInt();
		T = sc.nextInt();

		while(i < n){
			t = sc.nextInt();
			c = sc.nextINt();
			if(t <= T){
				min = c;
			}
            i++;
		}
      System.out.println(min);
		return;
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
			c = sc.nextINt();
			      ^
  symbol:   method nextINt()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		int n,T,C,i,c,t,min;
        i = 0;
		Scanner sc = new Scanner(System.in);

		n = sc.nextInt();
		T = sc.nextInt();

		while(i < n){
			t = sc.nextInt();
			c = sc.nextINt();
			if(t <= T){
				min = c;
			}
            i++;
		}
		return;
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
			c = sc.nextINt();
			      ^
  symbol:   method nextINt()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		int n,T,C,i,c,t,min;
		Scanner sc = new Scanner(System.in);

		n = sc.nextInt();
		T = sc.nextInt();

		while(i < n){
			t = sc.nextInt();
			c = sc.nextINt();
			if(t <= T){
				min = c;
			}
		}
		return;
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
			c = sc.nextINt();
			      ^
  symbol:   method nextINt()
  location: variable sc of type Scanner
1 error
Language: C++

#include <bits/stdc++.h>

struct time {
    int cost;
    int time;
    int a;
}

int main () {
    int n, t;
    int count = 0;
    std::cin >> n >> t;
    struct time a[n];
    for (int i = 0; i < n; ++i) {
        std::cin >> a[i].cost >> a[i].time ;
        if (a[i].time > t) {
            a[i].a = 1;
        }
        else {
            a[i].a = 0;
            ++count;
        }
    }
    
    vector b[count];
    int j = 0;
    for (int i = 0; i < n ; ++i) {
        if (a[i].a == 0) {
            b[j] = a[i].time;
            ++j;
        }
        else {
        }
    }
    sort (b.begin(), b.end());
    std::cout << b[0] << std::endl;
}


Compiler output:
a.cc:7:2: error: expected ';' after struct definition
    7 | }
      |  ^
      |  ;
a.cc: In function 'int main()':
a.cc:25:5: error: 'vector' was not declared in this scope
   25 |     vector b[count];
      |     ^~~~~~
a.cc:25:5: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:29:13: error: 'b' was not declared in this scope
   29 |             b[j] = a[i].time;
      |             ^
a.cc:35:11: error: 'b' was not declared in this scope
   35 |     sort (b.begin(), b.end());
      |           ^
a.cc:35:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   35 |     sort (b.begin(), b.end());
      |     ^~~~
      |     std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
Language: C++

#include <bits/stdc++.h>

struct time {
    int cost;
    int time;
    int a;
}

int main () {
    int n, t;
    int count = 0;
    std::cin >> n >> t;
    struct time a[n];
    for (int i = 0; i < n; ++i) {
        std::cin >> a[i].cost >> a[i].time ;
        if (a[i].time > t) {
            a[i].a = 1;
        }
        else {
            a[i].a = 0;
            ++count;
        }
    }
    
    std::vector b[count];
    int j = 0;
    for (int i = 0; i < n ; ++i) {
        if (a[i].a == 0) {
            b[j] = a[i].time;
            ++j;
        }
        else {
        }
    }
    sort (b.begin(), b.end());
    std::cout << b[0] << std::endl;
}


Compiler output:
a.cc:7:2: error: expected ';' after struct definition
    7 | }
      |  ^
      |  ;
a.cc: In function 'int main()':
a.cc:25:5: error: missing template argument list after 'std::vector'; for deduction, template placeholder must be followed by a simple declarator-id
   25 |     std::vector b[count];
      |     ^~~
      |        <>
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:428:11: note: 'template<class _Tp, class _Alloc> class std::vector' declared here
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
a.cc:29:13: error: 'b' was not declared in this scope
   29 |             b[j] = a[i].time;
      |             ^
a.cc:35:11: error: 'b' was not declared in this scope
   35 |     sort (b.begin(), b.end());
      |           ^
a.cc:35:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   35 |     sort (b.begin(), b.end());
      |     ^~~~
      |     std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class Maint {

	public static void main(String[] args) throws IOException{
		// TODO Auto-generated method stub
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		
		String s = reader.readLine();
		String[] inp = s.split(" ");
		int N,T;
		
		N=Integer.parseInt(inp[0]);
		T=Integer.parseInt(inp[1]);
			
		
		//ArrayList<Integer> arr = new ArrayList<Integer>();
		//HashMap<Integer,Integer> hm=new HashMap<Integer,Integer>();
		int t=N;
		
		int[] carr = new int[N];
		int[] t1arr = new int[N];
		int i=0;
		
		while(t-->0)
		{
			String p = reader.readLine();
			String[] par = p.split(" ");
			int c,t1;
			
			c=Integer.parseInt(par[0]);
			t1=Integer.parseInt(par[1]);
			
			carr[i]=c;
			t1arr[i]=t1;
			i++;
						
		}
	
		int max = 0;
		
		for(int i1 = 0; i1 < carr.length; i1++)
        {
            if(max < carr[i1])
            {
                max = carr[i1];
            }
        }
		
		int ans=0;
		int prevcost=max;
		
		
		for (int j = 0; j < t1arr.length; j++) 
		{
			int cost = carr[j];
			int time = t1arr[j];
			
			if(time<=T)
			{
				if(cost<prevcost)
				{
					ans=cost;
					prevcost=cost;
				}
			}
		}		
		
		if(prevcost==max)
			System.out.println("TLE");
		else
			System.out.println(ans);
		

	}

}


Compiler output:
Main.java:6: error: class Maint is public, should be declared in a file named Maint.java
public class Maint {
       ^
1 error
Language: C++

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

int main(void){
int n,t;
cin >> n >> t;
int min = 1001;
for(int i=0;i<n ;i++){
int ci,ti;
cin >> ci >>ti;
if(ci < min && ti <= t){
min = ci;
}
}
cout << ci << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'ci' was not declared in this scope
   16 | cout << ci << endl;
      |         ^~
Language: C

#include <stdio.h>

int main(void)
{
	int N, T, i, ans = 1001;
	int c[100], t[100];
	scanf("%d%d", &N, &T);
	for (int j = 0; j < N * 2; j++) {
		if (j % 2 == 0)scanf("%d", &c[j / 2]);
		else scanf_s("%d", &t[j / 2]);
	}
	for (i = 0; i < N; i++)
	{
		if (t[i] < T) {
			if (ans < c[i])ans = c[i];
		}
	}
	if (ans < 1001)printf("%d", ans);
	else printf("TLE");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:22: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 |                 else scanf_s("%d", &t[j / 2]);
      |                      ^~~~~~~
      |                      scanf
Language: C++

#include <bits/stdc++.h>

/*
#include <boost/functional/hash.hpp>
#include <boost/multiprecision/cpp_int.hpp>
typedef boost::multiprecision::cpp_int mlint;
*/

#define debug 0
#define fcout(d) cout << fixed << setprecision(d)
#define urep(i,s,t) for(int i = (int)(s); i <= (int)(t); ++i)
#define drep(i,s,t) for(int i = (int)(s); i >= (int)(t); --i)
#define rep(i,n) urep(i,0,(n) - 1)
#define rep1(i,n) urep(i,1,(n))
#define rrep(i,n) drep(i,(n) - 1,0)
#define all(v) begin(v),end(v)
#define rall(v) rbegin(v),rend(v)
#define vct vector
#define prique priority_queue
#define l_bnd lower_bound
#define u_bnd upper_bound
#define rsz resize
#define era erase
#define emp emplace
#define emf emplace_front
#define emb emplace_back
#define pof pop_front
#define pob pop_back
#define mkp make_pair
#define mkt make_tuple
#define fir first
#define sec second
#define odd(x) ((x) & 1)
#define even(x) (~(x) & 1)

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef double db;
typedef vct<vct<ll>> mat;
typedef pair<int,int> pii;
typedef tuple<int,int,int> tiii;
typedef map<int,int> mpii;
typedef unordered_map<int,int> umpii;

const int dir[8][2] = { {1,0},{0,1},{-1,0},{0,-1},{1,1},{-1,1},{-1,-1},{1,-1} };
const ll inf32 = (1 << 30) - 1;
const ll inf64 = (1LL << 62) - 1;
const ll mod = 1e9 + 7;
const db eps = 1e-9;

template <class T, class U> T qceil(T x, U y) { return x > 0 ? (x - 1) / y + 1 : x / y; }
template <class T, class U> bool parity(T x, U y) { return odd(x) ^ even(y); }
template <class T, class U> bool chmax(T &m, U x) { if(m < x) { m = x; return 1; } return 0; }
template <class T, class U> bool chmin(T &m, U x) { if(m > x) { m = x; return 1; } return 0; }
template <class T> bool cmprs(T &v) {
    T tmp = v;
    sort(all(tmp));
    tmp.erase(unique(all(tmp)),end(tmp));
    for(auto it = begin(v); it != end(v); ++it) *it = l_bnd(all(tmp),*it) - begin(tmp) + 1;
    return v.size() > tmp.size();
}

template <class T> void esc(T ret) {
    cout << ret << endl;
    exit(0);
}

int n,x[101],y[101],h[101];

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int tt;
    cin>>n>>tt;
    int c[101],t[101];
    rep(i,n) cin>>c[i]>>t[i];
    ll cost=inf64;
    rep(i,n){
        if(tt>=t[i]) chmin(cost,c[i]);
    }
    esc(cost<inf64?cost:"TLE");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:84:19: error: operands to '?:' have different types 'll' {aka 'long long int'} and 'const char*'
   84 |     esc(cost<inf64?cost:"TLE");
      |         ~~~~~~~~~~^~~~~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <cstdbool>

int main( void )
{
	//std::cin.tie( 0 );
	//ios::sync_with_stdio( false );

	std::string str;

	std::size_t N, T;
	std::vector<std::size_t> c, t;
	std::size_t count = 0;

	if( std::getline(std::cin, str) ){
		std::istringstream ss( str );
		ss >> N >> T;
	}

	for( int i = 0; i < N; i++ ){
		std::getline( std::cin, str );
		std::istringstream ss( str );
		size_t c_val, t_val;
		ss >> c_val >> t_val;

		c.push_back( c_val );
		t.push_back( t_val );
	}

	std::size_t min = *std::max_element( c.begin(), c.end() );
	bool   tle_flag = true;

	for( int i = 1; i < N; i++ ){
		if( t[ i ] <= T ){
			tle_flag = false;

			if( c[ i ] < min ){
				min = c[ i ];
			}
		}
	}

	if( tle_flag ){
		std::cout << "TLE" << std::endl;
	}
	else{
		std::cout << min << std::endl;
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:33: error: 'max_element' is not a member of 'std'; did you mean 'tuple_element'?
   33 |         std::size_t min = *std::max_element( c.begin(), c.end() );
      |                                 ^~~~~~~~~~~
      |                                 tuple_element
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,t;
  cin>>n>>t;
  int c[1010],a[1010],ans=1010;
  for(int i=0;i<n;i++){
    cin>>c[i]>>a[i];
    if(a[i]<=t){
      if(c[i]<ans)ans=c[i]
    }
  }
  if(ans==0)cout<<"TLE"<<endl;
  else cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before '}' token
   10 |       if(c[i]<ans)ans=c[i]
      |                           ^
      |                           ;
   11 |     }
      |     ~