Problem seagame
User chenweilian
Submission Time 2023-11-03 21:47:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

seagame.cpp: In function ‘int dfs(int, int, int)’:
seagame.cpp:92:9: error: ‘assert’ was not declared in this scope
92 | assert(temp.back() != x);
| ^~~~~~
seagame.cpp:12:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
11 | #include <climits>
+++ |+#include <cassert>
12 | using namespace std;
seagame.cpp:104:9: error: ‘assert’ was not declared in this scope
104 | assert(temp.back() != x);
| ^~~~~~
seagame.cpp:104:9: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?