fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int t,n,y;
  5. int main()
  6. {
  7. cin>>t;
  8. if(t<=100)
  9. {
  10. for(int i=1; i<=t; i++)
  11. {
  12. int tab1[n];
  13. cin>>n;
  14. if(n<=100)
  15. {
  16. for(int j=0; j<n; j++)
  17. {
  18. cin>>y;
  19. tab1[j]=y;
  20. }
  21. for(int k=n-1; k>=0; --k)
  22. {
  23. cout<<tab1[k]<<" ";
  24. }
  25. }
  26. cout<<endl;
  27. }
  28. }
  29.  
  30. return 0;
  31. }
  32.  
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty