Problem | collectmushrooms5 |
---|---|
User | jeongwonho64 |
Submission Time | 2023-12-08 21:55:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
collectmushrooms5.cpp: In function ‘int main()’:
collectmushrooms5.cpp:57:28: error: ‘i’ was not declared in this scope
57 | smallest.push({b[ab.se],i,1});
| ^
collectmushrooms5.cpp:57:32: error: no matching function for call to ‘std::priority_queue<std::tuple<long long int, long long int, long long int>, std::vector<std::tuple<long long int, long long int, long long int>, std::allocator<std::tuple<long long int, long long int, long long int> > >, std::greater<std::tuple<long long int, long long int, long long int> > >::push(<brace-enclosed initializer list>)’
57 | smallest.push({b[ab.se],i,1});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from collectmushrooms5.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: cand