what is error code SIGTSTP means?here is the link for my code. link to my code but it works with sample case.i am not able to found wrong in my code.
You should first see that anything more than 20! cannot be stored in any data type of C++/C . You should either switch to JAVA/python for this Q, or learn how to store huge numbers in C/C++. And then, declare the array of size 101 instead of 100. Due to 0 based indexing, valid memory locations are [0,1,2…99] not [1,2,3…100]. So for n=100 your code can give error.
SIGSTP suspends your process , this signal could be expilcit or due to an invalid operation leading to no output like
unsigned int x = 0 ;
x – ; // invalid operation
or any other such operation
Here it is for my code
int long MOD=10^9+7;
for the above code it dosen’t give the error but for this /int long MOD=1000000007;/
it sort of give this problem.
same issue with python.
Where is error in mine? I get SIGTSTP in C++
That’s a compiler error, not a SIGTSTP
The SIGTSTP signal is an interactive stop signal. Unlike SIGSTOP , this signal can be handled and ignored. … When any process in a background job tries to read from the terminal, all of the processes in the job are sent a SIGTTIN signal. The default action for this signal is to stop the process.
It results from certain some unimplemented instructions (i.e you are trying to give a instruction which is not implemented in GNU library) which might be emulated in software, or the operating system’s failure to properly emulate them. This Error Can’t be removed . try other compiler, it will surely help you.
But on running custom code I get SIGTSTP
Are you trying to “Run” without Providing “Custom Input”?
https://www.codechef.com/JULY20B/submit/CHFNSWPS can anyone help me its showing sigstp