| Problem | conversations_easy |
|---|---|
| User | StormyGood |
| Submission Time | 2025-11-11 14:38:17 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
conversations_easy.cpp: In function ‘int32_t main()’:
conversations_easy.cpp:17:15: error: no matching function for call to ‘std::stack<long long int>::push(std::string&)’
17 | s.push(b);
| ^
In file included from /usr/include/c++/9/stack:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:89,
from conversations_easy.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 = long long int; _Sequence = std::deque<long long int, std::allocator<long long int> >; std::stack<_Tp, _Sequence>::value_type = long long int]’
233 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_stack.h:233:30: note: no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const value_type&’ {aka ‘const long long int&’}