Problem potatosqueues
User paaaaaaaaaaaaaaaaaaa
Submission Time 2024-11-12 10:47:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosqueues.cpp: In function ‘int32_t main()’:
potatosqueues.cpp:15:38: error: ‘T’ was not declared in this scope
15 | cin >> x >> t; pq.push({T, x});
| ^
potatosqueues.cpp:15:43: error: no matching function for call to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)’
15 | cin >> x >> t; pq.push({T, x});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from potatosqueues.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const va