SIGEMT run time error (PERMUT2)

why i am getting SIGEMT run time error in my program…plss help

No. of test cases is not specified you need to stop when 0 is entered.
Reread the question.
remove cin>>t and the while loop after that, You can take while(1) and put an if condition.

Hope this helps.

did that but …still showing the same error…