Strange!
I made this code on Dev-C++ and the error occurred. I compiled it on Dev-C++ and ran it on Dev-C++. Then i made it on notepad and compiled it by myself in cmd, it runs perfectly. But, now it says "0 is divisible by 3". Why is it saying this?
By the way, http://cpp.sh is the native shell most of the code from this forum goes to run. You'll notice the little widget-like thing on the top right of your code box whenever you mouse over it.