MLE Ghost Bug

Revision en2, by bradyawn, 2017-10-16 17:01:22

EDIT: Solved. In this problem: 510C - Лиса и имена, I get MLE on test case 12. This is strange as I did not allocate that much space.

My solution: https://pastebin.com/LHY3RiAZ

Data Structures: - 2-D Vector of ints - Stack of ints - Vector of bools to check already visited nodes

Functions: - DFS for topological sort, sorted vertices put in stack - DFS for cycle checking

Is there a memory leak or something? I can't tell.

Thanks, Brad.

Tags mle, bug, help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English bradyawn 2017-10-16 17:01:22 15 Tiny change: 'In this pr' -> 'EDIT: Solved.\nIn this pr'
en1 English bradyawn 2017-10-16 02:40:27 453 Initial revision (published)