Romėniški skaitmenys (LMIO 2002)

Taškai: 0

Compile: FAIL

lmio_2002_romeniski_jau.cpp: In function ‘int main()’: lmio_2002_romeniski_jau.cpp:44:38: error: no match for ‘operator[]’ (operand types are ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ and ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’) fout << rim(x[z]) - rim(x[x]); ^ In file included from /usr/include/c++/5/string:52:0, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from lmio_2002_romeniski_jau.cpp:1: /usr/include/c++/5/bits/basic_string.h:831:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_reference = const char&; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int] operator[] (size_type __pos) const _GLIBCXX_NOEXCEPT ^ /usr/include/c++/5/bits/basic_string.h:831:7: note: no known conversion for argument 1 from ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ to ‘std::__cxx11::basic_string<char>::size_type {aka long unsigned int}’ /usr/include/c++/5/bits/basic_string.h:848:7: note: candidate: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference = char&; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int] operator[](size_type __pos) ^ /usr/include/c++/5/bits/basic_string.h:848:7: note: no known conversion for argument 1 from ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ to ‘std::__cxx11::basic_string<char>::size_type {aka long unsigned int}’

nr.resulttimemessage