Problem brick
User Adam
Submission Time 2024-06-20 15:13:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:10:2: error: ‘vectors’ was not declared in this scope
10 | vectors<int> v(N);
| ^~~~~~~
brick.cpp:10:10: error: expected primary-expression before ‘int’
10 | vectors<int> v(N);
| ^~~
brick.cpp:14:12: error: request for member ‘empty’ in ‘v’, which is of non-class type ‘int’
14 | while(!v.empty() and v.back()<=X){
| ^~~~~
brick.cpp:14:26: error: request for member ‘back’ in ‘v’, which is of non-class type ‘int’
14 | while(!v.empty() and v.back()<=X){
| ^~~~
brick.cpp:15:6: error: request for member ‘pop_back’ in ‘v’, which is of non-class type ‘int’
15 | v.pop_back();
| ^~~~~~~~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from brick.cpp:1:
/usr/include/c++/9/bit