Problem | lengthsort |
---|---|
User | CookieCoder |
Submission Time | 2025-07-14 16:45:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:19:27: error: no matching function for call to ‘std::stack<std::__cxx11::basic_string<char> >::push(std::__cxx11::basic_string<char>::size_type)’
19 | FINALE.push(temp.size());
| ^
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from lengthsort.cpp:1:
/usr/include/c++/9/bits/stl_stack.h:233:7: note: candidate: ‘void std::stack<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::__cxx11::basic_string<char>; _Sequence = std::deque<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char> > >; std::stack<_Tp, _Sequence>::value_type = std::__cxx11::basic_string<char>]’
233 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_stack.h:233:30: note: