In dev c++ this c-program works perfectly fine, but on a online compiler results in a rte-runtime error. I am new to programing and the code is very messy but i will greatly gre