Please my main.cpp cannot build and run | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Please my main.cpp cannot build and run

3rd May 2017, 11:03 AM
Adams Michael Okyere
Adams Michael Okyere - avatar
12 Answers
+ 20
#include <iostream> using namespace std; int main () { cout << "hello world" << endl; return 0; } // Please make sure you use << (double <) instead of « symbol
3rd May 2017, 11:12 AM
Hatsy Rei
Hatsy Rei - avatar
+ 20
It would be great if you would just uninstall CodeBlocks and do a clean install on Dev C++ 5.11 https://sourceforge.net/projects/orwelldevcpp/
3rd May 2017, 11:30 AM
Hatsy Rei
Hatsy Rei - avatar
+ 19
Please post your code so we can fix it.
3rd May 2017, 11:07 AM
Hatsy Rei
Hatsy Rei - avatar
+ 19
What error is it throwing?
3rd May 2017, 11:17 AM
Hatsy Rei
Hatsy Rei - avatar
3rd May 2017, 11:25 AM
jay
jay - avatar
+ 6
codeblocks is not setup correctly
3rd May 2017, 11:23 AM
jay
jay - avatar
+ 5
what program are you using?
3rd May 2017, 11:20 AM
jay
jay - avatar
+ 2
"sololearn - debug": The complied's setup (GNU GCC complier) is invalid, so code::blocks cannot find /run the computer. probably the toolchain path within the complier options is not setup correctly?! (do you have a complier installed)
3rd May 2017, 11:20 AM
Adams Michael Okyere
Adams Michael Okyere - avatar
+ 2
codeblocks
3rd May 2017, 11:22 AM
Adams Michael Okyere
Adams Michael Okyere - avatar
+ 1
#include ‹iostream> using namespace std; it main () { cost «"hello world" «end; return 0; }
3rd May 2017, 11:11 AM
Adams Michael Okyere
Adams Michael Okyere - avatar
+ 1
still not working
3rd May 2017, 11:14 AM
Adams Michael Okyere
Adams Michael Okyere - avatar
+ 1
please teach me how to set it up correctly
3rd May 2017, 11:24 AM
Adams Michael Okyere
Adams Michael Okyere - avatar