QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#872465#8618. Have You Seen This Subarray?ucup-team5064#Compile Error//C++207.4kb2025-01-26 01:52:432025-01-26 01:52:43

Details

answer.code:35:9: error: ‘unordered_map’ does not name a type
   35 |         unordered_map<int,int> to;
      |         ^~~~~~~~~~~~~
answer.code: In member function ‘int ACunfixed::add(std::vector<int>)’:
answer.code:43:23: error: ‘__gnu_cxx::__alloc_traits<std::allocator<ACunfixed::node>, ACunfixed::node>::value_type’ {aka ‘struct ACunfixed::node’} has no member named ‘to’
   43 |             if (!d[v].to.count(c)) {
      |                       ^~
answer.code:44:22: error: ‘__gnu_cxx::__alloc_traits<std::allocator<ACunfixed::node>, ACunfixed::node>::value_type’ {aka ‘struct ACunfixed::node’} has no member named ‘to’
   44 |                 d[v].to[c] = d.size();
      |                      ^~
answer.code:47:22: error: ‘__gnu_cxx::__alloc_traits<std::allocator<ACunfixed::node>, ACunfixed::node>::value_type’ {aka ‘struct ACunfixed::node’} has no member named ‘to’
   47 |             v = d[v].to[c];
      |                      ^~
answer.code: In member function ‘int ACunfixed::nex(int, int)’:
answer.code:53:33: error: ‘__gnu_cxx::__alloc_traits<std::allocator<ACunfixed::node>, ACunfixed::node>::value_type’ {aka ‘struct ACunfixed::node’} has no member named ‘to’
   53 |         while (j != -1 && !d[j].to.count(c)) j = d[j].link;
      |                                 ^~
answer.code:54:35: error: ‘__gnu_cxx::__alloc_traits<std::allocator<ACunfixed::node>, ACunfixed::node>::value_type’ {aka ‘struct ACunfixed::node’} has no member named ‘to’
   54 |         return j == -1 ? 0 : d[j].to[c];
      |                                   ^~
answer.code: In member function ‘void ACunfixed::init()’:
answer.code:61:33: error: ‘__gnu_cxx::__alloc_traits<std::allocator<ACunfixed::node>, ACunfixed::node>::value_type’ {aka ‘struct ACunfixed::node’} has no member named ‘to’
   61 |             for (auto it : d[v].to) {
      |                                 ^~