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
599818 Nguyễn Tiến Đạt ƯỚC NHIỀU NHẤT C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 599 2024-11-21 09:18:56

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:12:5: error: ‘vector’ was not declared in this scope; did you mean ‘std::vector’?
   12 |     vector a;
      |     ^~~~~~
      |     std::vector
In file included from /usr/include/c++/11/vector:67,
                 from Main.cc:5:
/usr/include/c++/11/bits/stl_vector.h:389:11: note: ‘std::vector’ declared here
  389 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
Main.cc:12:12: error: expected primary-expression before ‘int’
   12 |     vector a;
      |            ^~~
Main.cc:15:9: error: ‘push_back’ was not declared in this scope
   15 |         push_back(a1);
      |         ^~~~~~~~~
Main.cc:20:30: error: ‘a’ was not declared in this scope
   20 |         for(int j = 1;j