#include #include #include using namespace std; void basepi(mpfr_t, int, int&, int&, int&, int&, mpfr_prec_t); int main(int arg,char *var[]){     if (arg!=2){         cout << "Wrong number of command line variables" << endl;         return -1;     }     int n = atoi(var[1]);     const mpfr_prec_t p = n*10;     mpfr_t pi;     mpfr_init2(pi, p);     mpfr_const_pi (pi, GMP_RNDD);     int tot0, tot1, tot2, tot3;     tot0=tot1=tot2=tot3=0;     basepi(pi, n, tot0, tot1, tot2, tot3, p);     cout << float(tot0)/n << endl;     cout << float(tot1)/n << endl;     cout << float(tot2)/n << endl;     cout << float(tot3)/n << endl; } void basepi(mpfr_t in, int n, int& tot0, int& tot1, int& tot2, int& tot3, mpfr_prec_t  p){     mpfr_frac (in, in, GMP_RNDD);     long di =0;     mpfr_t d,pi;     mpfr_inits2 (p, d, pi,(void*)0);     mpfr_const_pi (pi, GMP_RNDD);     int i=0;     while(i