Help with this code, it compiles but doesn't work on my simulations

Printable View