Problem | party |
---|---|
User | Daddy |
Submission Time | 2024-04-05 14:46:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
party.cpp: In function ‘int main()’:
party.cpp:16:22: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
16 | garf[a].push_back[b];
| ^
party.cpp:17:22: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
17 | garf[b].push_back[a];
| ^
party.cpp:20:10: error: no matching function for call to ‘std::queue<int>::push(std::queue<int>&)’
20 | q.push(q);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from party.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::queue<_Tp, _Sequence>::value_type = int]’
259 |