fork download
  1. /**In the name of ALLAH, Most Gracious, Most Merciful**/
  2. /// </>: khalid aziz;
  3. /// </>: BOT_CoderX;
  4.  
  5. #include<bits/stdc++.h>
  6. using namespace std;
  7. #define ll long long int
  8. #define ld long double
  9. #define PI 2*acos(0.0)
  10. #define FAST_IO() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
  11.  
  12. int main()
  13. {
  14. FAST_IO();
  15. int tc=1;
  16. //cin>>tc;
  17. while(tc--)
  18. {
  19. vector <int> v = {1,3,5,8,9,12};
  20. vector <int> :: iterator it = lower_bound(v.begin(), v.end(), 6);
  21. cout << *it << endl;
  22. }
  23. }
  24. /*
  25. */
  26.  
  27.  
  28.  
  29.  
Success #stdin #stdout 0.01s 5508KB
stdin
Standard input is empty
stdout
8