fork download
  1. #include <set>
  2. #inlcude <iostream>
  3. using namespace std;
  4.  
  5. int main() {
  6. std::set<int> s {0, 2, 4, 6, 8, 10};
  7.  
  8. auto get = [](auto set, auto key) {
  9. return set.lower_bound(key);
  10. }
  11.  
  12. std::cout << *get(s, 5) << std::endl;
  13.  
  14. // your code goes here
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:2: error: invalid preprocessing directive #inlcude; did you mean #include?
 #inlcude <iostream>
  ^~~~~~~
  include
prog.cpp: In function ‘int main()’:
prog.cpp:12:2: error: expected ‘,’ or ‘;’ before ‘std’
  std::cout << *get(s, 5) << std::endl;
  ^~~
stdout
Standard output is empty