Problem duckhunt12
User marcos
Submission Time 2025-06-17 11:14:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt12.cpp: In function ‘int main()’:
duckhunt12.cpp:46:47: error: variable ‘std::tuple<long long int, long long int, int, int> current_state’ has initializer but incomplete type
46 | tuple<long long, long long, int, int> current_state = {current_A_pos, current_B_pos, dir_A, dir_B};
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_tree.h:69,
from /usr/include/c++/9/set:60,
from duckhunt12.cpp:3:
/usr/include/c++/9/ext/aligned_buffer.h: In instantiation of ‘struct __gnu_cxx::__aligned_membuf<std::tuple<long long int, long long int, int, int> >’:
/usr/include/c++/9/bits/stl_tree.h:231:41: required from ‘struct std::_Rb_tree_node<std::tuple<long long int, long long int, int, int> >’
/usr/include/c++/9/bits/stl_tree.h:1918:21: required from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>