unsigned int n,k,t;
Very first, please try pasting your code above in proper blocks or it’s always better to give the ideone link. The code is giving RTE because you haven’t added
return 0; statement for
main(). Add that and it’ll work.
Correctly format your code on give a link. Also provide details about the question you are trying to solve.
One problem with your code is that there is no return statement. Add a return(0) statement before the last braces.