Mã chấm: 268435


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