QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#125587 | #91. Secret Permutation | Qwerty1232 | Compile Error | / | / | C++20 | 190b | 2023-07-16 22:33:09 | 2023-07-16 22:33:11 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-07-16 22:33:11]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-07-16 22:33:09]
- 提交
answer
#include <bits/stdc++.h>
#include "permutation.h"
std::mt19937 rnd;
void solve(int n) {
vector<int> vec(n);
// std::shuffle(vec.begin(), vec.end(), rnd);
return;
}
详细
answer.code: In function ‘void solve(int)’: answer.code:8:5: error: ‘vector’ was not declared in this scope 8 | vector<int> vec(n); | ^~~~~~ answer.code:8: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 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:8:12: error: expected primary-expression before ‘int’ 8 | vector<int> vec(n); | ^~~