QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#346685#91. Secret PermutationkarriganCompile Error//C++201.5kb2024-03-08 21:11:022024-03-08 21:11:03

詳細信息

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){
      |      ^~~~~~