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

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

int main() {
  int N,T,c,t,;
  cin >> N >> T;
  int cnt=10000;
  for (int i=0; i<N; i++) {
    cin >> c >> t;
    if (T>=t) {
      cnt=min(cnt,c);
    }
  }
  if (cnt!=10000) {
    cout << cnt << endl;
  }
  else {
    cout << "TLE" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected unqualified-id before ';' token
    5 |   int N,T,c,t,;
      |               ^
Language: Java

package online.atCoder.beginnerContext112;

import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Scanner;

public class TimeLimitExceeded {

    private static final String TLE = "TLE";

    public static String process(TestCase testCase) {
        final int N = testCase.N;
        final int T = testCase.T;
        final List<Integer> c = testCase.c;
        final List<Integer> t = testCase.t;

        Optional<Integer> minCost = Optional.empty();

        for (int i = 0; i < N; ++i) {
            final int cost = c.get(i);
            final int time = t.get(i);
            if (time <= T) {
                if (minCost.isPresent()) {
                    minCost = minCost.map(curr -> Math.min(curr, cost));
                } else {
                    minCost = Optional.of(cost);
                }
            }
        }

        return minCost.map(String::valueOf).orElse(TLE);
    }

    // Util func

    public static void main(String[] args) {
        TestCase testCase = readFromInput();

        final String result = process(testCase);

        output(result);
    }

    private static TestCase readFromInput() {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int T = sc.nextInt();

        List<Integer> c = new ArrayList<>();
        List<Integer> t = new ArrayList<>();
        for (int i = 0; i < N; ++i) {
            c.add(sc.nextInt());
            t.add(sc.nextInt());
        }

        return new TestCase(N, T, c, t);
    }

    private static void output(String result) {
        System.out.println(result);
    }

    public static class TestCase {
        final int N;
        final int T;
        final List<Integer> c;
        final List<Integer> t;

        public TestCase(int N, int T, List<Integer> c, List<Integer> t) {
            this.N = N;
            this.T = T;
            this.c = c;
            this.t = t;
        }
    }
}


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

#include <bits/stdc++.h>

using namespace std;

int main() {
  int n, t;
  cin >> n >> t;
  int ans = -1;
  while (n--) {
    int x, y;
    cin >> x >> y;
    if (x < ans && y <= t) {
      ans = x;
    }
  }
  cout << (ans != -1 ? ans : "TLE\n");
  return 0;
}


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

#include <vector>
#include <iostream>
#include <cmath>
#include <map>
#include <algorithm>
#include <fstream>
#include <unistd.h>
#include <string>
#include <numeric>
#include <queue>
#include <deque>
#include <sstream>
using namespace std;
typedef int64_t ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<vi> vvi;
typedef vector<vvi> vvvi;
typedef vector<bool> vb;
typedef vector<vector<bool>> vvb;
typedef vector<string> vs;
typedef vector<vector<string>> vvs;
typedef vector<char> vc;
typedef vector<vector<char>> vvc;
typedef pair<int, int> P;
typedef pair<ll, ll> PL;
typedef vector<P> vp;
typedef vector<PL> vpl;
typedef vector<vector<P>> vvp;
typedef vector<vector<PL>> vvpl;
const int INF = 1001001001;
const ll LINF = 1e18;
const string endstr = "\n";
#define FOR(i, a, b) for(ll i = (a); i < b; i++)
#define REP(i, n) for(ll i = 0; i < n; i++)
#define FORMAP(it, m) for(auto it = m.begin(); it != m.end(); it++)
#define ff first
#define ss second

template <typename T>
T gcd(T a, T b) {
    return (a == 0) ? b : gcd(b%a, a);
}
template <typename T>
T lcm(T a, T b) {
    return a / gcd(a, b) * b;
}

bool p_comp_fs(const PL p1, const PL p2){ return p1.first < p2.first;};
bool p_comp_fg(const PL p1, const PL p2){ return p1.first > p2.first;};
bool p_comp_ss(const PL p1, const PL p2){ return p1.second < p2.second;};
bool p_comp_sg(const PL p1, const PL p2){ return p1.second > p2.second;};
template <typename T>
vector<T> uniquen(vector<T> vec){
    vec.erase(unique(vec.begin(), vec.end()), vec.end());
    return vec;
}


int main(){
    ll N, T; cin >> N >> T;
  	vl cs(N, 0), ts(N, 0); REP(i, N) cin >> cs[i] >> ts[i];
  	ll ret = LINF;
  	REP(i, N){
      if(ts[i] <= T) ret = min(ret, cs[i]);
    }
    cout << ((ret == LINF) ? "TLE" : ret) << endstr;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:68:28: error: operands to '?:' have different types 'const char*' and 'll' {aka 'long int'}
   68 |     cout << ((ret == LINF) ? "TLE" : ret) << endstr;
      |              ~~~~~~~~~~~~~~^~~~~~~~~~~~~
Language: C++

#include <iostream> 
#include <iomanip> 
#include <vector> 
#include <algorithm> 
#include <numeric> 
#include <functional> 
#include <cmath> 
#include <queue> 
#include <stack> 

#define Ford(i,a,b) for (int i=(a);i<(b);i++) 
#define For(i,n) Ford(i,0,n) 
typedef long long ll; 

using namespace std;

int main(){
  int N,T;
  int costMin=1001;
  cin>>N>>T;
  int c[N],t[N];
  For(i,N) cin>>c[i]>>t[i];
  Fot(i,N) if(t[i] <= T) if(c[i] <= costMin) costMin=c[i];
  
  if(costMin==1001) cout<<"TLE"<<endl;
  else cout<<costMin<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:7: error: 'i' was not declared in this scope
   23 |   Fot(i,N) if(t[i] <= T) if(c[i] <= costMin) costMin=c[i];
      |       ^
a.cc:23:3: error: 'Fot' was not declared in this scope; did you mean 'For'?
   23 |   Fot(i,N) if(t[i] <= T) if(c[i] <= costMin) costMin=c[i];
      |   ^~~
      |   For
Language: C++

a,b=map(int,input().split())
l=[]
for s in range(a):
  c,t=map(int,input().split())
  if t<=b:
    l.append(c)
if len(l)>0:
  print(min(l))
else:
  print("TLE")

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=map(int,input().split())
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: expected primary-expression before ';' token
   20 |   cout << ;
      |           ^
Language: C++

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

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

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

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

int main() {
	int n,tt,i,c,t,ansc=INT_MAX;
	cin >> n >> tt;
	for (i = 0; i < n; i++) {
		cin >> c >> t;
		if (t <= tt) {
			ansc = min(ansc, c);
		}
	}
	if (ansc == INT_MAX)cout << "TLE";
	else cout << ansc;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: 'INT_MAX' was not declared in this scope
    8 |         int n,tt,i,c,t,ansc=INT_MAX;
      |                             ^~~~~~~
a.cc:5:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    4 | #include<vector>
  +++ |+#include <climits>
    5 | using namespace std;
Language: C++

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

int main() {
	int n,tt,i,c,t,ansc=INT_MAX;
	cin >> n >> tt;
	for (i = 0; i < n; i++) {
		cin >> c >> t;
		if (t <= tt) {
			ansc = min(anc, c);
		}
	}
	if (ansc == INT_MAX)cout << "TLE";
	else cout << ansc;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: 'INT_MAX' was not declared in this scope
    8 |         int n,tt,i,c,t,ansc=INT_MAX;
      |                             ^~~~~~~
a.cc:5:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    4 | #include<vector>
  +++ |+#include <climits>
    5 | using namespace std;
a.cc:13:36: error: 'anc' was not declared in this scope; did you mean 'ansc'?
   13 |                         ansc = min(anc, c);
      |                                    ^~~
      |                                    ansc
Language: C++

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

int main(void){
    int N, T;
    cin >> N >> T;
    int c[N], t[N];
    int i;
    for(i=0; i<N; i++) cin >> c[i] >> t[i];
    int r = 100;
    for(i=; i<N; i++){
        if(t[i] < T && c[i] < r) r = c[i];
    }
    cout << r << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected primary-expression before ';' token
   11 |     for(i=; i<N; i++){
      |           ^
Language: C++

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

int main() {
 int n,t;
  cin>> n>>t;
  vector<int> vec(n);
  for(int i=0;i<n;i++){
    int kaihi 
      int time;
    cin>>kaihi >> time;
    if(time<=t){
      vec.at(i)=kaihi;}
    else{
    vec.at(i)=9999;}
  }
  sort(vec.begin(),vec.end())
    if(vec.at(0)==9999){
      cout<<"TLE"<<endl;}
  else{
    cout << vec.at(0) <<endl;}
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: expected initializer before 'int'
   10 |       int time;
      |       ^~~
a.cc:11:10: error: 'kaihi' was not declared in this scope
   11 |     cin>>kaihi >> time;
      |          ^~~~~
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(time<=t){
      |        ~~~~^~~
a.cc:17:30: error: expected ';' before 'if'
   17 |   sort(vec.begin(),vec.end())
      |                              ^
      |                              ;
   18 |     if(vec.at(0)==9999){
      |     ~~                        
a.cc:20:3: error: 'else' without a previous 'if'
   20 |   else{
      |   ^~~~
Language: C++

#include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <algorithm>
#include <set>
#include <stack>
#include <deque>
#include <cmath>
#include <map>
using namespace std;
typedef long long LL;

int main() {
    int n, T, c, t;
    int minc = 1001;

    cin >> n >> T;
    for (int i=0; i<n; i++) {
        cin >> c >> t;
        if (t <= T) minc = min(minc, c);
    }

    if (minc == 1001) puts("TLE");
    else puts(minc);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   25 |     else puts(minc);
      |               ^~~~
      |               |
      |               int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

#include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <algorithm>
#include <set>
#include <stack>
#include <deque>
#include <cmath>
#include <map>
using namespace std;
typedef long long LL;

int main() {
    int n, T, c, t;
    int minc = 1001;

    cin >> n >> T;
    for (int i=0; i<n; i++) {
        cin >> c >> t;
        if (t <= T) minc = min(minc, c);
    }

    if (minc == 1001) puts("TLE");
    else putc(minc);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:14: error: too few arguments to function 'int putc(int, FILE*)'
   25 |     else putc(minc);
      |          ~~~~^~~~~~
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:612:12: note: declared here
  612 | extern int putc (int __c, FILE *__stream) __nonnull ((2));
      |            ^~~~
Language: C++

#include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <algorithm>
#include <set>
#include <stack>
#include <deque>
#include <cmath>
#include <map>
using namespace std;
typedef long long LL;

int main() {
    int n, T, c, t;
    minc = 1001;

    cin >> n >> T;
    for (int i=0; i<n; i++) {
        cin >> c >> t;
        if (t <= T) minc = min(minc, c);
    }

    if (minc == 1001) puts("TLE");
    else putc(minc);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'minc' was not declared in this scope
   16 |     minc = 1001;
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before 'T'
    4 |   int N T;
      |         ^
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N >> T;
      |          ^
a.cc:5:15: error: 'T' was not declared in this scope
    5 |   cin >> N >> T;
      |               ^
Language: C++

#include <iostream>
using namespace std ;

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

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

#include <iostream>
using namespace std ;
const int inf{int(1e9)};
int main() {
int N, T;
cin >> N >> T;
int ans{inf};
for (int i = 0; i < N; ++i) {
int c, t;
cin >> c >> t;
if (t < T && c < ans) {
ans = c;
} 
}
if (ans == inf) {
cout << ”TLE” << endl;
}
else {
cout << ans << endl ; 
}
}

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

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

int main(){
  int N,T,c,t,minI,minC;
  vector<int> cs,ts;
  cin >>N;
  for(int i=0;i<N;i++){
    cin >>c>>t;
    if(t<=T){
      cs.push_back(c);
      ts.push_back(t);
    }
  }
  minI=0;
  minC=cs[minI];
  for(int i=0;i<cs.size();i++){
    if(minC>cs[i]){
      minI=i;
      minc=cs[minI];
    }
  }
  cout <<minC;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: 'minc' was not declared in this scope; did you mean 'minC'?
   21 |       minc=cs[minI];
      |       ^~~~
      |       minC
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n,timelim;
  cin>>n>>timelim;
  int cost[n],time[n];
  int mincost=10000;
  for(int i=0;i<n;i++){
    cin>>cost[i]>>time[i];
    if(time[i]<=timelim){
      mincost=min(mincost,cost[i]);
    }
  }
  if(mincost==10000){
    cout<<"TLE"<<endl;
  }else{
    cost<<mincost<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: invalid operands of types 'int [n]' and 'int' to binary 'operator<<'
   18 |     cost<<mincost<<endl;
      |     ~~~~^~~~~~~~~
      |     |     |
      |     |     int
      |     int [n]
Language: C++

#include <i o s t re am>
using namespace s t d ;
const int i n f { int ( 1 e9 ) } ;
int main ( ) {
int N, T; ci n >> N >> T;
int ans { i n f } ;
for ( int i = 0 ; i < N; ++i ) {
int c , t ; ci n >> c >> t ;
i f ( t < T && c < ans ) {
ans = c ;
}
}
i f ( ans == i n f ) {
c ou t << ”TLE” << e n dl ;
}
e l s e {
c ou t << ans << e n dl ;
}
}

Compiler output:
a.cc:1:10: fatal error: i o s t re am: No such file or directory
    1 | #include <i o s t re am>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main()
{
  int n, t;
  cin >> n >> t;

  int m = 1000000000;
  int count = 0;

  while(count < n)
  {
      int c, tn;
      cin >> c >> tn
      if(t >= tn && m > c)
      {
          m = c;
      }

      count++;
  }

  if(m == 1000000000)
  {
      cout << "TLE";
      
  }
  else
  {
      cout << m;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:21: error: expected ';' before 'if'
   19 |       cin >> c >> tn
      |                     ^
      |                     ;
   20 |       if(t >= tn && m > c)
      |       ~~
Language: C++

#include<iostream>
using namespace std;

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

int main(){
    int N, T;
    int c[1000], t[1000];

    cin >> N;
    cin >> T;

    int min = INT_MAX;
    rep(i,N) scanf("%d%d", &c[i], &t[i]);
    rep(i,N){
        if(t[i] > T) continue;
        if(min > c[i]) min = c[i];
    }

    if(min == INT_MAX) cout << "TLE" << endl;
    else cout << min << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: 'INT_MAX' was not declared in this scope
   13 |     int min = 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 | using namespace std;
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N, T;
  cin >> N >> T;
  
  int c[i];
  int t[i];
  int x=1000;
  
  for(int i=0;i<N;i++){
    cin >> c[i] >> t[i];
    if(t[i] >= T){
      cout << "TLE";
    }
    else if(x >= c[i]){
      x = c[i];
    }
  }
  cout << x;
  
  return 0;
}
      

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (int i = a; i < b; i++)
//'A' = 65, 'Z' = 90, 'a' = 97, 'z' = 122

int main()
{
    int N, T;
    cin >> N >> T;
    int ans = 1e9;
    rep(i, 0, n) {
        int c, t;
        cin >> c >> t;
        if (t <= T) {
            ans = min(ans, c);
        }
    }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'n' was not declared in this scope
   12 |     rep(i, 0, n) {
      |               ^
a.cc:4:42: note: in definition of macro 'rep'
    4 | #define rep(i, a, b) for (int i = a; i < b; i++)
      |                                          ^
Language: C++

#include<iostream>
using namespace std;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:12:9: error: expected ')' before ';' token
   12 |   if(i=0; i<N; i++)
      |     ~   ^
      |         )
Language: C++

#include <iostream>
#include <math>
using namespace std;
int main(){
int n,t;cin>>n>>t;
int a=100453;
for(int i=0;i<n;i++){
int c,s;
  cin>>c>>s;
  if(s>t){continue;}
  a=min(a,c);
}
  if(a==100453){cout<<"TLE"<<endl;return 0;}
  cout<<a<<endl;
}

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

N, T = map(int,input().split())

C,t = [], []

for i in range(N):
    CT = list(map(int,input().split()))
    C.append(CT[0])
    t.append(CT[1])

C_min = 10000
for i,t_i in enumerate(t):
    print(t_i, C[i], C_min)
    if t_i <= T and C_min > C[i]:
        C_min = C[i]
        
if C_min == 0:
    print('TLE')
else:
    print(C_min)

Compiler output:
a.cc:17:11: warning: multi-character character constant [-Wmultichar]
   17 |     print('TLE')
      |           ^~~~~
a.cc:1:1: error: 'N' does not name a type
    1 | N, T = map(int,input().split())
      | ^
Language: C++

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <string>
#include <tuple>
#include <vector>
#include <map>
#include <list>
#include <set>
#include <stack>
#include <queue>
#include <cstdlib>
#include <algorithm>
#include <random>
#include <cassert>
using namespace std;
#define LL long long
#define MP(a, b) make_pair(a, b)
#define MMP(a, b, c) make_pair(make_pair(a, b), c)
#define MAX 1000000000
#undef INT_MIN
#undef INT_MAX
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define LL_MIN -9223372036854775808
#define LL_MAX 9223372036854775807
#define PI 3.14159265359

int main(){
    iostream::sync_with_stdio(false);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:42:45: error: expected ';' before ':' token
   42 |     if(ans == INT_MAX) cout << "TLE" << endl:
      |                                             ^
      |                                             ;
Language: C++

#include <iostream>

#define REP(i,n) for(int i = 0; i < (n); ++i)

using namespace std;

int main() {
  int n, t;
  while (cin >> n >> t) {
    int result = 1 << 28
    REP(i,n) {
      int a, b;
      cin >> a >> b;
      
      if (b <= t) result = min(result, a);
    }
    if (result == 1 << 28) {
      cout << "TLE" << endl;
    } else {
      cout << result << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define REP(i,n) for(int i = 0; i < (n); ++i)
      |                  ^~~
a.cc:11:5: note: in expansion of macro 'REP'
   11 |     REP(i,n) {
      |     ^~~
a.cc:11:9: error: 'i' was not declared in this scope
   11 |     REP(i,n) {
      |         ^
a.cc:3:33: note: in definition of macro 'REP'
    3 | #define REP(i,n) for(int i = 0; i < (n); ++i)
      |                                 ^
Language: C

#include <stdio.h>

int main(void){
  	int n,T,c,t,min=1000;
  	scanf("%d %d", &n,&T);
  	
  	for(int i=0;i<n;i++){
      	scanf("%d %d", &c,&t);
      if(t<=T){
      	if(c<=min){
          min = c;
        }
      }
    }
  if(min!=1000){
  printf("%d", min);
  }else{
  printf("%d", TLE);
  }
}


Compiler output:
main.c: In function 'main':
main.c:18:16: error: 'TLE' undeclared (first use in this function)
   18 |   printf("%d", TLE);
      |                ^~~
main.c:18:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
  	int n,T,min=1000;
  	scanf("%d %d", &n,&T);
  	
  	for(int i=0;i<n;i++){
      	scanf("%d %d", &c,&t);
      if(t<=T){
      	if(c<=min){
          min = c;
        }
      }
    }
  printf("%d", min);
}

Compiler output:
main.c: In function 'main':
main.c:8:25: error: 'c' undeclared (first use in this function)
    8 |         scanf("%d %d", &c,&t);
      |                         ^
main.c:8:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:28: error: 't' undeclared (first use in this function)
    8 |         scanf("%d %d", &c,&t);
      |                            ^
Language: C++

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


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

#include <iostream>
using namespace std ;
const int inf { int ( 1e9 ) } ;
int main ( ) {
int N, T; cin >> N >> T;
int ans { inf } ;
for ( int i = 0 ; i < N; ++i ) {
int c , t ; cin >> c >> t ;
if ( t < T && c < ans ) {
ans = c ;
}
}
if ( ans == inf ) {
cou t << ”TLE” << endl ;
}
else {
cout << ans << endl ;
}
}


Compiler output:
a.cc:14:10: error: extended character ” is not valid in an identifier
   14 | cou t << ”TLE” << endl ;
      |          ^
a.cc:14:10: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:14:1: error: 'cou' was not declared in this scope
   14 | cou t << ”TLE” << endl ;
      | ^~~
Language: C

#include <stdio.h>
int main()
{
    int n;
    int t;
    int c[100];
    int ti[100];
    int i;
    int num=100000;
    int a=0;

    scanf_s("%d", &n);
    scanf_s("%d", &t);
    for (i = 0; i < n; i++) {
        scanf_s("%d", &c[i]);
        scanf_s("%d", &ti[i]);
    }
    for (i = 0; i < n; i++) {
        if (ti[i] < t) {
            a++;
            if (c[i] < num) {
                num = c[i];
            }
        }
    }

   
    if (a != 0 ) {
        printf("%d",num);
    }
    else {
        printf("TEL");
   }
    return 0;
}




Compiler output:
main.c: In function 'main':
main.c:12:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   12 |     scanf_s("%d", &n);
      |     ^~~~~~~
      |     scanf
Language: C

#include <stdio.h>

int main()
{
    int n;
    int t;
    int c[100];
    int ti[100];
    int i;
    int num=100000;
    int a=0;

    scanf_s("%d", &n);
    scanf_s("%d", &t);
    for (i = 0; i < n; i++) {
        scanf_s("%d", &c[i]);
        scanf_s("%d", &ti[i]);
    }
    for (i = 0; i < n; i++) {
        if (c[i] <= num) {
            num = c[i];
        }
    }

    for (i = 0; i < n; i++) {
        if (ti[i] <= t) {
            a++;
        }
    }
    if (a != 0 ) {
        printf("%d",a);
    }
    else {
        printf("TEL",);
   }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   13 |     scanf_s("%d", &n);
      |     ^~~~~~~
      |     scanf
main.c:34:22: error: expected expression before ')' token
   34 |         printf("TEL",);
      |                      ^
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includeL; did you mean #include?
    1 | #includeL<stdio.h>
      |  ^~~~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d %d",N,T);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includeL<stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d %d",N,T);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |     printf("TLE");
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void) {
  int N,T,C[101],T[100],ans=100,i;
  C[100]=1001;
  scanf("%d %d",&N,&T);
  for(i=0;i<N;i++)scanf("%d %d",&C[i],&T[i]);
  for(i=0;i<N;i++)if(T[i] <= T && C[i] < C[ans])ans=i;
  if(ans == 100) {
    printf("TLE/n");
  } else {
    printf("%d",C[ans]);
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:18: error: conflicting types for 'T'; have 'int[100]'
    3 |   int N,T,C[101],T[100],ans=100,i;
      |                  ^
main.c:3:9: note: previous declaration of 'T' with type 'int'
    3 |   int N,T,C[101],T[100],ans=100,i;
      |         ^
Language: C

#include<stdio.h>
#include<string>
int main(void) {
  int N,T,C[101],T[100],ans=100,i;
  C[100]=1001;
  scanf("%d %d",&N,&T);
  for(i=0;i<N;i++)scanf("%d %d",&C[i],&T[i]);
  for(i=0;i<N;i++)if(T[i] <= T && C[i] < C[ans])ans=i;
  if(ans == 100) {
    printf("TLE/n");
  } else {
    printf("%d",C[ans]);
  }
  return 0;
}

Compiler output:
main.c:2:9: fatal error: string: No such file or directory
    2 | #include<string>
      |         ^~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int n, t;
  cin >> n >> t;
  vector<int> cost(n);
  vector<int> time(n);
  for (int i = 0; i < n; i ++) {
    cin >> cost.at(i) >> time.at(i);
  }

  int ans = 1000;
  for (int i = 0; i < n; i ++) {
    if (cost.at(i) >= ans && t >= time.at(i)) {
      ans = cost.at(i)
    }
  }

  cout << ans << endl;
}


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

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

int main() {
  int N, T;
  bool ans = false;
  int MIN = 1000;
  cin >> N >> T;
  vector<int> c(N);
  vector<int> t(N);
  for (int i = 0; i < N; i++)
    cin >> c.at(i) >> t.at(i);
  for (int i = 0; i < N; i++) {
    if (t.at(i) <= T) {
      MIN = min(MIN, c.at(i))
      ans = true;
    }
  }
  if (ans == false)
    cout << "TLE" << endl;
  else
    cout << MIN << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: expected ';' before 'ans'
   15 |       MIN = min(MIN, c.at(i))
      |                              ^
      |                              ;
   16 |       ans = true;
      |       ~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
  int N, T;
  cin >> N >> T;
  vector<int> c;
  vector<int> t;
  for (int i = 0; i < N; i++)
    cin >> c.at(i) >> t.at(i);
  sort(c.begin(), c.end());
  sort(t.begin(), t.end());
  for (int i = 0; i < N; i++)
    if (t.at(i) < T) {
      cout << c.at(i) << endl;
      break;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> c;
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> c;
      |          ^~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> t;
      |          ^~~
a.cc:9:12: error: 'c' was not declared in this scope
    9 |     cin >> c.at(i) >> t.at(i);
      |            ^
a.cc:9:23: error: 't' was not declared in this scope
    9 |     cin >> c.at(i) >> t.at(i);
      |                       ^
a.cc:10:8: error: 'c' was not declared in this scope
   10 |   sort(c.begin(), c.end());
      |        ^
a.cc:10:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |   sort(c.begin(), c.end());
      |   ^~~~
      |   short
a.cc:11:8: error: 't' was not declared in this scope
   11 |   sort(t.begin(), t.end());
      |        ^
Language: C++

#include<algorithm>
#include<iostream>
#include<vector>
using namespace std;
int main() {
    int N, T;
    cin >> N >> T;
    vector<int> c(N);
    vector<int> t(N);
    for (int i = 0; i < N; i++)
    {
        cin >> c[i] >> t[i];
    }

    int Max = 1<< 30;//２の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:23:15: error: 'MAX' was not declared in this scope; did you mean 'Max'?
   23 |     if (ans < MAX){
      |               ^~~
      |               Max
Language: C++

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

void mondai2();

int main()
{
	int stop;
	mondai2();
	cin >> stop;
    return 0;
}
void mondai2() {
	int N, T,min = 1000;
	pair<int, int> ct[1000];
	int p=0,minl[1000];

	cin >> N >> T;

	for (int i = 0; i < N; i++) {
		cin >> ct[i].first >> ct[i].second;
	}

	for (int i = 0; i < N; i++) {
		if (T >= ct[i].second) {
			minl[p] = ct[i].first;
			p++;
		}
	}

	for (int i = 0; i < p ; i++) {
		if (min > minl[i]) {
			min = minl[i];
		}
	}
	if (p == 0) {
		cout << "TLE";
	}
	else {
		cout << min;
	}


Compiler output:
a.cc: In function 'void mondai2()':
a.cc:42:10: error: expected '}' at end of input
   42 |         }
      |          ^
a.cc:14:16: note: to match this '{'
   14 | void mondai2() {
      |                ^
Language: C++

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

void mondai2();

int main()
{
	int stop;
	mondai2();
	cin >> stop;
    return 0;

void mondai2() {
	int N, T,min = 1000;
	pair<int, int> ct[1000];
	int p=0,minl[1000];

	cin >> N >> T;

	for (int i = 0; i < N; i++) {
		cin >> ct[i].first >> ct[i].second;
	}

	for (int i = 0; i < N; i++) {
		if (T >= ct[i].second) {
			minl[p] = ct[i].first;
			p++;
		}
	}

	for (int i = 0; i < p ; i++) {
		if (min > minl[i]) {
			min = minl[i];
		}
	}
	if (p == 0) {
		cout << "TLE";
	}
	else {
		cout << min;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: a function-definition is not allowed here before '{' token
   14 | void mondai2() {
      |                ^
a.cc:43:2: error: expected '}' at end of input
   43 | }
      |  ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
Language: C++

#include "pch.h"
#include<cstdio>

int main() {
	int n, maxt;
	scanf("%d%d", &n, &maxt);

	int t, mincost;
	int cost;
	mincost = -1;

	for (int i = 0; i < n; i++) {
		scanf("%d %d", &cost, &t);
		if (t <= maxt) mincost = cost;
	}

	if (mincost != -1) {
		printf("%d\n", mincost);
	}
	else {
		printf("TLE\n");
	}
	return 0;

}

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

#include "bits/stdc++.h"
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vii = vector<vector<int>>;
using vl = vector<ll>;
using vll = vector<vector<ll>>;
using pii = pair<int,int>;
#define FOR(i,a,b) for(ll i = (a); i < (b); i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(obj) (obj).begin(), (obj).end()
#define pb push_back
const double pi = acos(-1);
const double EPS = 1e-10;

int main(){
  int n,t;
  cin >> n >> t;
  vector<pi> c(n);
  REP(i,n) cin >> c[i].first >> c[i].second;
  sort(ALL(c));
  REP(i,n){
    if (c[i].second <= t) {
      cout << c[i].first << endl;
      break;
    }else if(i == n-1){
      cout << "TLE" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
   20 |   vector<pi> c(n);
      |            ^
a.cc:20:12: note:   expected a type, got 'pi'
a.cc:20:12: error: template argument 2 is invalid
a.cc:21:20: error: invalid types 'int[ll {aka long long int}]' for array subscript
   21 |   REP(i,n) cin >> c[i].first >> c[i].second;
      |                    ^
a.cc:21:34: error: invalid types 'int[ll {aka long long int}]' for array subscript
   21 |   REP(i,n) cin >> c[i].first >> c[i].second;
      |                                  ^
a.cc:12:24: error: request for member 'begin' in 'c', which is of non-class type 'int'
   12 | #define ALL(obj) (obj).begin(), (obj).end()
      |                        ^~~~~
a.cc:22:8: note: in expansion of macro 'ALL'
   22 |   sort(ALL(c));
      |        ^~~
a.cc:12:39: error: request for member 'end' in 'c', which is of non-class type 'int'
   12 | #define ALL(obj) (obj).begin(), (obj).end()
      |                                       ^~~
a.cc:22:8: note: in expansion of macro 'ALL'
   22 |   sort(ALL(c));
      |        ^~~
a.cc:24:10: error: invalid types 'int[ll {aka long long int}]' for array subscript
   24 |     if (c[i].second <= t) {
      |          ^
a.cc:25:16: error: invalid types 'int[ll {aka long long int}]' for array subscript
   25 |       cout << c[i].first << endl;
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int N,T;cin>>N>>T;
  for(int i=0;i<N;i++)
  {
    int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
    if(tat.[i]<=T)
  {
      int Gat.[i]=cat.[i];
  }
  }
    cout<<min(Gat.[i]);
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before '.' token
    8 |     int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
      |            ^
a.cc:8:31: error: 'cat' was not declared in this scope
    8 |     int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
      |                               ^~~
a.cc:8:35: error: expected unqualified-id before '[' token
    8 |     int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
      |                                   ^
a.cc:8:40: error: 'tat' was not declared in this scope; did you mean 'tan'?
    8 |     int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
      |                                        ^~~
      |                                        tan
a.cc:8:44: error: expected unqualified-id before '[' token
    8 |     int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
      |                                            ^
a.cc:9:12: error: expected unqualified-id before '[' token
    9 |     if(tat.[i]<=T)
      |            ^
a.cc:11:14: error: expected initializer before '.' token
   11 |       int Gat.[i]=cat.[i];
      |              ^
a.cc:14:15: error: 'Gat' was not declared in this scope
   14 |     cout<<min(Gat.[i]);
      |               ^~~
a.cc:14:19: error: expected unqualified-id before '[' token
   14 |     cout<<min(Gat.[i]);
      |                   ^
a.cc:14:20: error: 'i' was not declared in this scope
   14 |     cout<<min(Gat.[i]);
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int N,T;cin>>N>>T;
  for(int i=0;i<N;i++)
  {
    int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
    if(tat.[i]<=T)
  {
      int Gat.[i]=cat.[i];
  }
    cout<<min(Gat.[i]);
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before '.' token
    8 |     int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
      |            ^
a.cc:8:31: error: 'cat' was not declared in this scope
    8 |     int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
      |                               ^~~
a.cc:8:35: error: expected unqualified-id before '[' token
    8 |     int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
      |                                   ^
a.cc:8:40: error: 'tat' was not declared in this scope; did you mean 'tan'?
    8 |     int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
      |                                        ^~~
      |                                        tan
a.cc:8:44: error: expected unqualified-id before '[' token
    8 |     int cat.[i],tat.[i]; cin>>cat.[i]>>tat.[i];
      |                                            ^
a.cc:9:12: error: expected unqualified-id before '[' token
    9 |     if(tat.[i]<=T)
      |            ^
a.cc:11:14: error: expected initializer before '.' token
   11 |       int Gat.[i]=cat.[i];
      |              ^
a.cc:13:15: error: 'Gat' was not declared in this scope
   13 |     cout<<min(Gat.[i]);
      |               ^~~
a.cc:13:19: error: expected unqualified-id before '[' token
   13 |     cout<<min(Gat.[i]);
      |                   ^
a.cc:13:24: error: expected '}' at end of input
   13 |     cout<<min(Gat.[i]);
      |                        ^
a.cc:7:3: note: to match this '{'
    7 |   {
      |   ^
a.cc:13:24: error: expected '}' at end of input
   13 |     cout<<min(Gat.[i]);
      |                        ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<iostream>
using namespace std;

int main() {
    int min = 1001;
    int n, t; cin >> n >> t;
    while (n--) {
        int ci, ti; cin >> ci >> ti;
        if (ti > t) continue;
        if (ci < min) min = ci;
    }
    cout << (min != 1001 ? min : "TLE") << endl;

    return 0;
}


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

#include<iostream>
useing namespace std;

int main() {
    int min = 1001;
    int n, t; cin >> n >> t;
    while (n--) {
        int ci, ti; cin >> ci >> ti;
        if (ti > t) continue;
        if (ci < min) min = ci;
    }
    cout << (min != 1001 ? min : "TLE") << endl;

    return 0;
}


Compiler output:
a.cc:2:1: error: 'useing' does not name a type
    2 | useing namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     int n, t; 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:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << (min != 1001 ? min : "TLE") << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:26: error: operands to '?:' have different types 'int' and 'const char*'
   12 |     cout << (min != 1001 ? min : "TLE") << endl;
      |              ~~~~~~~~~~~~^~~~~~~~~~~~~
a.cc:12:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout << (min != 1001 ? min : "TLE") << endl;
      |                                            ^~~~
      |                                            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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[][] a = new int[n][2];

		for(int i=0; i<n; i++){
			a[i][0] = sc.nextInt();
			a[i][1] = sc.nextInt(); 
		}
}
		int min=1001;

		for(int i=0; i<n; i++){
			if(a[i][1] <= t){
				if(a[i][0] < min){
					min = a[i][0];
				}
			}
		}

		if(min == 1001){
			System.out.println("TLE");
		}else{
			System.out.println(min);
		}
		

	}


Compiler output:
Main.java:17: error: illegal start of type
		for(int i=0; i<n; i++){
		^
Main.java:17: error: > or ',' expected
		for(int i=0; i<n; i++){
		                ^
Main.java:17: error: <identifier> expected
		for(int i=0; i<n; i++){
		                   ^
Main.java:25: error: illegal start of type
		if(min == 1001){
		^
Main.java:25: error: <identifier> expected
		if(min == 1001){
		      ^
Main.java:27: error: illegal start of type
		}else{
		 ^
6 errors
Language: Java

import java.util.Scanner;

public class ABC112B {
	public static void main(String[] args){
		Scanner sc = new Scanner( System.in );
		int n = sc.nextInt();
		int t = sc.nextInt();
		int ans = 10000;
		for(int i=0; i<n; i++){
			int c = sc.nextInt();
			int t2 = sc.nextInt();
			if(t2 <= t){
				ans = Math.min(ans, c);
			}
		}
		if(ans >= 10000){
			System.out.println("TLE");
		}else{
			System.out.println(ans);
		}
	}
}


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

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<cmath>
#include<map>
#include<cstdio>
#include<stack>
#include<queue>
#include<fstream>
#include<cstdio>
#include<deque>
#include<iomanip>
#include <numeric>
//#include<bits/stdc++.h>

using namespace std;
#define ok1 printf("ok1\n");
#define ok2 printf("ok2\n");
#define M 1000000000000000000LL
#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,s,n) for(int i=(s);i<(n);i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define REPR(i,s,n) for(int i=(s);i>=(n);(i)--)
#define all(a) (a).begin(),(a).end()
#define reall(a) (a).rbegin(),(a).rend()
#define pb push_back
#define pf push_front
#define MIN(a,b) a=min((a),(b))
#define MAX(a,b) a=max((a),(b))
#define SIZE(v) (int)v.size()
const double pi = acos(-1.0);

typedef vector<int> vi;
typedef vector<string> vs;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vi> vvi;
typedef deque<ll> dll;
typedef pair<ll, ll> P;
#define mod 1e9 + 7;
ll gcd(ll x, ll y)
{
	ll r;
	while ((r = x % y) != 0)
	{
		x = y;
		y = r;
	}
	return y;
}
ll lcm(ll x, ll y)
{
	x /= gcd(x, y);
	y /= gcd(x, y);
	return (x * y);
}


int main() {
	ll n, t,ret=1001;
	cin >> n >> t;
	rep(i, n) {
		ll c1, t1;
		cin >> c1 >> t1;
		if (t1 <= t && ret > c1) {
			ret = c1;
		}
	}
	if (ret == 1001) cout << "TLE" << endl;
	else
		cout << ret << endl;
	retrn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:73:9: error: 'retrn' was not declared in this scope; did you mean 'ret'?
   73 |         retrn 0;
      |         ^~~~~
      |         ret