Problem numericalstrings
User DoubleShaurya
Submission Time 2024-02-08 19:52:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

numericalstrings.cpp: In function ‘int main()’:
numericalstrings.cpp:21:3: error: ‘priority_queue’ was not declared in this scope
21 | priority_queue <long long> v2;
| ^~~~~~~~~~~~~~
numericalstrings.cpp:4:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
3 | #include <algorithm>
+++ |+#include <queue>
4 |
numericalstrings.cpp:21:19: error: expected primary-expression before ‘long’
21 | priority_queue <long long> v2;
| ^~~~
numericalstrings.cpp:23:4: error: ‘v2’ was not declared in this scope; did you mean ‘v’?
23 | v2.push(stoi(v[i]));
| ^~
| v
numericalstrings.cpp:25:11: error: ‘v2’ was not declared in this scope; did you mean ‘v’?
25 | cout << v2.top();
| ^~
| v