Borderou de evaluare (job #2023174)
Utilizator | Data | 18 septembrie 2017 13:03:45 | |
---|---|---|---|
Problema | Muzeu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:66:24: error: no match for ‘operator==’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
out << map[x][y] == 0x3f3f3f3f ? -2 : map[x][y] << ' ';
^
user.cpp:66:24: note: candidates are:
In file included from /usr/include/c++/4.8/queue:64:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_queue.h:268:5: note: template<class _Tp, class _Seq> bool std::operator==(const std::queue<_Tp, _Seq>&, const std::queue<_Tp, _Seq>&)
operator==(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y)
^
/usr/include/c++/4.8/bits/stl_queue.h:268:5: note: template argument deduction/substitution failed:
user.cpp:66:27: note: ‘std::basic_ostream<char>’ is not derived from ‘const std::queue<_Tp, _Seq>’
out << map[x][y] == 0x3f3f3f3f ? -2 : map[x][y] << ' ';
^
In file included from /usr/include/c++/4.8/vector:64:0,
from /usr/include/c++/4.8/queue:61,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_vector.h:1403:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
^
/usr/include/c++/4.8/bits/stl_vector.h:1403:5: note: template argument deduction/substitution failed:
user.cpp:66:27: note: ‘std::basic_ostream<char>’ is not derived from ‘const std::vector<_Tp, _Alloc>’
out << map[x][y] == 0x3f3f3f3f ? -2 : map[x][y] << ' ';
^
In file included from /usr/include/c++/4.8/deque:64:0,
from /usr/include/c++/4.8/queue:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_deque.h:1957:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::deque<_Tp, _Alloc>&, const std::deque<_Tp, _Alloc>&)
operator==(const deque<_Tp, _Alloc>& __x,
^
/usr/include/c++/4.8/bits/stl_deque.h:1957:5: note: template argument deduction/substitution failed:
user.cpp:66:27: note: ‘std::basic_ostream<char>’ is not derived from ‘const std::deque<_Tp, _Alloc>’
out << map[x][y] == 0x3f3f3f3f ? -2 : map[x][y] << ' ';
^
In file included from /usr/include/c++/4.8/deque:64:0,
from /usr/include/c++/4.8/queue:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_deque.h:254:5: note: template<class _Tp, class _RefL, class _PtrL, class _RefR, class _PtrR> bool std::operator==(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _RefR, _PtrR>&)
operator==(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x,
^
/usr/include/c++/4.8/bits/stl_deque.h:254:5: note: template argument deduction/substitution failed:
user.cpp:66:27: note: ‘std::basic_ostream<char>’ is not derived from ‘const std::_Deque_iterator<_Tp, _Ref, _Ptr>’
out << map[x][y] == 0x3f3f3f3f ? -2 : map[x][y] << ' ';
^
In file included from /usr/include/c++/4.8/deque:64:0,
from /usr/include/c++/4.8/queue:60,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_deque.h:247:5: note: template<class _Tp, class _Ref, class _Ptr> bool std::operator==(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _Ref, _Ptr>&)
operator==(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x,
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !