#include <gmp.h>
#include <iostream>
using namespace std;
int main( ) {
const char value[ ] = "96235339320723582731297999650619328611574614010999021848237120827540643111659533232015727929762536954203339783487664173696047326516635885455262198105225642482446692119316427901218236539841109025591679494504249230339260895382001896212435544491445991547084493259899920270469961432683116732424841364504250318567" ;
mpz_t x;
mpz_init_set_str ( x, value, 10 ) ;
char * to_send = ( char * ) malloc ( sizeof ( char ) * sizeof ( value) ) ;
size_t * count = ( size_t * ) malloc ( sizeof ( size_t ) ) ;
mpz_export ( ( void * ) to_send, count, 1 , sizeof ( char ) , 1 , 0 , x) ;
mpz_import( x, * count, 1 , sizeof ( char ) , 1 , 0 , to_send) ;
char str[ sizeof ( value) ] ;
mpz_get_str( str, 10 , x) ;
std:: cout << str;
return 0 ;
}
I2luY2x1ZGUgPGdtcC5oPgojaW5jbHVkZSA8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICBjb25zdCBjaGFyIHZhbHVlW10gPSAiOTYyMzUzMzkzMjA3MjM1ODI3MzEyOTc5OTk2NTA2MTkzMjg2MTE1NzQ2MTQwMTA5OTkwMjE4NDgyMzcxMjA4Mjc1NDA2NDMxMTE2NTk1MzMyMzIwMTU3Mjc5Mjk3NjI1MzY5NTQyMDMzMzk3ODM0ODc2NjQxNzM2OTYwNDczMjY1MTY2MzU4ODU0NTUyNjIxOTgxMDUyMjU2NDI0ODI0NDY2OTIxMTkzMTY0Mjc5MDEyMTgyMzY1Mzk4NDExMDkwMjU1OTE2Nzk0OTQ1MDQyNDkyMzAzMzkyNjA4OTUzODIwMDE4OTYyMTI0MzU1NDQ0OTE0NDU5OTE1NDcwODQ0OTMyNTk4OTk5MjAyNzA0Njk5NjE0MzI2ODMxMTY3MzI0MjQ4NDEzNjQ1MDQyNTAzMTg1NjciOwogIG1wel90IHg7CiAgbXB6X2luaXRfc2V0X3N0ciAoeCwgdmFsdWUsIDEwKTsKICAKICBjaGFyKiB0b19zZW5kID0gIChjaGFyKikgbWFsbG9jKHNpemVvZihjaGFyKSAqIHNpemVvZih2YWx1ZSkpOwogIHNpemVfdCogY291bnQgPSAoc2l6ZV90KikgbWFsbG9jKHNpemVvZihzaXplX3QpKTsKICBtcHpfZXhwb3J0ICgodm9pZCopdG9fc2VuZCwgY291bnQsIDEsIHNpemVvZihjaGFyKSwgMSwgMCwgeCk7CiAgCiAgbXB6X2ltcG9ydCh4LCAqY291bnQsIDEsIHNpemVvZihjaGFyKSwgMSwgMCwgdG9fc2VuZCk7CiAgCiAgY2hhciBzdHJbc2l6ZW9mKHZhbHVlKV07CiAgbXB6X2dldF9zdHIoc3RyLCAxMCwgeCk7CiAgc3RkOjpjb3V0IDw8IHN0cjsKICByZXR1cm4gMDsKCn0=
compilation info
/home/G2lO2c/ccJnIIfk.o: In function `main':
prog.cpp:(.text.startup+0x3e): undefined reference to `__gmpz_init_set_str'
prog.cpp:(.text.startup+0x7b): undefined reference to `__gmpz_export'
prog.cpp:(.text.startup+0x9e): undefined reference to `__gmpz_import'
prog.cpp:(.text.startup+0xb8): undefined reference to `__gmpz_get_str'
collect2: error: ld returned 1 exit status
stdout