dungeons.cpp: In function 'void init(int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
dungeons.cpp:104:13: error: reference to 'barrier' is ambiguous
104 | barrier[layer][i][0] = s1[i];
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:137,
from dungeons.cpp:1:
/usr/include/c++/11/barrier:209:11: note: candidates are: 'template<class _CompletionF> class std::barrier'
209 | class barrier
| ^~~~~~~
dungeons.cpp:62:27: note: 'll barrier [24][50069][24]'
62 | ll cost[LOG_A][N][LOG_A], barrier[LOG_A][N][LOG_A];
| ^~~~~~~
dungeons.cpp:112:17: error: reference to 'barrier' is ambiguous
112 | barrier[layer][i][j] = max(barrier[layer][i][j-1], barrier[layer][prev][j-1] - cost[layer][i][j-1]);
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:137,
from dungeons.cpp:1:
/usr/include/c++/11/barrier:209:11: note: candidates are: 'template<class _CompletionF> class std::barrier'
209 | class barrier
| ^~~~~~~
dungeons.cpp:62:27: note: 'll barrier [24][50069][24]'
62 | ll cost[LOG_A][N][LOG_A], barrier[LOG_A][N][LOG_A];
| ^~~~~~~
dungeons.cpp:112:44: error: reference to 'barrier' is ambiguous
112 | barrier[layer][i][j] = max(barrier[layer][i][j-1], barrier[layer][prev][j-1] - cost[layer][i][j-1]);
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:137,
from dungeons.cpp:1:
/usr/include/c++/11/barrier:209:11: note: candidates are: 'template<class _CompletionF> class std::barrier'
209 | class barrier
| ^~~~~~~
dungeons.cpp:62:27: note: 'll barrier [24][50069][24]'
62 | ll cost[LOG_A][N][LOG_A], barrier[LOG_A][N][LOG_A];
| ^~~~~~~
dungeons.cpp:112:68: error: reference to 'barrier' is ambiguous
112 | barrier[layer][i][j] = max(barrier[layer][i][j-1], barrier[layer][prev][j-1] - cost[layer][i][j-1]);
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:137,
from dungeons.cpp:1:
/usr/include/c++/11/barrier:209:11: note: candidates are: 'template<class _CompletionF> class std::barrier'
209 | class barrier
| ^~~~~~~
dungeons.cpp:62:27: note: 'll barrier [24][50069][24]'
62 | ll cost[LOG_A][N][LOG_A], barrier[LOG_A][N][LOG_A];
| ^~~~~~~
dungeons.cpp: In function 'll simulate(int, int)':
dungeons.cpp:127:23: error: reference to 'barrier' is ambiguous
127 | if (ans < barrier[layer][x][j]) continue;
| ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:137,
from dungeons.cpp:1:
/usr/include/c++/11/barrier:209:11: note: candidates are: 'template<class _CompletionF> class std::barrier'
209 | class barrier
| ^~~~~~~
dungeons.cpp:62:27: note: 'll barrier [24][50069][24]'
62 | ll cost[LOG_A][N][LOG_A], barrier[LOG_A][N][LOG_A];
| ^~~~~~~