Problem | party |
---|---|
User | tacticalnerd |
Submission Time | 2024-08-27 20:38:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
party.cpp: In function ‘int main()’:
party.cpp:20:10: error: template placeholder type ‘pair<...auto...>’ must be followed by a simple declarator-id
20 | for (pair& p : tree) {
| ^~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from party.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: ‘template<class _T1, class _T2> struct std::pair’ declared here
208 | struct pair
| ^~~~
party.cpp:21:17: error: ‘p’ was not declared in this scope
21 | int i = p.first;
| ^
party.cpp:31:10: error: template placeholder type ‘pair<...auto...>’ must be followed by a simple declarator-id
31 | for (pair& p : tree) {
|