My issue
help me
My code
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--){
int N,X;
cin>>N>>X;
int S,R;
vector<int> r;
while(N!=0){
cin>>S>>R;
if(S<=X){
r.push_back(R);
}
N--;
return *max_element(r.begin(),r.end());
}
}
return 0;
}
Learning course: Level up from 1* to 2*
Problem Link: Motivation Practice Problem in Level up from 1* to 2* - CodeChef