fork(1) download
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int arr[]={9,77,3,4,5,6,7,8,9};
  8. sort(arr,arr+9);
  9. cout<<lower_bound(arr,arr+9,77)-arr;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
8