Long time taken to compile code

I am also having trouble compiling code. It takes 7minutes to run a simple code with no error message on screen, it just keeps running, the only way to reset is by refreshing the website.