I'm trying to solve problem 18A (18A - Triangle) at the moment, but for some reason i get RUNTIME ERROR on test 2 even though my code works perfectly fine both in VS Code and GDB online compiler. I have no idea what could be wrong and codeforces doesn't give me any hints. Any suggestions?
Here is my submission: 112722655