SIGXFSZ error!!!

I am getting this error, I know what it means , I tried to reading from file on my own test cases. Here everything is looking fine but on submission I am getting this error. How to solve this problem ??

Hi himu2214225,

SIGXFSZ is “exceeded file size”. Your program is outputting too much values, that the output file generated is having a size larger than that is allowable. Sometimes, people get this error when the input statements in the code doesn’t match the input given by the input file.

For instance, if the input file has total 100 values but you try to read 100+ values, you can get a SIGXFSZ error!