Problem uniquenumbers
User Ningja
Submission Time 2023-11-08 14:14:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:6:2: error: ‘priority_queue’ was not declared in this scope
6 | priority_queue <int> s;
| ^~~~~~~~~~~~~~
uniquenumbers.cpp:3:1: note: ‘std::priority_queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
2 | #include <set>
+++ |+#include <queue>
3 | using namespace std;
uniquenumbers.cpp:6:18: error: expected primary-expression before ‘int’
6 | priority_queue <int> s;
| ^~~
uniquenumbers.cpp:13:3: error: ‘s’ was not declared in this scope
13 | s.insert(a);
| ^
uniquenumbers.cpp:16:12: error: ‘s’ was not declared in this scope
16 | int b1 = s.front()
| ^