Problem brick
User howdoicode
Submission Time 2026-07-20 16:30:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<int> bricklayer;
| ^~~~~~
brick.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
brick.cpp:7:9: error: expected primary-expression before ‘int’
7 | vector<int> bricklayer;
| ^~~
brick.cpp:10:10: error: ‘bricklayer’ was not declared in this scope; did you mean ‘brickamt’?
10 | cin >> bricklayer[t];
| ^~~~~~~~~~
| brickamt
brick.cpp:17:11: error: ‘bricklayer’ was not declared in this scope; did you mean ‘brickamt’?
17 | cout << bricklayer[m];
| ^~~~~~~~~~
| brickamt