fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4.  
  5. int main() {
  6. // your code goes here
  7.  
  8. std::vector<int> v = {11, 22, 33};
  9.  
  10. std::for_each(begin(v), end(v), [](const int& n) { std::cout << n << ' '; });
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
11 22 33