fork(1) download
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10.  
  11. {
  12. struct T{ int a[4]; };
  13.  
  14. std::vector<T> arr1{1000};
  15. std::sort(arr1.begin(),arr1.end(),[](auto,auto)->bool{return false;});
  16. printf("+\n");
  17. }
  18.  
  19. {
  20. using int4=int[4];
  21.  
  22. std::vector<int4> arr2{1000};
  23. //*=>*/std::sort(arr2.begin(),arr2.end(),[](auto,auto)->bool{return false;}); /*<=*/
  24. printf("+\n");
  25. }
  26.  
  27.  
  28.  
  29. return 0;
  30. }
  31.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
+
+