Borderou de evaluare (job #247612)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Romb (clasa a 6-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 sept. 2016 19:45:05 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:22:18: warning: array subscript has type 'char' [-Wchar-subscripts]
22 | g<<v[z]<" ";
| ^
main.cpp:22:20: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'const char [2]')
22 | g<<v[z]<" ";
| ~~~~~~~^~~~
| | |
| | const char [2]
| std::basic_ostream<char>
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/string:48,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/locale_classes.h:40,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/ios_base.h:41,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ios:44,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:40,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/fstream:40,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:455:5: note: candidate: 'template<class _Iterator> bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
455 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:455:5: note: template argument deduction/substitution failed:
main.cpp:22:21: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
22 | g<<v[z]<" ";
| ^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:500:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
500 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:500:5: note: template argument deduction/substitution failed:
main.cpp:22:21: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
22 | g<<v[z]<" ";
| ^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1705:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1705 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1705:5: note: template argument deduction/substitution failed:
main.cpp:22:21: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
22 | g<<v[z]<" ";
| ^~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1770:5: note: candidate: 'template<class _Iterator> bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1770 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1770:5: note: template argument deduction/substitution failed:
main.cpp:22:21: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
22 | g<<v[z]<" ";
| ^~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algobase.h:64,
from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/string:51:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_pair.h:835:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
835 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~