5arthak01/UG2k19Hackathon

Compiles but does not work.

Closed this issue · 1 comments

The code fails on its first try when tested with PWS from OJ4 DSA.
It does not accept the range for entry 4 and crashes prematurely.

Ppws.pdf

An error was noticed in the line arrays being allocated space dependant on 'n' instead of 'k'. This rectification prevents the crash before the input is completed but it still occurs later.

double free or corruption (out)
Aborted (core dumped)

Is shown at the end.

Note: since u,p are dependant on n and are always distinct, their range is given the same as n, with the aforementioned loss of information.