Mã chấm Tài khoản Bài tập Ngôn ngữ lập trình Trạng thái Thời gian Bộ nhớ Kích thước Thời gian nộp
268759 Nguyễn Bảo Trân Ministop HUTECH C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 584 2023-11-18 20:34:50

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:11:10: error: ‘cout’ is not a member of ‘std’
     std::cout << "Enter the value of A: ";
          ^~~~
Main.cc:11:10: note: suggested alternative: ‘cbrt’
     std::cout << "Enter the value of A: ";
          ^~~~
          cbrt
Main.cc:12:10: error: ‘cin’ is not a member of ‘std’
     std::cin >> A;
          ^~~
Main.cc:12:10: note: suggested alternative: ‘sin’
     std::cin >> A;
          ^~~
          sin
Main.cc:14:10: error: ‘cout’ is not a member of ‘std’
     std::cout << "Enter the value of B: ";
          ^~~~
Main.cc:14:10: note: suggested alternative: ‘cbrt’
     std::cout << "Enter the value of B: ";
          ^~~~
          cbrt
Main.cc:15:10: error: ‘cin’ is not a member of ‘std’
     std::cin >> B;
          ^~~
Main.cc:15:10: note: suggested alternative: ‘sin’
     std::cin >> B;
          ^~~
          sin
Main.cc:17:10: error: ‘cout’ is not a member of ‘std’
     std::cout << "Enter the value of X: ";
          ^~~~
Main.cc:17:10: note: suggested alternative: ‘cbrt’
     std::cout << "Enter the value of X: ";
          ^~~~
          cbrt
Main.cc:18:10: error: ‘cin’ is not a member of ‘std’
     std::cin >> X;
          ^~~
Main.cc:18:10: note: suggested alternative: ‘sin’
     std::cin >> X;
          ^~~
          sin
Main.cc:20:10: error: ‘cout’ is not a member of ‘std’
     std::cout << "Enter the value of Y: ";
          ^~~~
Main.cc:20:10: note: suggested alternative: ‘cbrt’
     std::cout << "Enter the value of Y: ";
          ^~~~
          cbrt
Main.cc:21:10: error: ‘cin’ is not a member of ‘std’
     std::cin >> Y;
          ^~~
Main.cc:21:10: note: suggested alternative: ‘sin’
     std::cin >> Y;
          ^~~
          sin
Main.cc:26:10: error: ‘cout’ is not a member of ‘std’
     std::cout << "Result: " << result << std::endl;
          ^~~~
Main.cc:26:10: note: suggested alternative: ‘cbrt’
     std::cout << "Result: " << result << std::endl;
          ^~~~
          cbrt
Main.cc:26:47: error: ‘endl’ is not a member of ‘std’
     std::cout << "Result: " << result << std::endl;
                                               ^~~~