fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. int main() {
  5. // your code goes here
  6. std::vector<float> v = {1.0f, 2.0f, 3.0f};
  7. for (decltype(v)::size_type i = 0; i < v.size(); i++) {
  8. std::cout << v.at(i) << std::endl;
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0s 4304KB
stdin
Standard input is empty
stdout
1
2
3