C++ code unable to understand and not able to download the compiler

I did not get what is the use of using namespace std and can we use codeblocks instead of sublime as i am unable to install g++ compiler and can you tell why do we write return 0;

Hey @jhaisha0003

In each scope, a name can only represent one entity. So, there cannot be two variables with the same name in the same scope. Using namespaces, we can create two variables or member functions having the same name.

Yes you can used codeblocks instead of sublime text

When you declare your int main () {
Function
At the end of it always write
Return 0
}

If you still have any doubt you can ask for it :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.