Problem | waterbomb |
---|---|
User | KL |
Submission Time | 2024-12-02 17:10:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
waterbomb.cpp: In function ‘int main()’:
waterbomb.cpp:17:13: error: ‘t’ was not declared in this scope
17 | H.push({-(t - d*(i+1)), -t, i+1});
| ^
waterbomb.cpp:17:35: error: no matching function for call to ‘std::priority_queue<std::vector<long long int> >::push(<brace-enclosed initializer list>)’
17 | H.push({-(t - d*(i+1)), -t, 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 waterbomb.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::vector<long long int>; _Sequence = std::vector<std::vector<long long int>, std::allocator<std::vector<long long int> > >; _Compare = std::less<std::vector<long long int> >