제출 #1207751

#제출 시각아이디문제언어결과실행 시간메모리
1207751tamzid슈퍼트리 잇기 (IOI20_supertrees)C++20
컴파일 에러
0 ms0 KiB
#include "supertrees.h" #include <vector> int construct(std::vector<std::vector<int>> p) { int n = p.size(); std::vector<std::vector<int>> answer(n,vector<int>(n,0)); build(answer); return 1; }

컴파일 시 표준 에러 (stderr) 메시지

supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:6:48: error: 'vector' was not declared in this scope
    6 |         std::vector<std::vector<int>> answer(n,vector<int>(n,0));
      |                                                ^~~~~~~~~~~
supertrees.cpp:6:48: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
                 from supertrees.h:1,
                 from supertrees.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:389:11: note:   'std::vector'
  389 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
In file included from supertrees.h:1,
                 from supertrees.cpp:1:
/usr/include/c++/11/vector:86:13: note:   'std::pmr::vector'
   86 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~