fork download
  1. #include <gmp.h>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main() {
  6. mpz_t x;
  7. mpz_set_str (x, "50", 10);
  8. char* str;
  9. mpz_get_str(str, 10, x);
  10. std::cout << str;
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 15224KB
stdin
Standard input is empty
compilation info
/home/jyOe18/cc9KBUjz.o: In function `main':
prog.cpp:(.text.startup+0x17): undefined reference to `__gmpz_set_str'
prog.cpp:(.text.startup+0x27): undefined reference to `__gmpz_get_str'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty