> scanf("%f %c % f", &value1, &operator, &value2);
There is a space between "%" and "f" which should not be there.

> I'm using Codeblocks.
Go into project settings and put -Wall -Wextra on the compiler options.