Problem goodprogrammer
User Usu
Submission Time 2025-07-02 17:13:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goodprogrammer.cpp: In function ‘int main()’:
goodprogrammer.cpp:7:15: error: ‘isosadimdepressed’ was not declared in this scope
7 | k.push_back (isosadimdepressed);
| ^~~~~~~~~~~~~~~~~
goodprogrammer.cpp:8:4: error: invalid use of non-static member function ‘void std::vector<_Tp, _Alloc>::shrink_to_fit() [with _Tp = char; _Alloc = std::allocator<char>]’
8 | k.shrink_to_fit;
| ~~^~~~~~~~~~~~~
In file included from /usr/include/c++/9/vector:67,
from goodprogrammer.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:986:7: note: declared here
986 | shrink_to_fit()
| ^~~~~~~~~~~~~