Segmentation Errors
Marc Glisse
marc.glisse at inria.fr
Wed Mar 14 16:15:17 CET 2012
On Wed, 14 Mar 2012, Chris Osborne wrote:
No time to debug your code, just a few comments:
> #include <gmpxx.h>
If you're not going to use mpz_class, you can include just gmp.h (though I
would advise you to use mpz_class ;-)
> char temp0[2000001];
[...]
> char temp1[2000010];
That's huge, don't put that on the stack.
Have you seen this?
http://gmplib.org/manual/C_002b_002b-Formatted-Input.html
--
Marc Glisse
More information about the gmp-discuss
mailing list