Problem | eating |
---|---|
User | P55D2K |
Submission Time | 2023-04-21 15:15:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
eating.cpp: In function ‘int main()’:
eating.cpp:21:71: error: ambiguous overload for ‘operator=’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
21 | if (it != person_brand[tmp_person].end()) { final_output[i] = 0; }
| ^
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from eating.cpp:4:
/usr/include/c++/9/bits/basic_string.h:669:7: note: