QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#536727 | #141. 8 染色 | egypt_ioi2024b_04# | Compile Error | / | / | C++20 | 895b | 2024-08-29 16:04:23 | 2024-08-29 16:04:23 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Alice.code: In function ‘std::vector<int> Alice(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’: Alice.code:12:5: error: ‘vector’ was not declared in this scope 12 | vector<int> ret; | ^~~~~~ Alice.code:12:5: 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 Alice.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 Alice.code:1: /usr/include/c++/11/vector:86:13: note: ‘std::pmr::vector’ 86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ Alice.code:12:12: error: expected primary-expression before ‘int’ 12 | vector<int> ret; | ^~~ Alice.code:15:13: error: ‘ret’ was not declared in this scope 15 | ret.push_back(((C[i] & (1 << j)) > 0)); | ^~~ Alice.code:18:12: error: ‘ret’ was not declared in this scope 18 | return ret; | ^~~