lamp.cpp: In function 'int main()':
lamp.cpp:31:13: error: reference to 'apply' is ambiguous
apply[i][j] = (j%3 == 2 ? i : j%3) ^ (j/3);
^~~~~
lamp.cpp:9:18: note: candidates are: int apply [2][6]
int dp[Nmax][6], apply[2][6], go[6][6];
^~~~~
In file included from /usr/include/c++/7/functional:54:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
from lamp.cpp:1:
/usr/include/c++/7/tuple:1668:5: note: template<class _Fn, class _Tuple> constexpr decltype(auto) std::apply(_Fn&&, _Tuple&&)
apply(_Fn&& __f, _Tuple&& __t)
^~~~~
lamp.cpp:41:16: error: reference to 'apply' is ambiguous
if(apply[A[i]][k] == B[i])
^~~~~
lamp.cpp:9:18: note: candidates are: int apply [2][6]
int dp[Nmax][6], apply[2][6], go[6][6];
^~~~~
In file included from /usr/include/c++/7/functional:54:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:71,
from lamp.cpp:1:
/usr/include/c++/7/tuple:1668:5: note: template<class _Fn, class _Tuple> constexpr decltype(auto) std::apply(_Fn&&, _Tuple&&)
apply(_Fn&& __f, _Tuple&& __t)
^~~~~