| Problem | doll_noi |
|---|---|
| User | pasit |
| Submission Time | 2026-02-17 14:57:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
doll_noi.cpp:17:15: error: expected identifier before ‘(’ token
17 | bool union(int u, int v){
| ^
doll_noi.cpp:17:16: error: expected unqualified-id before ‘int’
17 | bool union(int u, int v){
| ^~~
doll_noi.cpp:17:16: error: expected ‘)’ before ‘int’
17 | bool union(int u, int v){
| ~^~~
| )
doll_noi.cpp:28:2: error: expected ‘;’ after struct definition
28 | }
| ^
| ;
doll_noi.cpp: In function ‘int main()’:
doll_noi.cpp:44:21: error: ‘findpar’ was not declared in this scope
44 | ans -= (dsu.size[findpar(a-1)-1]+1)/2;
| ^~~~~~~
doll_noi.cpp:45:4: error: expected primary-expression before ‘union’
45 | union(a,a-1);
| ^~~~~
doll_noi.cpp:50:21: error: ‘findpar’ was not declared in this scope
50 | ans -= (dsu.size[findpar(a+1)]+1)/2;
|