Possible compiler error? Does codechef use the path on your computer?

I’m pretty sure the path on my computer is stuffed because I can’t use enviroments such as Codeblocks, but I have been able to use other sites such as hackerrank. I have come to codeblocks to get more problems of certain types as I ran out. I submitted a solution to a very basic problem https://www.codechef.com/problems/DEPCHEF and it was correct. However, if I try to run (not submit, but run) the code, I get an infinite loop and a SIGSEF error. I have checked through my code, and even looked at other solutions which passed, but these have the same problem. I have also compiled my solution independently using another IDE and it worked. Has anyone else had the same problem?

//