Having a C program source code is not enough, you need to have a compiler too. Then, compiler would need the references (locations) where to find the headers (if there are any in the source code). Those headers need to be accessible by the compiler, to link them and create an executable.
So, just the Code::Blocks or Dev C++ is not enough. You have to understand how a program is actually created.
1. You write the program in C programming language.
- As mentioned in comment to your question, by PIEBALDconsult, you can write the program in anything... Anything. There is no need to have Visual Studio installed!
2. Make sure you are having a compiler for that language. If you are not going to install an IDE, GCC is your bet!
GCC compiler for C[
^] would compile the source code and give you an executable. For that C source file.
3. Compiler, if finds any errors, will notify you! So, ensure to fix them. (Coming to this point later)
4. Execute the executable file created to see the output.
- It depends on frameworks, on Windows you can double click and a console will open, on Linux-based systems, to see the output you may want to open a terminal at that location first.
Now, that is the entire process. If you understood it, great, if you didn't. Start by following (and performing the steps) from the step 1.
The thing you mentioned, "errors" in it. The errors are because the compiler doesn't understand what you wrote. Compiler is smart enough, but not smart enough to solve the problems for you. :-)
So you have to solve the problems yourself. In case of C, that can be a headache. If you cannot solve them,
I recommend you contact your teacher and ask him to help you out. :-)