fork(1) download
  1. #include <iostream>
  2. #include <map>
  3. using namespace std;
  4.  
  5. int main() {
  6. map<int, int> m;
  7. m[56]= 666;
  8. auto it = m.lower_bound(1);
  9. if(it != m.end()) {
  10. cout << it->first;
  11. } else {
  12. cout << "this was expected!=(";
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 4456KB
stdin
Standard input is empty
stdout
56