Submission #1207751

#TimeUsernameProblemLanguageResultExecution timeMemory
1207751tamzidConnecting Supertrees (IOI20_supertrees)C++20
Compilation error
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; }

Compilation message (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>>;
      |             ^~~~~~