Problem | manycolours |
---|---|
User | haydendoo |
Submission Time | 2023-02-14 20:17:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
manycolours.cpp:412: error: unterminated argument list invoking macro "assert"
412 | }
|
manycolours.cpp: In function ‘void solve()’:
manycolours.cpp:380:22: error: ‘assert’ was not declared in this scope
380 | int anc=lca(a, b);assert(in[anc]<=min(in[a], in[b]);
| ^~~~~~
manycolours.cpp:11:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
10 | #include <ext/pb_ds/assoc_container.hpp>
+++ |+#include <cassert>
11 | #include <ext/pb_ds/tree_policy.hpp>
manycolours.cpp:380:22: error: expected ‘}’ at end of input
380 | int anc=lca(a, b);assert(in[anc]<=min(in[a], in[b]);
| ^~~~~~
manycolours.cpp:379:15: note: to match this ‘{’
379 | if(curr==c) { if(a==b) { ans[index]=0; continue; }
| ^
manycolours.cpp:380:22: error: expected ‘}’ at end of input
380 |