fork download
  1. #include <iostream>
  2. #include <fstream>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. ostream &outputfile = cout;
  9. vector<int>temp;
  10. temp.push_back(1);
  11. temp.push_back(2);
  12. temp.push_back(3);
  13. for(int i=temp.size()-1;i>=0;i--)
  14. outputfile<<temp[i]<<"\n";
  15. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
3
2
1