Here you can see some great websites for training and executing your code online.
While some compilers are easy to install and use, some of them are expensive in terms of memory and RAM. The solution is to do it compiles online, run it and download the executable on your computer using an on-line IDE. These web sites are:
Ideone is an online compiler and debugging tool that lets you do it compiles source code and run it online in more than 60 programming languages. Some of these are: C, C ++, C #, Objective C, Java, Pascal, Perl, PHP, Ada, COBOL, FORTRAN, Bash and others.
Codepad.org is an on-line compiler / interpreter and a simple collaboration tool. It is a window that executes code for you. You can paste your code and the CodePad runs and gives you a short URL that you can use to share your work. Paste it URL chat or e-mail to get help or to show someone how to do something. Or just try things out when you do not have a good one to interpret. It works well on many phones.
The languages supported are: C, C ++, Perl, PHP, Python and so on.
This is another great online IDE with support for almost any familiar programming language.
"An online compiler and editor for Java, C, C ++, Perl, PHP, Python and more…"
With these webpages you will only need a link to Internet to run your code and you can avoid all the issues that arise after installing a software compiler or interpreter.