Problem | supermarket |
---|---|
User | Batigol |
Submission Time | 2024-09-03 23:14:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
supermarket.cpp: In function ‘int main()’:
supermarket.cpp:31:38: error: ‘comp’ was not declared in this scope
31 | priority_queue<pll, vector<pll>, comp> q;
| ^~~~
supermarket.cpp:31:42: error: template argument 3 is invalid
31 | priority_queue<pll, vector<pll>, comp> q;
| ^
supermarket.cpp:35:15: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’
35 | q.push(make_pair(0,0));
| ^~~~
supermarket.cpp:38:15: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’
38 | q.push(make_pair(dp[i],i));
| ^~~~
supermarket.cpp:43:17: error: request for member ‘top’ in ‘q’, which is of non-class type ‘int’
43 | while(q.top().second<l){
| ^~~
supermarket.cpp:44:15: error: request f