QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#474287 | #3098. Ancient Machine | egypt_ioi2024b_04 | Compile Error | / | / | C++20 | 2.7kb | 2024-07-12 17:07:56 | 2024-07-12 17:07:57 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Bruno.code: In function ‘void Bruno(int, int, std::vector<int>)’: Bruno.code:46:5: error: ‘vector’ was not declared in this scope 46 | vector<bool> vis(N, false); | ^~~~~~ Bruno.code:46:5: note: suggested alternatives: In file included from /usr/include/c++/10/vector:67, from Bruno.h:1, from Bruno.code:1: /usr/include/c++/10/bits/stl_vector.h:389:11: note: ‘std::vector’ 389 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ In file included from Bruno.h:1, from Bruno.code:1: /usr/include/c++/10/vector:86:13: note: ‘std::pmr::vector’ 86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; | ^~~~~~ Bruno.code:46:12: error: expected primary-expression before ‘bool’ 46 | vector<bool> vis(N, false); | ^~~~ Bruno.code:50:17: error: ‘vis’ was not declared in this scope 50 | while (!vis[j] && j > id) { | ^~~ Bruno.code:55:9: error: ‘vis’ was not declared in this scope 55 | vis[i] = true; | ^~~ Bruno.code:59:13: error: ‘vis’ was not declared in this scope 59 | if (vis[i])continue; | ^~~