Mã chấm: 268386


Main.cc:7:5: error: expected initializer before ‘double’
     double approximatePi(int n) {
     ^~~~~~
Main.cc: In function ‘int main()’:
Main.cc:23:20: error: ‘approximate’ was not declared in this scope
     double result =approximate Pi(n);
                    ^~~~~~~~~~~
Main.cc:25:22: error: ‘setprecision’ was not declared in this scope
     cout << fixed << setprecision(5) << result << endl;
                      ^~~~~~~~~~~~