Problem voting
User user123
Submission Time 2023-10-06 21:36:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

voting.cpp:16:39: error: template argument 1 is invalid
16 | priority_queue<ll, vector<ll>, greater<;l>> q;
| ^
voting.cpp:16:32: error: template argument 3 is invalid
16 | priority_queue<ll, vector<ll>, greater<;l>> q;
| ^~~~~~~~
voting.cpp:16:41: error: ‘l’ does not name a type
16 | priority_queue<ll, vector<ll>, greater<;l>> q;
| ^
voting.cpp: In function ‘void driver()’:
voting.cpp:22:12: error: ‘q’ was not declared in this scope
22 | while (q.size()) q.pop();
| ^
voting.cpp:31:27: error: ‘q’ was not declared in this scope
31 | for (auto b:s[a]) q.push(b);
| ^
voting.cpp:32:18: error: ‘q’ was not declared in this scope
32 | while (n-q.size()<a)
|