Borderou de evaluare (job #502085)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Pom | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 12 nov. 2019 08:57:27 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function 'int main()':
user.cpp:30:23: error: no match for 'operator=' in 's = pom.std::stack<_Tp, _Sequence>::top [with _Tp = char, _Sequence = std::deque<char, std::allocator<char> >, std::stack<_Tp, _Sequence>::const_reference = const char&]'
user.cpp:30:23: note: candidates are:
/usr/include/c++/4.6/bits/basic_string.h:541:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>, std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:541:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const std::basic_string<char>&'
/usr/include/c++/4.6/bits/basic_string.h:549:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>, std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:549:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const char*'
/usr/include/c++/4.6/bits/basic_string.h:560:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>, std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:560:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'char'
/usr/include/c++/4.6/bits/basic_string.h:575:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(std::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>, std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:575:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::basic_string<char>&&'
/usr/include/c++/4.6/bits/basic_string.h:587:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(std::initializer_list<_CharT>) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>, std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>]
/usr/include/c++/4.6/bits/basic_string.h:587:7: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::initializer_list<char>'
user.cpp:36:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]