fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. bool cmp(int a,int b)
  4. {
  5. 1;//return true;
  6. }
  7. int main() {
  8. int a[]={4,7,5,6,3,8,6,3,4,7,5,6,3,8,6,3,4,7,5,6,3,8,6,3};
  9. sort(a,a+24,cmp);
  10. for(int i=0;i<24;i++)cout<<a[i]<<" ";cout<<endl;
  11. return 0;
  12. }
Runtime error #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
7 4 3 6 3 4 6 5 7 4 3 6 8 3 6 5 5 6 3 8 6 3 1 -1077289340