fork(1) download
  1. #include <fstream>
  2. #include <algorithm>
  3. #include <vector>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. ifstream in("date.in");
  10. ofstream out("date.out");
  11. int v[5]= {2, 3 ,1, 0, 5};
  12. sort(begin(v), end(v));
  13. for(int j=0; j<5; j++){
  14. out<<v[j]<<" ";
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
Standard output is empty