Can we use codeblocks compiler for Codechef submissions?

I’m trying to use codeblocks compiler to submit my code for codechef. When i execute a program in codeblocks, i get the correct output but when i submit the same code on CodeChef it shows an “WRONG SUBMISSION”. Saying the output doesn’t match the required output. I’ve tried with different problems but its not working. The codeblock compiler i’m using is CodeBlocks 12.11. Please help. Thanx in advance.