QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#877251#1155. CaveGuanYunchangCompile Error//C++171.6kb2025-01-31 20:37:462025-01-31 20:37:50

详细

answer.code: In function ‘void solve(int, std::vector<std::pair<int, int> >&, int&)’:
answer.code:19:23: error: too many arguments to function ‘int tryCombination(int*)’
   19 |     if (tryCombination(tri, num) == num) {
      |         ~~~~~~~~~~~~~~^~~~~~~~~~
In file included from answer.code:4:
cave.h:8:5: note: declared here
    8 | int tryCombination(int S[]);
      |     ^~~~~~~~~~~~~~
answer.code:42:27: error: too many arguments to function ‘int tryCombination(int*)’
   42 |         if (tryCombination(tri, num) == num) {
      |             ~~~~~~~~~~~~~~^~~~~~~~~~
cave.h:8:5: note: declared here
    8 | int tryCombination(int S[]);
      |     ^~~~~~~~~~~~~~