fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. int main()
  5. {
  6. size_t n;
  7. std::cin >> n;
  8. std::vector <float> v(n);
  9.  
  10. for (auto &x : v)
  11. std::cin >> x;
  12.  
  13. for(auto x : v)
  14. std::cout << x << ' ';
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 15232KB
stdin
7 1.2 3.6 2.4 5.8 2.7 3.1 -92.8
stdout
1.2 3.6 2.4 5.8 2.7 3.1 -92.8