Paste Search Dynamic
Recent pastes
upper_bound
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.         int a[10]={1,2,4,6,9,11,23,25,46,58};
  6.         auto c=upper_bound(a,a+10+1,56);
  7.         cout<<*c;
  8. }
Parsed in 0.001 seconds