0_0_38574767_9190.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include <iostream>
^
0_0_38574767_9190.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include <queue>
^
0_0_38574767_9190.cpp: In function 'int main()':
0_0_38574767_9190.cpp:7:5: error: 'priority_queue' was not declared in this scope
priority_queue<int> max_heap;
^~~~~~~~~~~~~~
0_0_38574767_9190.cpp:7:5: note: 'std::priority_queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
0_0_38574767_9190.cpp:1:1:
+#include <queue>
0_0_38574767_9190.cpp:7:5:
priority_queue<int> max_heap;
^~~~~~~~~~~~~~
0_0_38574767_9190.cpp:7:20: error: 'lt' was not declared in this scope
priority_queue<int> max_heap;
^~
0_0_38574767_9190.cpp:7:27: error: 'gt' declared as reference but not initialized
priority_queue<int> max_heap;
^~
0_0_38574767_9190.cpp:7:31: error: 'max_heap' was not declared in this scope
priority_queue<int> max_heap;
^~~~~~~~
0_0_38574767_9190.cpp:8:26: error: expected unqualified-id before ',' token
priority_queue<int, vector<int>, greater<int>> min_heap;
^
0_0_38574767_9190.cpp:8:34: error: expected initializer before '&' token
priority_queue<int, vector<int>, greater<int>> min_heap;
^
0_0_38574767_9190.cpp:8:42: error: redeclaration of 'int& gt'
priority_queue<int, vector<int>, greater<int>> min_heap;
^~
0_0_38574767_9190.cpp:7:27: note: 'int& gt' previously declared here
priority_queue<int> max_heap;
^~
0_0_38574767_9190.cpp:8:45: error: expected primary-expression before ',' token
priority_queue<int, vector<int>, greater<int>> min_heap;
^
0_0_38574767_9190.cpp:8:47: error: 'greater' was not declared in this scope
priority_queue<int, vector<int>, greater<int>> min_heap;
^~~~~~~
0_0_38574767_9190.cpp:8:62: error: redeclaration of 'int& gt'
priority_queue<int, vector<int>, greater<int>> min_heap;
^~
0_0_38574767_9190.cpp:7:27: note: 'int& gt' previously declared here
priority_queue<int> max_heap;
^~
0_0_38574767_9190.cpp:8:70: error: 'min_heap' was not declared in this scope
priority_queue<int, vector<int>, greater<int>> min_heap;
^~~~~~~~
0_0_38574767_9190.cpp:10:12: error: 'some_condition' was not declared in this scope
while (some_condition) {
^~~~~~~~~~~~~~
0_0_38574767_9190.cpp:12:9: error: 'cin' was not declared in this scope
cin >> operation;
^~~
0_0_38574767_9190.cpp:12:9: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38574767_9190.cpp:1:1:
+#include <iostream>
0_0_38574767_9190.cpp:12:9:
cin >> operation;
^~~
0_0_38574767_9190.cpp:26:17: error: 'cout' was not declared in this scope
cout << max_heap.top() << endl;
^~~~
0_0_38574767_9190.cpp:26:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38574767_9190.cpp:26:55: error: 'endl' was not declared in this scope
cout << max_heap.top() << endl;
^~~~
0_0_38574767_9190.cpp:26:55: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
0_0_38574767_9190.cpp:1:1:
+#include <ostream>
0_0_38574767_9190.cpp:26:55:
cout << max_heap.top() << endl;
^~~~
0_0_38574767_9190.cpp:28:17: error: 'cout' was not declared in this scope
cout << 0 << endl;
^~~~
0_0_38574767_9190.cpp:28:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38574767_9190.cpp:28:42: error: 'endl' was not declared in this scope
cout << 0 << endl;
^~~~
0_0_38574767_9190.cpp:28:42: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
|