Compile time error

The code is running without any error in eclipse and is giving the correct output. However, in the coding blocks platform, it is giving a compile-time error and I don’t understand the reason behind it.