QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#401160#124. Libraryhyforces#Compile Error//C++202.1kb2024-04-28 03:31:082024-04-28 08:59:31

Details

answer.code: In function ‘int query(std::vector<int>)’:
answer.code:17:18: error: invalid initialization of reference of type ‘const std::vector<int>&’ from expression of type ‘std::vector<bool>’
   17 |     return Query(ret);
      |                  ^~~
In file included from answer.code:2:
library.h:2:35: note: in passing argument 1 of ‘int Query(const std::vector<int>&)’
    2 | int Query(const std::vector<int>& M);
      |           ~~~~~~~~~~~~~~~~~~~~~~~~^