Problem charges
User shoryu386
Submission Time 2026-02-25 17:44:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

charges.cpp:94: error: unterminated argument list invoking macro "assert"
94 | }
|
charges.cpp: In function ‘void solve()’:
charges.cpp:69:19: error: ‘assert’ was not declared in this scope
69 | if (t == 'R') assert(pol[a] != pol
| ^~~~~~
charges.cpp:2:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
1 | #include <bits/stdc++.h>
+++ |+#include <cassert>
2 |
charges.cpp:69:19: error: expected ‘}’ at end of input
69 | if (t == 'R') assert(pol[a] != pol
| ^~~~~~
charges.cpp:68:34: note: to match this ‘{’
68 | if(find_set(a) == find_set(b)){
| ^
charges.cpp:69:19: error: expected ‘}’ at end of input
69 | if (t == 'R') assert(pol[a] != pol
| ^~~~~~
charges.cpp:67:15: note: to match this ‘{’
67 | if(t !