main.cpp: In function ‘int main()’:
main.cpp:7:7: error: ‘std::deque<int, std::allocator<int> > std::queue<int>::c’ is protected within this context
7 | q.c.push_back(1);
| ^
In file included from /usr/include/c++/13/queue:66,
from main.cpp:1:
/usr/include/c++/13/bits/stl_queue.h:153:17: note: declared protected here
153 | _Sequence c;
| ^tqh,tqh,模板队列 tqh,BFS 用 tqh,拓扑排序 tqh,单调队列 tqh,Dijk tqh,SPFA tqh,Prim tqh……