You are not logged in. Please login at to post your questions!


SIGXFSZ runtime error

I am getting SIGXFSZ runtime error for a problem. What is the possible reason for this error?

asked 05 Aug '13, 17:34

atulshgl's gravatar image

accept rate: 0%

edited 11 Aug '13, 08:58

It 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.

Are you sure, you are getting this in codechef??


answered 05 Aug '13, 17:46

tijoforyou's gravatar image

accept rate: 15%


I have got this error on other online IDEs. But never on codechef. Whenever, there is some extra output, that would be judged wrong answer, immediately. That is why I asked whether you are getting this error on codechef.

(05 Aug '13, 17:50) tijoforyou2★

May be stray/extra white-spaces can be the reason.

(05 Aug '13, 17:51) tijoforyou2★

Ya I got this in codechef... Thanx for the answer

(05 Aug '13, 21:23) atulshgl2★

sometimes i get this error when the input statements in my code dont match the input given by the input file.for example if your input file has total 50 values but you try to read 50+ values you can get a SIGXFSZ error.that why it says execeeded are reading more inputs than available from the test file.


answered 05 Aug '13, 19:32

sairampraneeth's gravatar image

accept rate: 0%

edited 05 Aug '13, 19:35

Thanks for saving my day! For those using EOF and getting this error never use while(EOF)

instead try

while(scanf("%d", &s));

For reason search on google about EOF

(03 Aug '14, 13:50) devyadav3★

I just got this error because I was not answering the question MOD 1000000007. Perhaps, this increased the file size so much it, gave me a Runtime Error with SIGXFSZ.


answered 03 Sep '17, 11:27

dhruvsomani's gravatar image

accept rate: 8%

edited 03 Sep '17, 11:40

In my case, getting a lot of outputs leads to this. Actually, I forget to comment out the unwanted print statement.


answered 10 Mar, 22:22

yash005's gravatar image

accept rate: 0%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 05 Aug '13, 17:34

question was seen: 22,998 times

last updated: 10 Mar, 22:22