QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#155743#4218. Hidden Graphalch07Compile Error//C++142.1kb2023-09-02 03:34:452023-09-02 03:34:45

詳細信息

answer.code: In function ‘std::pair<int, int> query(std::vector<int>)’:
answer.code:18:5: error: ‘assert’ was not declared in this scope
   18 |     assert(!edge[a][b] && !edge[b][a]);
      |     ^~~~~~
answer.code:3:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
    2 | #include <vector>
  +++ |+#include <cassert>
    3 |