fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. using namespace std;
  5. int cost(int in){
  6. return in;
  7. }
  8. bool comp(const int f,const int s){
  9. return cost(f)<=cost(s);
  10. }
  11. int main(){
  12. vector<int>vec=vector<int>(1e5,0);
  13. sort(vec.begin(), vec.end(),comp);
  14. cout<<"Done"<<endl;
  15. return 0;
  16. }
  17.  
Runtime error #stdin #stdout 0s 4448KB
stdin
Standard input is empty
stdout
Standard output is empty