Problem brick
User anna15
Submission Time 2024-05-04 11:05:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp:3:1: error: ‘vector’ does not name a type
3 | vector<int> getStack(vector<int>& heights) {
| ^~~~~~
brick.cpp: In function ‘int main()’:
brick.cpp:19:5: error: ‘cin’ was not declared in this scope
19 | cin >> N;
| ^~~
brick.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
brick.cpp:21:5: error: ‘vector’ was not declared in this scope
21 | vector<int> heights(N);
| ^~~~~~
brick.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
brick.cpp:21:12: error: expected primary-expression before ‘int’
21 | vector<int> heights(N);
| ^~~
brick.cpp:23:16: error: ‘heights’ was not declared in