Problem | bananasmoothie |
---|---|
User | ilovepythonandhatecplusplus |
Submission Time | 2024-04-17 17:47:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bananasmoothie.cpp: In function ‘int main()’:
bananasmoothie.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin >> N >> K;
| ^~~
bananasmoothie.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
bananasmoothie.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<int> Q(N);
| ^~~~~~
bananasmoothie.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 |
bananasmoothie.cpp:8:12: error: expected primary-expression before ‘int’
8 | vector<int> Q(N);
| ^~~
bananasmoothie.cpp:10:16: error: ‘Q’ was not declared in this scope
10 | cin >> Q[i];
| ^
bananasmoothie.cpp:13:5: error: ‘priority_queue