fork download
  1. #include <iostream>
  2. #include <utility>
  3. #include <array>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. // your code goes here
  10. for (const auto &x : std::move(std::array<int, 3>{1,2,3}))
  11. {
  12. std::cout << x << std::endl;
  13. }
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 5556KB
stdin
Standard input is empty
stdout
21991
1594903328
32542