Problem duckhunt35
User JoshJuice
Submission Time 2025-12-21 21:38:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt35.cpp:12:14: error: ‘std::bitset<200005> kill’ redeclared as different kind of entity
12 | bitset<MAXN> kill, visited;
| ^~~~
In file included from /usr/include/c++/9/csignal:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:43,
from duckhunt35.cpp:1:
/usr/include/signal.h:112:12: note: previous declaration ‘int kill(__pid_t, int)’
112 | extern int kill (__pid_t __pid, int __sig) __THROW;
| ^~~~
duckhunt35.cpp: In function ‘int main()’:
duckhunt35.cpp:19:43: error: assignment of read-only location ‘*(kill + ((sizetype)i))’
19 | child_count[i] = visited[i] = kill[i] = 0;
| ~~~~~~~~^~~
duckhunt35.cpp:45:18: error: assignment of read-only location ‘*(kill + ((sizetype)node))’
45 | kill[node] = 1;
| ~~~~~~~~~~~^~~
duckhunt35.cpp:50:50: error: assignment of read-only locati