Problem brick
User spyrath
Submission Time 2025-06-17 19:49:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:2:5: error: ‘vector’ was not declared in this scope
2 | vector<int> vec;
| ^~~~~~
brick.cpp:2:12: error: expected primary-expression before ‘int’
2 | vector<int> vec;
| ^~~
brick.cpp:4:5: error: ‘cin’ was not declared in this scope
4 | cin >> N;
| ^~~
brick.cpp:10:13: error: ‘vec’ was not declared in this scope
10 | if (vec.size() == 0) {
| ^~~
brick.cpp:30:18: error: ‘vec’ was not declared in this scope
30 | for (int j = vec.size(); j > 0; ) {
| ^~~
brick.cpp:31:9: error: ‘cout’ was not declared in this scope
31 | cout << vec[--j] << "\n";
| ^~~~