QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#125600 | #91. Secret Permutation | Qwerty1232 | Compile Error | / | / | C++20 | 249b | 2023-07-16 23:56:48 | 2023-07-16 23:56:51 |
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:56:51]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-07-16 23:56:48]
- 提交
answer
#include <bits/stdc++.h>
//#include "permutation.h"
std::mt19937 rnd(2086);
std::vector<int> vec;
void solve(int n) {
rnd.seed(2);
int n = 7;
vec.resize(n);
std::shuffle(vec.begin(), vec.begin() + 4, rnd);
return 0;
}
詳細信息
answer.code: In function ‘void solve(int)’: answer.code:10:13: error: declaration of ‘int n’ shadows a parameter 10 | int n = 7; | ^ answer.code:8:16: note: ‘int n’ previously declared here 8 | void solve(int n) { | ~~~~^ answer.code:13:12: error: return-statement with a value, in function returning ‘void’ [-fpermissive] 13 | return 0; | ^