husoski
I've used Code::Blocks for about 10 years on Windows XP, 7 and 10 systems. If you have it installed correctly on a supported OS, it works fine.
If you want help with your problem, add details. What version of CB? What OS? Show source code (or link to a code pasting site). What compiler and what build options are you using?
Did you get any warnings or unusual messages on the compile or link? (Be sure to turn on all warnings, using "--Wall --Wextra --pedantic" on gcc/g++ and compatible compilers like MinGW.
How are you running the thing? Use F9 or click "Build & Run"; don't click the red "debug/continue" button until you are familiar with the basics of the IDE and are ready to start learning how to use the debugger.
Robert J
"Code blocks" is an IDE that can be used with various compilers.
Have you actually installed a compiler and configured code blocks with the compiler location & settings?
VP
Does your program run while you're in Code Block's edit mode?
?
The problem is in your code not in the compiler. Some compilers have some very specific coding requirements that have to be met before your code will compile. You should read the directions before writing anymore code.