QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#47151#4717. Easter EggsmasonCompile Error//C++171.6kb2022-09-04 02:52:372022-09-04 02:52:38

詳細信息

answer.code:2:12: error: ‘vector’ was not declared in this scope
    2 | bool query(vector < int > v);
      |            ^~~~~~
answer.code:2:12: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
                 from /usr/include/c++/11/functional:62,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from answer.code: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 /usr/include/c++/11/functional:62,
                 from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
                 from /usr/include/c++/11/algorithm:74,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from answer.code:1:
/usr/include/c++/11/vector:86:13: note:   ‘std::pmr::vector’
   86 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
answer.code:2:21: error: expected primary-expression before ‘int’
    2 | bool query(vector < int > v);
      |                     ^~~
answer.code: In function ‘bool ok(int, int)’:
answer.code:35:28: error: ‘query’ cannot be used as a function
   35 |     return Map[que] = query(que);
      |                       ~~~~~^~~~~