fork(2) download
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int myComp(int a,int b){ return a < b; }
  7.  
  8.  
  9. int main() {
  10. std::vector<int> a = { 3, 2, 1};
  11. std::sort(a.begin(),a.end(),myComp);
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
Standard output is empty