Mã chấm: 268138


Main.cc: In function ‘int main()’:
Main.cc:19:10: error: ‘cout’ is not a member of ‘std’
     std::cout << "Nhập số nguyên dương n: ";
          ^~~~
Main.cc:19:10: note: suggested alternative: ‘cbrt’
     std::cout << "Nhập số nguyên dương n: ";
          ^~~~
          cbrt
Main.cc:20:10: error: ‘cin’ is not a member of ‘std’
     std::cin >> n;
          ^~~
Main.cc:20:10: note: suggested alternative: ‘sin’
     std::cin >> n;
          ^~~
          sin
Main.cc:23:10: error: ‘cout’ is not a member of ‘std’
     std::cout << "Xấp xỉ giá trị của Pi là: " << std::setprecision(5) << std::fixed << approximation << std::endl;
          ^~~~
Main.cc:23:10: note: suggested alternative: ‘cbrt’
     std::cout << "Xấp xỉ giá trị của Pi là: " << std::setprecision(5) << std::fixed << approximation << std::endl;
          ^~~~
          cbrt
Main.cc:23:65: error: ‘setprecision’ is not a member of ‘std’
     std::cout << "Xấp xỉ giá trị của Pi là: " << std::setprecision(5) << std::fixed << approximation << std::endl;
                                                                 ^~~~~~~~~~~~
Main.cc:23:89: error: ‘fixed’ is not a member of ‘std’
     std::cout << "Xấp xỉ giá trị của Pi là: " << std::setprecision(5) << std::fixed << approximation << std::endl;
                                                                                         ^~~~~
Main.cc:23:120: error: ‘endl’ is not a member of ‘std’
     std::cout << "Xấp xỉ giá trị của Pi là: " << std::setprecision(5) << std::fixed << approximation << std::endl;
                                                                                                                        ^~~~