Prateek - candy

I got a solution of prateek loves candy problem https://online.codingblocks.com/player/8500/content/4702?s=1454 from discussion forum , that solution is working well on coding blocks ide but not on CODEBLOCKS or DEVC++, what should i do https://ide.codingblocks.com/s/51217 - solution

Hey Sonam, the code is correct, try to run your code after writing return 0; at the end of main(). If still it won’t work, copy paste the exact error here which you are getting on CODEBLOCKS or DEVC++ compilers.