Very large binary file generated on compilation

Revision en1, by doubtforces, 2020-07-09 12:55:47

Hi!

I was coding the Segment Tree (Dynamic) in C++ by storing all the data of a node in a struct. While coding, I found that the following small piece of code generated a very large binary file on the compilation (32 MB). Even compilation time was a little longer than usual.

Code generating 32 MB binary file

However, while doing a slight change in the above code, the size of the binary file reduced to 20 KB (that's around 1600 times smaller).

Code generating 20 KB binary file

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en9 English doubtforces 2020-07-09 14:32:03 0 (published)
en8 English doubtforces 2020-07-09 14:31:22 2 Tiny change: ' TOO LARGE (1600 times larger?)\n' -> ' TOO LARGE? (1600 times larger)\n'
en7 English doubtforces 2020-07-09 14:31:01 73
en6 English doubtforces 2020-07-09 14:29:48 434
en5 English doubtforces 2020-07-09 14:24:44 48
en4 English doubtforces 2020-07-09 14:22:49 24
en3 English doubtforces 2020-07-09 14:20:39 2986 Tiny change: 'p.g++17'}]\n```' -> 'p.g++17'}]```'
en2 English doubtforces 2020-07-09 13:01:12 140 Tiny change: 'mpilation (**32 MB**). Even com' -> 'mpilation **(32 MB)**. Even com'
en1 English doubtforces 2020-07-09 12:55:47 975 Initial revision (saved to drafts)