Problem brick
User PyAce
Submission Time 2026-01-14 10:06:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:14:8: error: ‘class std::vector<long long int>’ has no member named ‘pushback’; did you mean ‘push_back’?
14 | AVec.pushback(temp);
| ^~~~~~~~
| push_back
brick.cpp:16:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<long long int>’)
16 | cout << AVec;
| ~~~~ ^~ ~~~~
| | |
| | std::vector<long long int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/iostream:39,
from brick.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream