You don't want conio.h. If you are using latest version of codeblocks, it probably means that you have MinGW as your compiler... MinGW does not contain <conio.h> as one of its header files, due to being a non-standard header.
For scanf, try #include <cstdio> , this should provide you with all the C-Style input and output functions.