Problem logs
User BigEd15
Submission Time 2025-05-17 16:13:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

logs.cpp: In function ‘int main()’:
logs.cpp:12:2: error: ‘priorityqueue’ was not declared in this scope
12 | priorityqueue<int> pq;
| ^~~~~~~~~~~~~
logs.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
logs.cpp:12:16: note: in expansion of macro ‘int’
12 | priorityqueue<int> pq;
| ^~~
logs.cpp:19:3: error: ‘pq’ was not declared in this scope
19 | pq.push(x);
| ^~
logs.cpp:21:13: error: ‘pq’ was not declared in this scope
21 | longestlog=pq.top();
| ^~
logs.cpp:23:7: error: ‘i’ was not declared in this scope
23 | for (i=0; i<K; i++) {
| ^