fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. vector<int> dane_wjesciowe;
  8. for(int i = 0; i < n; i++){
  9. cin >> dane_wjesciowe[i];
  10. }
  11. reverse(dane_wjesciowe.begin(), dane_wjesciowe.end());
  12. for(int i = 0; i < dane_wjesciowe.size(); i++){
  13. cout << dane_wjesciowe[i] << " ";
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
Standard output is empty