fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int A[]={0,0,0,1,1,1,1,3,3};
  6. vector<int> v;
  7. v.erase(
  8. remove_if(find_if(v.rbegin(),v.rend(),
  9. bind2nd(greater_equal<int>(),100)).base(),
  10. v.end(),
  11. bind2nd(less<int>(),5)),
  12. v.end());
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:7:1: error: ‘v’ does not name a type
 v.erase(
 ^
stdout
Standard output is empty