In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from mergers.cpp:1:
/usr/include/c++/9/bits/stl_stack.h: In instantiation of 'class std::stack<std::vector<int>, int>':
mergers.cpp:61:28: required from here
/usr/include/c++/9/bits/stl_stack.h:121:8: error: 'int' is not a class, struct, or union type
121 | using _Uses = typename
| ^~~~~
/usr/include/c++/9/bits/stl_stack.h:134:47: error: 'int' is not a class, struct, or union type
134 | typedef typename _Sequence::value_type value_type;
| ^~~~~~~~~~
/usr/include/c++/9/bits/stl_stack.h:135:46: error: 'int' is not a class, struct, or union type
135 | typedef typename _Sequence::reference reference;
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_stack.h:136:51: error: 'int' is not a class, struct, or union type
136 | typedef typename _Sequence::const_reference const_reference;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/stl_stack.h:137:46: error: 'int' is not a class, struct, or union type
137 | typedef typename _Sequence::size_type size_type;
| ^~~~~~~~~
mergers.cpp: In function 'int main()':
mergers.cpp:66:23: error: 'class std::stack<std::vector<int>, int>' has no member named 'push'
66 | if(in[0][i] == 1) q.push(i);
| ^~~~
mergers.cpp:79:13: error: 'class std::stack<std::vector<int>, int>' has no member named 'top'; did you mean 'pop'?
79 | int v = q.top(); q.pop();
| ^~~
| pop
mergers.cpp:88:24: error: 'class std::stack<std::vector<int>, int>' has no member named 'push'
88 | if(in[0][u] <= 1) q.push(u);
| ^~~~
mergers.cpp:93:23: error: 'class std::stack<std::vector<int>, int>' has no member named 'push'
93 | if(in[1][i] == 1) q.push(i);
| ^~~~
mergers.cpp:98:13: error: 'class std::stack<std::vector<int>, int>' has no member named 'top'; did you mean 'pop'?
98 | int v = q.top(); q.pop();
| ^~~
| pop
mergers.cpp:106:38: error: 'class std::stack<std::vector<int>, int>' has no member named 'push'
106 | if(in[1][u] == 1) in[1][u] = 0, q.push(u);
| ^~~~
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from mergers.cpp:1:
/usr/include/c++/9/bits/stl_stack.h: In instantiation of 'bool std::stack<_Tp, _Sequence>::empty() const [with _Tp = std::vector<int>; _Sequence = int]':
mergers.cpp:77:17: required from here
/usr/include/c++/9/bits/stl_stack.h:194:18: error: request for member 'empty' in '((const std::stack<std::vector<int>, int>*)this)->std::stack<std::vector<int>, int>::c', which is of non-class type 'const int'
194 | { return c.empty(); }
| ~~^~~~~
/usr/include/c++/9/bits/stl_stack.h: In instantiation of 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = std::vector<int>; _Sequence = int]':
mergers.cpp:79:26: required from here
/usr/include/c++/9/bits/stl_stack.h:269:4: error: request for member 'pop_back' in '((std::stack<std::vector<int>, int>*)this)->std::stack<std::vector<int>, int>::c', which is of non-class type 'int'
269 | c.pop_back();
| ~~^~~~~~~~
mergers.cpp:51:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
51 | scanf("%d %d", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~~
mergers.cpp:55:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
55 | scanf("%d %d", &u, &v);
| ~~~~~^~~~~~~~~~~~~~~~~
mergers.cpp:64:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
64 | scanf("%d", &g[i]); qtt[g[i]]++;
| ~~~~~^~~~~~~~~~~~~