QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#47151 | #4717. Easter Eggs | mason | Compile Error | / | / | C++17 | 1.6kb | 2022-09-04 02:52:37 | 2022-09-04 02:52:38 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
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); | ~~~~~^~~~~