I got it now! Thanks for the quick and good help.
1 Like
doing puzzle in c++:
Weird error, after beeing so frustrated for so long i decided to copy the “solution” code. And i more or less had exactly the same solution except for variable names. What i noticed however was that the solution used
“cin >> lightX >> lightY >> initialTX >> initialTY; cin.ignore();” instead of
“cin >> light_x >> light_y >> initial_tx >> initial_ty; cin.ignore();”
changing all of my light_x etc to lightX etc for all corresponding and voila my code worked perfectly.