Problem | wabot |
---|---|
User | Pyrros |
Submission Time | 2023-12-04 22:31:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
wabot.cpp: In function ‘int main()’:
wabot.cpp:12:34: error: no type named ‘value_type’ in ‘struct std::greater<long long int>’
12 | priority_queue<ll, greater<ll>> pq;
| ^~
wabot.cpp:12:34: error: template argument 3 is invalid
wabot.cpp:24:33: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
24 | if(m[l].size() == 0) pq.push(l);
| ^~~~
wabot.cpp:34:15: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘int’
34 | while(!pq.empty())
| ^~~~~
wabot.cpp:38:19: error: request for member ‘top’ in ‘pq’, which is of non-class type ‘int’
38 | ll counter = pq.top();
| ^~~
wabot.cpp:43:7: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
43 | pq.push({counter+1, temp});
| ^~~~
wabot.cpp:53:6: