How can i run on Ubuntu (Linux) OS?



My teacher requires our code to run on his PC which is Ubuntu.
I heard i can compile my code via Ubuntu here on Cloud9 which is why i am here:)
I have googled what i know and have not figured it out:/
Please guide me!


First, which language is the code you need to compile in?


The language i am using is C++


In that case you can use GCC Compiler to compile your C++ source code files.

Your C++ Source code files must use .cpp extension.

Try this, write a simple “Hello World” program in C++ and compile that file using GCC using your terminal:

gcc <filename>

Additionally you can use the built in Runner in your workspace which will compile and run your program as well.