Problem brick
User Hunchbacker9000
Submission Time 2024-02-23 18:44:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:11:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
11 | cin >> N;
| ^~~
| std::cin
In file included from brick.cpp:2:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
brick.cpp:13:2: error: ‘vector’ was not declared in this scope
13 | vector<int> inp_arr;
| ^~~~~~
brick.cpp:13:2: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from brick.cpp:3:
/usr/include/c++/9/bits/stl_vector.h:386:11: note: ‘std::vector’
386 | class vector : protected _Vector_base<_Tp, _Alloc>