Problem 4russians
User ainunnajib
Submission Time 2024-07-02 21:13:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

4russians.cpp: In function ‘long long int traverse(int, int, int)’:
4russians.cpp:13:6: error: reference to ‘visit’ is ambiguous
13 | if (visit[i][j][l] == true)
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from 4russians.cpp:1:
/usr/include/c++/9/variant:1658:5: note: candidates are: ‘template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)’
1658 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
4russians.cpp:6:6: note: ‘bool visit [5005][5005][2]’
6 | bool visit[5005][5005][2];
| ^~~~~
4russians.cpp:23:2: error: reference to ‘visit’ is ambiguous
23 | visit[i][j][l] = true;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:133,
from 4russians.cpp:1:
/usr/include/c++/9/variant:1658:5: note