QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#346685 | #91. Secret Permutation | karrigan | Compile Error | / | / | C++20 | 1.5kb | 2024-03-08 21:11:02 | 2024-03-08 21:11:03 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void solve(int)’: answer.code:34:14: error: call of overloaded ‘query(std::vector<int>&)’ is ambiguous 34 | int ans=query(a); | ~~~~~^~~ In file included from answer.code:2: permutation.h:4:5: note: candidate: ‘int query(std::vector<int>)’ 4 | int query(std::vector<int> v); | ^~~~~ answer.code:20:5: note: candidate: ‘int query(const std::vector<int>&)’ 20 | int query(const vector<int> &V){ | ^~~~~ answer.code: In lambda function: answer.code:52:13: error: call of overloaded ‘query(std::vector<int>&)’ is ambiguous 52 | return query(c); | ~~~~~^~~ permutation.h:4:5: note: candidate: ‘int query(std::vector<int>)’ 4 | int query(std::vector<int> v); | ^~~~~ answer.code:20:5: note: candidate: ‘int query(const std::vector<int>&)’ 20 | int query(const vector<int> &V){ | ^~~~~ answer.code: In function ‘void solve(int)’: answer.code:84:7: error: call of overloaded ‘answer(std::vector<int>&)’ is ambiguous 84 | answer(cc); | ~~~~~~^~~~ permutation.h:5:6: note: candidate: ‘void answer(std::vector<int>)’ 5 | void answer(std::vector<int> v); | ^~~~~~ answer.code:27:6: note: candidate: ‘void answer(const std::vector<int>&)’ 27 | void answer(const vector<int> &V){ | ^~~~~~