Main.cc: In function ‘int main()’:
Main.cc:31:10: error: ‘cout’ is not a member of ‘std’
std::cout << "Nhap so luong bo test: ";
^~~~
Main.cc:31:10: note: suggested alternative: ‘cbrt’
std::cout << "Nhap so luong bo test: ";
^~~~
cbrt
Main.cc:32:10: error: ‘cin’ is not a member of ‘std’
std::cin >> t;
^~~
Main.cc:32:10: note: suggested alternative: ‘sin’
std::cin >> t;
^~~
sin
Main.cc:33:10: error: ‘vector’ is not a member of ‘std’
std::vector results;
^~~~~~
Main.cc:33:17: error: expected primary-expression before ‘int’
std::vector results;
^~~
Main.cc:36:14: error: ‘cout’ is not a member of ‘std’
std::cout << "Nhap so nguyen x: ";
^~~~
Main.cc:36:14: note: suggested alternative: ‘cbrt’
std::cout << "Nhap so nguyen x: ";
^~~~
cbrt
Main.cc:37:14: error: ‘cin’ is not a member of ‘std’
std::cin >> x;
^~~
Main.cc:37:14: note: suggested alternative: ‘sin’
std::cin >> x;
^~~
sin
Main.cc:40:13: error: ‘results’ was not declared in this scope
results.push_back(1);
^~~~~~~
Main.cc:42:13: error: ‘results’ was not declared in this scope
results.push_back(0);
^~~~~~~
Main.cc:45:10: error: ‘cout’ is not a member of ‘std’
std::cout << "Ket qua: ";
^~~~
Main.cc:45:10: note: suggested alternative: ‘cbrt’
std::cout << "Ket qua: ";
^~~~
cbrt
Main.cc:46:23: error: ‘results’ was not declared in this scope
for (int result : results) {
^~~~~~~
Main.cc:46:23: note: suggested alternative: ‘result’
for (int result : results) {
^~~~~~~
result
Main.cc:47:14: error: ‘cout’ is not a member of ‘std’
std::cout << result << " ";
^~~~
Main.cc:47:14: note: suggested alternative: ‘cbrt’
std::cout << result << " ";
^~~~
cbrt
Main.cc:49:10: error: ‘cout’ is not a member of ‘std’
std::cout << std::endl;
^~~~
Main.cc:49:10: note: suggested alternative: ‘cbrt’
std::cout << std::endl;
^~~~
cbrt
Main.cc:49:23: error: ‘endl’ is not a member of ‘std’
std::cout << std::endl;
^~~~