QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#125601 | #91. Secret Permutation | Qwerty1232 | Compile Error | / | / | C++20 | 245b | 2023-07-16 23:57:32 | 2023-07-16 23:57:35 |
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 23:57:35]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-07-16 23:57:32]
- 提交
answer
#include <bits/stdc++.h>
//#include "permutation.h"
std::mt19937 rnd(2086);
std::vector<int> vec;
void solve(int n) {
rnd.seed(2);
n = 7;
vec.resize(n);
std::shuffle(vec.begin(), vec.begin() + 4, rnd);
return 0;
}
Details
answer.code: In function ‘void solve(int)’: answer.code:13:12: error: return-statement with a value, in function returning ‘void’ [-fpermissive] 13 | return 0; | ^