run time error

FVOOOS - Online C++ Compiler & Debugging Tool - Ideone.com why i am getting runtime error

you missed & in scanf("%d\n",t);


oKAY one more thing you missed ‘\n’ in printf("%d",count); too… which will definitely result in WA…

Just Correct those… :slight_smile: