Language: C++

a#include <iostream>
#include <stdio.h>
#include <math.h>
#include <iomanip>

using namespace std;

double third_root(double xn, double q){
    if((xn*xn*xn-q)>-0.00001  &&  (xn*xn*xn-q)<0.00001){
        return xn;
    }
    
    xn = xn-((xn*xn*xn-q))/(3.0*xn*xn);
    return third_root(xn, q);
    
}


int main(void)
{
    long long int q;
    while(cin>>q){
        if(q==-1)break;
        cout<<setprecision(7)<<third_root((double)q/2.0, (double)q)<<endl;;
    }
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | a#include <iostream>
      |  ^
a.cc:1:1: error: 'a' does not name a type
    1 | a#include <iostream>
      | ^
In file included from /usr/include/math.h:275,
                 from /usr/include/c++/14/cmath:47,
                 from /usr/include/c++/14/math.h:36,
                 from a.cc:3:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:399:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  399 | __MATHDECL (__uintmax_t, ufromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:382:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  382 | __MATHDECL (__intmax_t, fromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:387:1: error: '__uintmax_t' does not name a type; did you mean '__uint128_t'?
  387 | __MATHDECL (__uintmax_t, ufromfp,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:393:1: error: '__intmax_t' does not name a type; did you mean '__int128_t'?
  393 | __MATHDECL (__intmax_t, fromfpx,, (_Mdouble_ __x, int __round,
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mat