fork download
  1. let rec qsort = function | [] -> []
  2. | h::t -> qsort [for e in h do if (e <= h) then yield e]
  3. @ [h] @
  4. qsort [for e in h do if (e > h) then yield e]
  5.  
  6. let r = new System.Randon()
  7.  
  8. let main() =
  9. let sample = List.init 300 (fun _-> r.Next(int.MaxValue))
  10. System.Console.WriteLine(qsort sample)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/kLhSCg/prog.fs(6,20): error FS0039: The type 'Randon' is not defined

/home/kLhSCg/prog.fs(9,45): error FS0072: Lookup on object of indeterminate type based on information prior to this program point. A type annotation may be needed prior to this program point to constrain the type of the object. This may allow the lookup to be resolved.
stdout
Standard output is empty