fork download
  1. #include <vector>
  2. #include <algorithm>
  3.  
  4. int main() {
  5. std::vector<int> v = {1, 2, 3};
  6. int c = count(v.begin(), v.end(), 2);
  7. return 0;
  8. }
Success #stdin #stdout 0s 4512KB
stdin
Standard input is empty
stdout
Standard output is empty