Why am i getting wrong answers ,while on ide it's giving correct answers