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

#include <stdio.h>
typedef struct return_home{
	int cost;
	int time;
}ret;

int main(void) {
	int n, t;
	ret ret[100], ans;
	ret ans = {0, 0};

	scanf("%d %d", &n, &t);
	for (int i = 0; i < n; i++) {
		scanf("%d %d", &ret[i].cost, &ret[i].time);
		if (t >= ret[i].time) {
			if (ans.cost == 0) {
				ans = ret[i];
			}
			else {
				if (ret[i].cost < ans.cost) {
					ans = ret[i];
				}
			}
		}
	}
	if (ans.cost != 0) {
		printf("%d", ans.cost);
	}
	else {
		printf("TLE");
	}
  	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected ';' before 'ans'
   10 |         ret ans = {0, 0};
      |            ^~~~
      |            ;
Language: Java

import java.util.*;
import java.io.*;

class Main
{
	public static void main( String[] args )
	{
		Main m = new Main();
		m.B();
	}

	void B()
	{
		Scanner in = new Scanner(System.in);
		int n = in.nextInt(), t = in.nextInt(), inf = Integer.MAX_VALUE;
		int cost = inf;
		for(int i = 0; i < n; i++)
		{
			int ci = in.nextInt(), ti = in.nextInt();
			if(ti <= t)
			{
				cost = Math.min(cost, ci);
			}
		}
		if(cost == inf) System.out.println("TLE");
		eles System.out.printf("%d\n", cost);
	}

	void A()
	{
		// Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		if(n == 1) System.out.println("Hello World");
		if(n == 2)
		{
			int a = in.nextInt(), b = in.nextInt();
			System.out.println(a + b);
		}
	}

	// int numWays(int k)
	// {
	// 	if(k < 3) return 1;
		
	// }


	// static int B(String str)
	// {
	// 	int cur = Integer.valueOf(str);
	// 	for(int i = 111; i <= 999; i += 111)
	// 		if(cur <= i) return i;
	// 	return cur;	// should not execute this line
	// }

	// static String update(String str)
	// {
	// 	char[] ch = str.toCharArray();
	// 	for(int i = 0; i < 3; i++)
	// 	{
	// 		if(ch[i] == '1') ch[i] = '9';
	// 		else ch[i] = '1';
	// 	}
	// 	return String.valueOf(ch);
	// }

}

Compiler output:
Main.java:26: error: ';' expected
		eles System.out.printf("%d\n", cost);
		           ^
1 error
Language: Java

import java.util.*;
import java.io.*;

class Main
{
	public static void main( String[] args )
	{
		Main m = new Main();
		m.B();
	}

	Scanner in = new Scanner(System.in);

	void B()
	{
		int n = in.nextInt(), t = in.nextInt(), inf = Integer.MAX_VALUE;
		int cost = inf;
		for(int i = 0; i < n; i++)
		{
			int ci = in.nextInt(), ti = in.nextInt();
			if(ti <= t)
			{
				cost = Math.min(cost, ci);
			}
		}
		if(cost == inf) System.out.println("TLE");
		eles System.out.printf("%d\n", cost);
	}

	void A()
	{
		// Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		if(n == 1) System.out.println("Hello World");
		if(n == 2)
		{
			int a = in.nextInt(), b = in.nextInt();
			System.out.println(a + b);
		}
	}

	// int numWays(int k)
	// {
	// 	if(k < 3) return 1;
		
	// }


	// static int B(String str)
	// {
	// 	int cur = Integer.valueOf(str);
	// 	for(int i = 111; i <= 999; i += 111)
	// 		if(cur <= i) return i;
	// 	return cur;	// should not execute this line
	// }

	// static String update(String str)
	// {
	// 	char[] ch = str.toCharArray();
	// 	for(int i = 0; i < 3; i++)
	// 	{
	// 		if(ch[i] == '1') ch[i] = '9';
	// 		else ch[i] = '1';
	// 	}
	// 	return String.valueOf(ch);
	// }

}

Compiler output:
Main.java:27: error: ';' expected
		eles System.out.printf("%d\n", cost);
		           ^
1 error
Language: C

#include <stdio.h>
typedef struct return_home{
	int cost;
	int time;
}ret;

int main(void) {
	int n, t;
	ret ret[100], ans;
	ans = {0, 0};

	scanf("%d %d", &n, &t);
	for (int i = 0; i < n; i++) {
		scanf("%d %d", &ret[i].cost, &ret[i].time);
		if (t >= ret[i].time) {
			if (ans.cost == 0) {
				ans = ret[i];
			}
			else {
				if (ret[i].cost < ans.cost) {
					ans = ret[i];
				}
			}
		}
	}
	if (ans.cost != 0) {
		printf("%d", ans.cost);
	}
	else {
		printf("TLE");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:15: error: expected expression before '{' token
   10 |         ans = {0, 0};
      |               ^
Language: Java

import java.util.*;
import java.io.*;

class Main
{
	public static void main( String[] args )
	{
		Main m = new Main();
		m.A();
	}

	Scanner in = new Scanner(System.in);

	void B()
	{
		int n = in.nextInt(), t = in.nextInt(), inf = Integer.MAX_VALUE;
		int cost = inf;
		for(int i = 0; i < n; i++)
		{
			int ci = in.nextInt(), ti = in.nextInt();
			if(ti <= t)
			{
				cost = Math.min(cost, ci);
			}
		}
		if(cost == inf) System.out.println("TLE");
		eles System.out.printf("%d\n", cost);
	}

	void A()
	{
		// Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		if(n == 1) System.out.println("Hello World");
		if(n == 2)
		{
			int a = in.nextInt(), b = in.nextInt();
			System.out.println(a + b);
		}
	}

	// int numWays(int k)
	// {
	// 	if(k < 3) return 1;
		
	// }


	// static int B(String str)
	// {
	// 	int cur = Integer.valueOf(str);
	// 	for(int i = 111; i <= 999; i += 111)
	// 		if(cur <= i) return i;
	// 	return cur;	// should not execute this line
	// }

	// static String update(String str)
	// {
	// 	char[] ch = str.toCharArray();
	// 	for(int i = 0; i < 3; i++)
	// 	{
	// 		if(ch[i] == '1') ch[i] = '9';
	// 		else ch[i] = '1';
	// 	}
	// 	return String.valueOf(ch);
	// }

}

Compiler output:
Main.java:27: error: ';' expected
		eles System.out.printf("%d\n", cost);
		           ^
1 error
Language: C

#include <stdio.h>

int main()
{	
	//input
	int N,T;
	scanf("%d %d",&N,&T);
	int c[N];
	int t[N];
	for (int i = 0; i < N; ++i)
	{
		scanf("%d %d",&c[i],&t[i]);
	}
	//main
	int p;
	int q;
	for (int i = 0; i < N-1; ++i)
	{
		for (int j = 0; j < N-1; ++j)
		{
			if(c[j] > c[j+1]){
				p = c[j];
				q = c[j+1];
				c[j] = q;
				c[j+1] = p;
				p = 0;
				q = 0;
			}
		}
		M--;
	}
	int alt = 0;
	for (int i = 0; i < N ; ++i)
	{
		if(t[i] <= T){
			alt = i;
            printf("%d",c[alt]);
			break;
        }
	

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:30:17: error: 'M' undeclared (first use in this function)
   30 |                 M--;
      |                 ^
main.c:30:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:43:1: error: expected declaration or statement at end of input
   43 | }
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d%d", &N, &T);
      |         ^~~~~~~
      |         scanf
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 c1;
    int t1;
    int cmin = 1024;
    for(int i=0; i<n-1; i++){
      c1 = sc.nextInt();
      t1 = sc.nextInt();
      if(t1 <= time){
        if(c1 < cmin)
          cmin = c1;
      }
    }
    if(cmin == 1024)
      System.out.println("TLE");
    else
      System.out.println(cmin);
  }
}

Compiler output:
Main.java:13: error: cannot find symbol
      if(t1 <= time){
               ^
  symbol:   variable time
  location: class Main
1 error
Language: C++

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

int main(){
    int N, T;
    cin >> N >> T;
    vector<int> ans;
    int num = 0;
    for(int i = 1; i <= N; i++){
        int tmpc, tmpt;
        cin >> tmpc >> tmpt;
        if(tmpt <= T){
            ans.push_back(tmpc);
            num++;
        }
    }
    int min = *min_element(ans.begin(), ans.end());
    if(num != 0) cout << min << endl;
    else cout << "TLE" << endl;
    
    return 0;
}

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

#include <stdio.h>

int main(){

  int N,T;
  scanf("%d %d",&N,&T);
  int cst=0,time=0;
  int min_cst=0;
  scanf("%d %d",&cst,&time);
  for(int i=1;i<N;i++){
    scanf("%d %d",&cst,&time);
    if(time<=T){
    	if(cst < min_cst)min_cst = cst;
    }
  }
  
	if(min_cst==0)print("TLE");
    else{print("%d",min_cst);}
  
	return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: 'print' was not declared in this scope; did you mean 'printf'?
   17 |         if(min_cst==0)print("TLE");
      |                       ^~~~~
      |                       printf
a.cc:18:10: error: 'print' was not declared in this scope; did you mean 'printf'?
   18 |     else{print("%d",min_cst);}
      |          ^~~~~
      |          printf
Language: C

#include <stdio.h>
int main ()
{
  int N, T, c[100], t[100], mawa, rep1, rep2, resultc;
  scanf ("%d %d", &N, &T);
  
  for (mawa==0; mawa==99, mawa++)
  {
    c[mawa]=1001;
    t[mawa]=1001;
  }
  
  
  for (rep1==0; rep1<=N-1; rep1++)
  {
    scanf ("%d %d", &c[rep1], &t[rep1]);
  }
  
  resultc = 1001;
  
  for (rep2==0; rep2<=N-1; rep2++)
  {
    if (t[rep2]<=T && resultc > c[rep2])
    {
      resultc = c[rep2];
    }
  }
  
  if (resultc == 1001)
  {
    printf("TLE");
  }
  
  else
  {
    printf("%d", resultc);
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:33: error: expected ';' before ')' token
    7 |   for (mawa==0; mawa==99, mawa++)
      |                                 ^
      |                                 ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,t;
	cin>>n>>t;
	int a[n-1],b[n-1];
	for(int i=0;i<n;i++)
	{
		cin>>a[i]>>b[i];
	}
	for(int g=0;g<n;g++)
	{
		if(b[g]<t)
		{
			break;
		}
	}
	for(int i=g;i<n;i++)
	{
		if(b[i]<t)
		{
			if(a[i]<ans)
			{
				ans=a[i];
			}
		}
	}
	if(ans==0)
	{
		cout<<"TLE";
	}
	else
	{
		cout<<ans;
	}
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: 'g' was not declared in this scope
   19 |         for(int i=g;i<n;i++)
      |                   ^
a.cc:23:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |                         if(a[i]<ans)
      |                                 ^~~
      |                                 abs
a.cc:29:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   29 |         if(ans==0)
      |            ^~~
      |            abs
Language: C++

#include <iostreaam>

using namespace std;

int main()
{
  	int N, T;

	cin >> N >> T;

	int costMin = 1001;
	int timeMin;

	int c, t;

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

		if (c < costMin)
		{
			costMin = c;
			timeMin = t;
		}
	}

	if (timeMin <= T)
	{
		cout << costMin << endl;
	}
	else
	{
		cout << "TLE" << endl;
	}

  return 0;
}

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

// includes {{{
#include<iostream>
#include<iomanip>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#include<deque>
#include<map>
#include<set>
#include<tuple>
#include<cmath>
#include<random>
#include<cassert>
// }}}
// #include<bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {
  std::ios::sync_with_stdio(false), std::cin.tie(0);
  int n,T;
  cin >>n >>T;
  int ans = 1e9;
  for(int i = 0; i < n;i++) {
    cin >> c>>t;
    if(t <= T) ans = min(ans, c);
  }
  cout << ans << endl;
  return 0;
}


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

#include <stdio.h>

int main() {
  int i,n,t,time,cost,min_cost;
  min_cost = 0;
  scanf("%d %d", &n, &t);
  for(i=0;i<n;i++) {
    scanf("%d %d", &cost, &time);
    if(time <= t && (min_cost == 0 || min_cost > cost)) {
	min_cost = cost;
    }
  }
  if(min_cost == 0) {
    printf("TLE");
  }else{
    printf("%d",min_cost);
  }


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

#include <stdio.h>

int main(){

  int N,T;
  scanf("%d %d",&N,&T);
  int cst=0,time=0;
  int min_cst;
  scanf("%d %d",&cst,&time);
  min_cst=cst; 
  for(int i=1;i<N;i++){
    scanf("%d %d",&cst,&time);
    if(time<=T){
    	if(cst < min_cst)min_cst = cst;
    }
  }
	print("%d",min_cst);
	return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'print' was not declared in this scope; did you mean 'printf'?
   17 |         print("%d",min_cst);
      |         ^~~~~
      |         printf
Language: C++

#include <stdio.h>

int main(){

  int N,T;
  scanf("%d %d",&N,&T);
  int cst=0,time=0;
  int min_cst;
  scanf("%d %d",cst,time);
  min_cst=cst; 
  for(int i=1;i<N;i++){
    scanf("%d %d",cst,time);
    if(time<=T){
    	if(cst < min_cst)min_cst = cst;
    }
  }
	print("%d",min_cst);
	return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'print' was not declared in this scope; did you mean 'printf'?
   17 |         print("%d",min_cst);
      |         ^~~~~
      |         printf
Language: C++

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>

using namespace std;

int n, t;
int ans = 199999999;

struct node{
	int ti;
	int ci;
	bool operator < (const node & a) const
	{
		if (a.ti == ti) return ci < a.ci;
		return  ti < a.ti;
	}
}a[3333];

int mian()
{
	cin >>n >> t;
	for (int i = 1; i <= n; ++i) cin >> a[i].ti >> a[i].ci;
	sort(a + 1, a + n + 1);
	for (int i = 1; i <= n; ++i)
	{
		if (a[i].ti > t)  break;
		else ans = min(a[i].ci, ans);
	}
	cout << ans;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
   32 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <stdio.h>

int main(){

  const int N,T;
  
  scanf("%d %d",&N,&T);
  int cst=0,time=0;
  int min_cst;
  scanf("%d %d",cst,time);
  min_cst=cst; 
  for(int i=1;i<N;i++){
    scanf("%d %d",cst,time);
    if(time<=T){
    	if(cst < min_cst)min_cst = cst;
    }
  }
	print("%d",min_cst);
	return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: uninitialized 'const N' [-fpermissive]
    5 |   const int N,T;
      |             ^
a.cc:5:15: error: uninitialized 'const T' [-fpermissive]
    5 |   const int N,T;
      |               ^
a.cc:18:9: error: 'print' was not declared in this scope; did you mean 'printf'?
   18 |         print("%d",min_cst);
      |         ^~~~~
      |         printf
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  int T;
  cin>>T;
  int a[N];
  int b[N];
  int mi = 100000;
  bool t = 0;
  for(int i = 0;<N;i++){
    cin>>a[i]>>b[i];
    if(b[i]<=T){
      mi = min(a[i],mi);
      bool t = 1;
    }
  }
  if(t == 1){
    cout << mi << endl;
  }
  else{
    cout << "TLE" << endl;
  }
  return 0;
}
      
  }
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected primary-expression before '<' token
   12 |   for(int i = 0;<N;i++){
      |                 ^
a.cc: At global scope:
a.cc:28:3: error: expected declaration before '}' token
   28 |   }
      |   ^
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        new InputText();

        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int t = Integer.parseInt(sc.next());

        int[] costAr = new int[n];
        int[] timeAr = new int[n];

        for (int i = 0; i < n; i++) {
            costAr[i] = Integer.parseInt(sc.next());
            timeAr[i] = Integer.parseInt(sc.next());
        }

        int num = 101;
        for (int i = 0; i < n; i++) {
            if (costAr[i] < num && timeAr[i] <= t){
                num = costAr[i];
            }
        }
        if (num == 101){
            System.out.println("TLE");
        }else{
            System.out.println(num);

        }
    }
}


Compiler output:
Main.java:5: error: cannot find symbol
        new InputText();
            ^
  symbol:   class InputText
  location: class Main
1 error
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'N' was not declared in this scope
    7 |   for(int i = 0; i < N; i++){
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'N' was not declared in this scope
    7 |   for(int i = 0; i < N; i++){
      |                      ^
Language: C

#include<stdio.h>
int main() {
  int n,T,c[1000],t[1000],i,j=1001,min,cost=0;
  scanf("%d%d",&c,&T);
  for(i=0;i<n;i++){
    scanf("%d%d",c[i],t[i]);
  }
  for(i=0;i<n;i++){
    if(t[i]<=T) c[i]=1001;
  }
  min=c[0]
  for(i=1;i<n;i++){
    if(min>c[i]){
      min=c[i];
      j=i;
    }
  }
  if(1001-min) printf("%d",j);
  else puts("TLE");
}

Compiler output:
main.c: In function 'main':
main.c:11:11: error: expected ';' before 'for'
   11 |   min=c[0]
      |           ^
      |           ;
   12 |   for(i=1;i<n;i++){
      |   ~~~      
main.c:19:3: error: 'else' without a previous 'if'
   19 |   else puts("TLE");
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
typedef long long ll;
const int INF = 1e9;
const int MOD = 1e9+7;
const ll LINF = 1e18;
using namespace std;

#define dump(x)  cout << #x << " = " << (x) << endl;
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define POSSIBLE(n) cout << ((n) ? "POSSIBLE" : "IMPOSSIBLE"  ) << endl
#define Possible(n) cout << ((n) ? "Possible" : "Impossible"  ) << endl
#define possible(n) cout << ((n) ? "possible" : "impossible"  ) << endl

#define SANKOU(n,a,b) cout << ((n) ? (#a) : (#b) ) << endl

#define FOR(i,a,b) for(ll i=(a);i<(b);++i)
#define REP(i,n) for(ll i=0;i<(n);++i)
#define REPR(i,n) for(ll i=n;i>=0;i--)

#define FOREACH(x,a) for(auto&& (x) : (a) )

#define WFA(d,v) REP(k,v)REP(i,v)REP(j,v)d[i][j]=min(d[i][j],d[i][k]+d[k][j])

#define SCOUT(x) cout<<(x)<<" "
#define ENDL cout<<endl

#define VECCIN(x) for(auto&youso_: (x) )cin>>youso_
#define VECIN2(x,y) REP(i,x.size())cin>>x[i]>>y[i]
#define VECCOUT(x) if(1){for(auto tt=x.begin();tt!=x.end();tt++){if(tt!=x.begin())cout<<" ";cout<<(*tt);}cout<<endl;}

#define ALL(obj) (obj).begin(),(obj).end()

#define EXIST(n,x) (find(ALL(n),x)!=n.end())
#define UNIQUE(obj) sort(ALL( obj )); obj.erase(unique(ALL(obj)),obj.end())
#define EN(x) if(1){cout<<#x<<endl;return 0;}
#define COUT(x) cout<<(x)<<endl
void CINT(){}
template <class Head,class... Tail>
void CINT(Head&& head,Tail&&... tail){
    cin>>head;
    CINT(move(tail)...);
}
#define CIN(...) int __VA_ARGS__;CINT(__VA_ARGS__)
#define LCIN(...) ll __VA_ARGS__;CINT(__VA_ARGS__)
#define SCIN(...) string __VA_ARGS__;CINT(__VA_ARGS__)

template <class T = ll>
T IN(){T x;cin>>x;return (x);}

template <class Head>
void VT(Head head){}
template <class Head,class Seco,class... Tail>
void VT(Head&& head,Seco&& seco,Tail&&... tail){
    seco.resize(head);
    VT(head,move(tail)...);
}
void VT2(){}
template <class Head,class... Tail>
void VT2(Head&& head,Tail&&... tail){
  VECCIN(head);
  VT2(move(tail)...);
}

template <class Head>
void VT3(Head&& head){}
template <class Head,class Seco,class... Tail>
void VT3(Head&& head,Seco&& seco,Tail&&... tail){
  seco[head]=IN();
  VT3(head,move(tail)...);
}

#define VC1(n,...) V __VA_ARGS__;VT(n,__VA_ARGS__);VT2(__VA_ARGS__); //aaabbbccc
#define VC2(n,...) V __VA_ARGS__;VT(n,__VA_ARGS__);REP(i,n)VT3(i,__VA_ARGS__); //abcabcabc

// #include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision; // cpp_int

#define P pair<ll,ll>
#define V vector<ll>
#define M map<ll,ll>
#define S set<ll>

#define pb(a) push_back(a)
#define mp make_pair

int main(){
    CIN(n,t);VC2(n,a,b);
    ll ans = LINF;
    REP(i,n)if(b[i]<=t)ans=min(ans,a[i]);COUT(ans==LINF?ans:"TLE");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:90:56: error: operands to '?:' have different types 'll' {aka 'long long int'} and 'const char*'
   90 |     REP(i,n)if(b[i]<=t)ans=min(ans,a[i]);COUT(ans==LINF?ans:"TLE");
      |                                               ~~~~~~~~~^~~~~~~~~~
a.cc:37:24: note: in definition of macro 'COUT'
   37 | #define COUT(x) cout<<(x)<<endl
      |                        ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%d%d",&N,&T);
      |         ^~~~~~~
      |         scanf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:32: error: expected ';' before ')' token
    7 |   for (rep1==1, rep1<=N, rep1++)
      |                                ^
      |                                ;
main.c:7:32: error: expected expression before ')' token
main.c:14:32: error: expected ';' before ')' token
   14 |   for (rep2==1, rep2<=N, rep2++)
      |                                ^
      |                                ;
main.c:14:32: error: expected expression before ')' token
main.c:18:24: error: expected ';' before '}' token
   18 |       resultc = c[rep2]
      |                        ^
      |                        ;
   19 |     }
      |     ~
Language: C++

#define rep(i, n) for(int i = 0; i < (int)(n); i++) //定番のn回繰り返しを省略
#define SZ(x) ((int)(x).size()) //unsignedのサイズをint型に変換
#include <iostream>
#include <string>
#include <vector>
 
using namespace std;
 
int MAX_N = 300;


//ここから書き始める
int main(int argc, char const *argv[])
{
	int N,T;
	int c[MAX_N],t[MAX_N];


	cin >> N >> T;

	pair<int, int> kouho[N];
	rep(i,N)
	{
		cin >> c[i];
		cin >> t[i];
		kouho[i].first = c[i];
		kouho[i].second = t[i];

	}

	sort(kouho, kouho + N);
	rep(i, N)
	{
		if(kouho[i].second <= T)
		{
			cout << kouho[i].first << endl;
			break;
		}

		if(i == N - 1) cout << "TLE" << endl;
	}



    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:31:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   31 |         sort(kouho, kouho + N);
      |         ^~~~
      |         short
Language: C++

#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<type_traits>
#include<math.h>
using namespace std;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl


int N,T,ans=10000;

int main(){
    cin>>N>>T;
int c[N],t[N];
rep(i,N){
cin>>c[i]>>t[i];
if(t[i]<=T){
ans=min(and,c[i]);
}
}
if(ans==10000){
out("TLE");
}
else{
out(ans);
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: expected identifier before ',' token
   26 | ans=min(and,c[i]);
      |            ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>


int main()
{

	int N,T;

	std::cin >> N >> T;

	int min_C = INT_MAX;

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

		std::cin >> c >> t;

		if (T >= t)
		{
			min_C = std::min(min_C, c);
		}
	}
	
	if (min_C == INT_MAX)
		std::cout << "TLE" << std::endl;
	else
		std::cout << min_C << std::endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: 'INT_MAX' was not declared in this scope
   15 |         int min_C = INT_MAX;
      |                     ^~~~~~~
a.cc:5:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    4 | #include <utility>
  +++ |+#include <climits>
    5 | #include <string>
Language: C++

#include<iostream>
#include <vector>

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

typedef pair<int, int> P;

bool pairCompare(const P &firstElof, const P &secondElof) {
    return firstElof.first < secondElof.first;
}

int main(void) {
    int N, T;
    vector<pair<int, int >> cost;
    cin >> N >> T;
    rep(i, 0, N) {
        P inp;
        cin >> inp.first >> inp.second;
        if (inp.second <= T) {
            cost.push_back(inp);
        }
    }

    if (cost.empty()) {
        cout << "TLE" << endl;
    } else {
        sort(cost.begin(), cost.end(), pairCompare);
        cout << cost.front().first << endl;
    }
}

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

#include<bits/stdc++.h>

using namespace std;

int* bubbleSort(int* c, int len){
  int i,j;
  int tenp;
  for(i=0; i<len; i++){
    for(j=len-1; j>i; j--){
      if(N[j] < c[j-1]){
        temp = c[j];
        c[j] = c[j-1];
        c[j-1] = temp;
      }
    }
  }

  return 0;
}

int main(){
  int n,t;
  cin >> n >> t;
  int c[100];
  int t1[100];
  for(int i=0;i!=n;i++){
    cin >> c[i] >> t1[i];
    if(t1[i]>t){
      i--;
      n--;
    }
  }
  bubbleSort(*c, n);
  cout << c[0] << endl;
}


Compiler output:
a.cc: In function 'int* bubbleSort(int*, int)':
a.cc:10:10: error: 'N' was not declared in this scope
   10 |       if(N[j] < c[j-1]){
      |          ^
a.cc:11:9: error: 'temp' was not declared in this scope; did you mean 'tenp'?
   11 |         temp = c[j];
      |         ^~~~
      |         tenp
a.cc: In function 'int main()':
a.cc:33:14: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   33 |   bubbleSort(*c, n);
      |              ^~
      |              |
      |              int
a.cc:5:22: note:   initializing argument 1 of 'int* bubbleSort(int*, int)'
    5 | int* bubbleSort(int* c, int len){
      |                 ~~~~~^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int* bubbleSort(int* N, int len){
  int i,j;
  int tenp;
  for(i=0; i<len; i++){
    for(j=len-1; j>i; j--){
      if(N[j] < N[j-1]){
        temp = N[j];
        N[j] = N[j-1];
        N[j-1] = temp;
      }
    }
  }

  return 0;
}

int main(){
  int n,t;
  cin >> n >> t;
  int c[100];
  int t1[100];
  for(int i=0;i!=n;i++){
    cin >> c[i] >> t1[i];
    if(t1[i]>t){
      i--;
      n--;
    }
  }
  bubbleSort(*c, n);
  cout << c[0] << endl;
}


Compiler output:
a.cc: In function 'int* bubbleSort(int*, int)':
a.cc:11:9: error: 'temp' was not declared in this scope; did you mean 'tenp'?
   11 |         temp = N[j];
      |         ^~~~
      |         tenp
a.cc: In function 'int main()':
a.cc:33:14: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   33 |   bubbleSort(*c, n);
      |              ^~
      |              |
      |              int
a.cc:5:22: note:   initializing argument 1 of 'int* bubbleSort(int*, int)'
    5 | int* bubbleSort(int* N, int len){
      |                 ~~~~~^
Language: C++

#include <iostream>
using namespace std;
int main() {
	int n, t, i, c[100], k[100], tle[100],check;
	cin >> n >> t; ]check = 1;
	for (i = 1; i <= n; i++) {
		cin >> c[i];
		cin>> k[i];
		if (k[i] > t) tle[i] = 1;
		else tle[i] = 0;
		check = check * tle[i];
	}
	if (check == 1) cout<<'TLE';
	else {
		int min;
		min = 1000;
		for (i = 1; i <= n; i++) {


			if (tle[i] == 0 && c[i] < min) min = c[i];
		}
		cout << min << endl;
	}
		return 0;
	
}

Compiler output:
a.cc:13:31: warning: multi-character character constant [-Wmultichar]
   13 |         if (check == 1) cout<<'TLE';
      |                               ^~~~~
a.cc: In function 'int main()':
a.cc:5:24: error: expected primary-expression before ']' token
    5 |         cin >> n >> t; ]check = 1;
      |                        ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int N, T;
    int time, cost;
    int min_cost = 0;
    map<int, int> costmap;
    cin >> N >> T;
    for(int i = 0; i < N; ++i) {
        cin >> cost >> time;
        costmap[time] = cost;
    }
    for(int i = 0; i < T; ++i) {
        min_cost = min(max_cost, costmap[i]);
    }
    if(min_cost == 0) cout << "TLE" << endl;
    else cout << min_cost << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: 'max_cost' was not declared in this scope; did you mean 'min_cost'?
   17 |         min_cost = min(max_cost, costmap[i]);
      |                        ^~~~~~~~
      |                        min_cost
Language: C++

#include<bits/stdc++.h>

using namespace std;

int* bubbleSort(int* N, int len){
  int i,j;
  int tenp;
  for(i=0; i<len; i++){
    for(j=len-1; j>i; j--){
      if(N[j] < N[j-1]){
        temp = N[j];
        N[j] = N[j-1];
        N[j-1] = temp;
      }
    }
  }

  return N;
}

int main(){
  int n,t;
  cin >> n >> t;
  int c[100];
  int t1[100];
  for(int i=0;i!=n;i++){
    cin >> c[i] >> t1[i];
    if(t1[i]>t){
      i--;
      n--;
    }
  }
  *c=bubbleSort(*c, n);
  cout << c[0] << endl;
}


Compiler output:
a.cc: In function 'int* bubbleSort(int*, int)':
a.cc:11:9: error: 'temp' was not declared in this scope; did you mean 'tenp'?
   11 |         temp = N[j];
      |         ^~~~
      |         tenp
a.cc: In function 'int main()':
a.cc:33:17: error: invalid conversion from 'int' to 'int*' [-fpermissive]
   33 |   *c=bubbleSort(*c, n);
      |                 ^~
      |                 |
      |                 int
a.cc:5:22: note:   initializing argument 1 of 'int* bubbleSort(int*, int)'
    5 | int* bubbleSort(int* N, int len){
      |                 ~~~~~^
a.cc:33:16: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   33 |   *c=bubbleSort(*c, n);
      |      ~~~~~~~~~~^~~~~~~
      |                |
      |                int*
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int n,t;
	cin>>n>>t;
	int a[n+1];
	int check=1;
	int x[n+1];
	int m=5267246;
	int mm=4573
	for(int i=1;i<=n;++i)
	{
		cin>>a[i]>>x[i];
		if(x[i]<=t)
		{
			check=0;
			if(a[i]<m)
			{
				m=a[i];
				mm=i;
			}
		}
	}
	if(check)
	{
		cout<<"TLE";
		return 0;
	}
	cout<<mm;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected ',' or ';' before 'for'
   12 |         for(int i=1;i<=n;++i)
      |         ^~~
a.cc:12:21: error: 'i' was not declared in this scope
   12 |         for(int i=1;i<=n;++i)
      |                     ^
Language: C++

//I Guds namn
#include <algorithm>
#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: redeclaration of 'int t'
   10 |         int ans = 1001, c, t;
      |                            ^
a.cc:9:16: note: 'int t' previously declared here
    9 |         int n, t; cin >> n >> t;
      |                ^
a.cc:14:25: error: 'T' was not declared in this scope
   14 |                 if(t <= T)
      |                         ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int* bubbleSort(int* N, int len){
  int i,j;

  for(i=0; i<len; i++){
    for(j=len-1; j>i; j--){
      if(N[j] < N[j-1]){
        temp = N[j];
        N[j] = N[j-1];
        N[j-1] = temp;
      }
    }
  }

  return N;
}

int main(){
  int n,t;
  cin >> n >> t;
  int c[100];
  int t1[100];
  for(int i=0;i!=n;i++){
    cin >> c[i] >> t1[i];
    if(t1[i]>t){
      i--;
      n--;
    }
  }
  *c=bubbleSort(c[], n);
  cout << c[0] << endl;
}


Compiler output:
a.cc: In function 'int* bubbleSort(int*, int)':
a.cc:11:9: error: 'temp' was not declared in this scope; did you mean 'tm'?
   11 |         temp = N[j];
      |         ^~~~
      |         tm
a.cc: In function 'int main()':
a.cc:33:19: error: expected primary-expression before ']' token
   33 |   *c=bubbleSort(c[], n);
      |                   ^
Language: C++

#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<type_traits>
#include<math.h>
using namespace std;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl


int N,T,ans=10000;

int main(){
    cin>>N>>T;
int c[N],t[N];
rep(i,N){
cin>>c[i]>>t[i];
if(t[i]<=T){
ans=min(and,c[i]);
}
}
if(ans==10000){
out(“TLE”);
}
else{
out(ans);
}
}


Compiler output:
a.cc:30:5: error: extended character “ is not valid in an identifier
   30 | out(“TLE”);
      |     ^
a.cc:30:5: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:26:12: error: expected identifier before ',' token
   26 | ans=min(and,c[i]);
      |            ^
a.cc:30:5: error: '\U0000201cTLE\U0000201d' was not declared in this scope
   30 | out(“TLE”);
      |     ^~~~~
a.cc:15:26: note: in definition of macro 'out'
   15 | #define out(str) cout << str << endl
      |                          ^~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int* bubbleSort(int* N, int len){
  int i,j;

  for(i=0; i<len; i++){
    for(j=len-1; j>i; j--){
      if(N[j] < N[j-1]){
        temp = N[j];
        N[j] = N[j-1];
        N[j-1] = temp;
      }
    }
  }

  return N;
}

int main(){
  int n,t;
  cin >> n >> t;
  int c[100];
  int t1[100];
  for(int i=0;i!=n;i++){
    cin >> c[i] >> t1[i];
    if(t1[i]>t){
      i--;
      n--;
    }
  }
  c[]=bubbleSort(c[],n);
  cout << c[0] << endl;
}


Compiler output:
a.cc: In function 'int* bubbleSort(int*, int)':
a.cc:11:9: error: 'temp' was not declared in this scope; did you mean 'tm'?
   11 |         temp = N[j];
      |         ^~~~
      |         tm
a.cc: In function 'int main()':
a.cc:33:5: error: expected primary-expression before ']' token
   33 |   c[]=bubbleSort(c[],n);
      |     ^
a.cc:33:20: error: expected primary-expression before ']' token
   33 |   c[]=bubbleSort(c[],n);
      |                    ^
Language: C++

#include <cstdio>
#include <algorithm>

using namespace std;
#define LL long long


int main(){
	int n,t;
	scanf("%d%d",&n,&t);
	ans = 1000;
	for(int i = 1;i <= n;++i){
		int ci,ti;
		scanf("%d%d",&ci,&ti);
		if(ti <= t)ans = min(ans,ci);
	}
	printf("%d",ans);
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int t;
	t=1;
	
	//cin >> t;
	while(t--)
	{
		int n;
		int T;
		cin >> n >> T ;
		int i;
		set<int> a;
		
		for(i=0;i<n;i++)
		{
			int c,t;
			if(t>=T)
			{
				
				a.insert(c);
			}
		}
		if(a.size()==0)
		{
			cout << "TLE";
		}
		else
		{
			cout << a[0];
			
		}
		
	}
	return 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:34: error: no match for 'operator[]' (operand types are 'std::set<int>' and 'int')
   34 |                         cout << a[0];
      |                                  ^
Language: C++

#include <iostream>
using namespace std;
int main() {
	int n, t, i, c[100], t[100], tle[100];
	cin >> n >> t;
	for (i = 1; i <= n; i++) {
		cin >> c[i];
		cin>> t[i];
		if (t[i] > t) tle[i] = 1;
		else tle[i] = 0;
	}
	int min;
	min = 1000;
	for (i = 1; i <= n; i++) {


		if (tle[i] == 0 && c[i] < min) min = c[i];
	}
	cout << min<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:30: error: conflicting declaration 'int t [100]'
    4 |         int n, t, i, c[100], t[100], tle[100];
      |                              ^
a.cc:4:16: note: previous declaration as 'int t'
    4 |         int n, t, i, c[100], t[100], tle[100];
      |                ^
a.cc:8:24: error: invalid types 'int[int]' for array subscript
    8 |                 cin>> t[i];
      |                        ^
a.cc:9:22: error: invalid types 'int[int]' for array subscript
    9 |                 if (t[i] > t) tle[i] = 1;
      |                      ^
Language: C++

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

int main(){
    int N, T;
    int c, t;
    vector<int> vc;
    vector<int> vt;
    int ans = INT_MAX;

    //input
    cin >> N >> T;
    for(int i = 0; i < N; i++){
        cin >> c >> t;
        if(t <= T && c < ans){
                ans = c;
        }
    }

    //output
    if(ans != INT_MAX){
        cout << ans << endl;
    }else{
        cout << "TLE" << 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:4:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    3 | #include <vector>
  +++ |+#include <climits>
    4 | using namespace std;
Language: C++

#include<bits/stdc++.h>

using namespace std;

int* bubbleSort(int* N, int len){
  int i,j;

  for(i=0; i<len; i++){
    for(j=len-1; j>i; j--){
      if(N[j] < N[j-1]){
        temp = N[j];
        N[j] = N[j-1];
        N[j-1] = temp;
      }
    }
  }

  return N;
}

int main(){
  int n,t;
  cin >> n >> t;
  int c[100];
  int t1[100];
  for(int i=0;i!=n;i++){
    cin >> c[i] >> t1[i];
    if(t1[i]>t){
      i--;
      n--;
    }
  }
  bubbleSort(c[],n);
  cout << c[0] << endl;
}


Compiler output:
a.cc: In function 'int* bubbleSort(int*, int)':
a.cc:11:9: error: 'temp' was not declared in this scope; did you mean 'tm'?
   11 |         temp = N[j];
      |         ^~~~
      |         tm
a.cc: In function 'int main()':
a.cc:33:16: error: expected primary-expression before ']' token
   33 |   bubbleSort(c[],n);
      |                ^
Language: C++

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

typedef long long ll;

int main() {
	int n,T;
	cin >> n >> T;
	pair<int,int> c[n];
	for (int i = 0;i < n;i++) {
		cin >> c[i].first >> c[i].second;
	}
	sort(c,c+n,[](const c& x, const c& y) { return x.first < y.first;});
	for (int i = 0;i < n;i++) {
		if (c[i].second <= T) {
			cout << c[i].first;
			return 0;
		}
	}
	cout << "TLE" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: 'c' does not name a type
   13 |         sort(c,c+n,[](const c& x, const c& y) { return x.first < y.first;});
      |                             ^
a.cc: In lambda function:
a.cc:13:76: error: expected '{' before ';' token
   13 |         sort(c,c+n,[](const c& x, const c& y) { return x.first < y.first;});
      |                                                                            ^
a.cc: In function 'int main()':
a.cc:13:76: error: expected ')' before ';' token
   13 |         sort(c,c+n,[](const c& x, const c& y) { return x.first < y.first;});
      |             ~                                                              ^
      |                                                                            )
Language: C++

#include<bits/stdc++.h>
#define ll          long long
#define pb          push_back
#define	endl		'\n'
#define pii         pair<ll int,ll int>
#define vi          vector<ll int>
#define all(a)      (a).begin(),(a).end()
#define F           first
#define S           second
#define hell        1000000007
#define lbnd        lower_bound
#define ubnd        upper_bound
#define bs          binary_search
#define ios		ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
using namespace std;
int main()
{
	ios
	int n,a,b,t,tt,c;
	cin>>n>>t;
	ll mn=hell;
	for(i=0;i<n;i++){
		cin>>tt>>c;
		if(tt<=t)mn=min(mn,c);
	}
	cout<<c;

	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: 'i' was not declared in this scope
   22 |         for(i=0;i<n;i++){
      |             ^
a.cc:24:32: error: no matching function for call to 'min(long long int&, int&)'
   24 |                 if(tt<=t)mn=min(mn,c);
      |                             ~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:24:32: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   24 |                 if(tt<=t)mn=min(mn,c);
      |                             ~~~^~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:24:32: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   24 |                 if(tt<=t)mn=min(mn,c);
      |                             ~~~^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for(i=0;i<n;i++)
      |   ^~~
a.cc:9:18: error: expected ';' before ')' token
    9 |   for(i=0;i<n;i++)
      |                  ^
      |                  ;
Language: C++

#include<bits/stdc++.h>

using namespace std;

const int maxn=1<<25;
const int mod=1e9+9;


int main()
{
	int n,m;
	cin>>n>>m;
	int x,y;
	int minx=100000;
	for(int i=0;i<n;i++){
		cin>>x>>y;
		if(b<=m){
			minx=min(minx,a);
		}
	}
	if(minx==100000){
		cout<<"TLE";
	}else{
		cout<<minx;
	}
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: 'b' was not declared in this scope
   17 |                 if(b<=m){
      |                    ^
a.cc:18:39: error: 'a' was not declared in this scope
   18 |                         minx=min(minx,a);
      |                                       ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int n,t;
    cin>>n>>t;
    bool done=false;
    int ans=INT_MAX;
    for(int i=0;i<n;i++)
    {
        int a,b;
        cin>>a>>b;
        if(t>b)
        {
          ans=min(ans,a);
          done=true;
        }
    }
    if(done==false)
    {
        cout<<"TLE"<<endl;
    }
    else
    {
        cout<<ans<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'INT_MAX' was not declared in this scope
   10 |     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 <bits/stdc++.h>
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];}
  int a=1001;
  int b=0;
  for(int i=0;i<N;i++){
    if(c[i]<a && t[i]<=T){a=c[i]; b=i;}
  }
  if(a==1001){cout << "TLE" << endl;}
  else{cout << i+1 << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: 'i' was not declared in this scope
   15 |   else{cout << i+1 << endl;}
      |                ^
Language: C++

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

int main(){
    int N, T;
    cin >> N >> T;
    vector<int> ans;
    int num = 0;
    for(int i = 1; i <= N; i++){
        int tmpc, tmpt;
        cin >> tmpc >> tmpt;
        if(tmpt <= T){
            ans.push_back(tmpc);
            num++;
        }
    }
    if(num != 0) cout << *min_element(ans.begin(), ans.end()) << endl;
    else cout << "TLE" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: 'min_element' was not declared in this scope
   18 |     if(num != 0) cout << *min_element(ans.begin(), ans.end()) << endl;
      |                           ^~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int* bubbleSort(int* N, int len){
  int i,j;

  for(i=0; i<len; i++){
    for(j=len-1; j>i; j--){
      if(N[j] < N[j-1]){
        temp = N[j];
        N[j] = N[j-1];
        N[j-1] = temp;
      }
    }
  }

  return N;
}

int main(){
  int n,t;
  cin >> n >> t;
  int c[100];
  int t[100];
  for(int i=0;i!=n;i++){
    cin >> c[i] >> t[i];
    if(t[i]>t){
      i--;
      n--;
    }
  }
  bubbleSort(c[],n);
  cout << c[0] << endl;
}


Compiler output:
a.cc: In function 'int* bubbleSort(int*, int)':
a.cc:11:9: error: 'temp' was not declared in this scope; did you mean 'tm'?
   11 |         temp = N[j];
      |         ^~~~
      |         tm
a.cc: In function 'int main()':
a.cc:25:7: error: conflicting declaration 'int t [100]'
   25 |   int t[100];
      |       ^
a.cc:22:9: note: previous declaration as 'int t'
   22 |   int n,t;
      |         ^
a.cc:27:21: error: invalid types 'int[int]' for array subscript
   27 |     cin >> c[i] >> t[i];
      |                     ^
a.cc:28:9: error: invalid types 'int[int]' for array subscript
   28 |     if(t[i]>t){
      |         ^
a.cc:33:16: error: expected primary-expression before ']' token
   33 |   bubbleSort(c[],n);
      |                ^