Doubt in challenge round

i wrote a code for basic calculator it is running fine in eclipse but showing error in challenge round.this is happening very often and because of that i have to unlock editorial code .