SIGTSTP Error

SIGTSTP error! Please help…

I have made a program which should take a string (max length 20) as input. It would output the string after removing the duplicate characters in it.

But i’m getting a SIGTSTP run-time error.

#include 
using namespace std;

int main() {

int i, chS=0, chI;
char strig[20], chh;

i=0;
nxtChar:
while(1)
{
    cin>>chh;
    if(chh==13)
    {
        cout<<endl<<strig;
        exit(0);
    }

    for(chI=0; chI<chS; chI++)
    {
        if(chh==strig[chI])
            goto nxtChar;
    }
    strig[chS++]=chh;
    i++;
}

return 0;

}