Problem | typo |
---|---|
User | Usu |
Submission Time | 2025-07-12 20:39:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
typo.cpp: In function ‘int main()’:
typo.cpp:9:10: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
9 | char f= " ";
| ^~~
| |
| const char*
typo.cpp:18:4: error: invalid use of non-static member function ‘void std::vector<_Tp, _Alloc>::shrink_to_fit() [with _Tp = char; _Alloc = std::allocator<char>]’
18 | v.shrink_to_fit;
| ~~^~~~~~~~~~~~~
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 /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from typo.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:986:7: note: declared here
986 | shrink_to_fit()
| ^~~~~~~~~~~~~
typo.cpp:23:45: error: expected primary-ex