Borderou de evaluare (job #1159539)
Utilizator | Data | 29 martie 2014 18:14:38 | |
---|---|---|---|
Problema | Planificare | 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:41:40: warning: capture of variable ‘h’ with non-automatic storage duration [enabled by default]
for ( ; !h.empty() && v[i].x>=[h.top()]; h.pop() ) ;
^
user.cpp:29:43: note: ‘std::priority_queue<int, std::vector<int>, strcmp> h’ declared here
priority_queue <int, vector<int>, strcmp> h;
^
user.cpp:41:41: error: expected ‘,’ before ‘.’ token
for ( ; !h.empty() && v[i].x>=[h.top()]; h.pop() ) ;
^
user.cpp:41:41: error: expected identifier before ‘.’ token
user.cpp: In lambda function:
user.cpp:41:48: error: expected ‘{’ before ‘;’ token
for ( ; !h.empty() && v[i].x>=[h.top()]; h.pop() ) ;
^
user.cpp: In function ‘int main()’:
user.cpp:41:37: error: no match for ‘operator>=’ (operand types are ‘int’ and ‘main()::__lambda0’)
for ( ; !h.empty() && v[i].x>=[h.top()]; h.pop() ) ;
^
user.cpp:41:37: note: candidates are:
In file included from /usr/local/include/c++/4.8.0/utility:70:0,
from /usr/local/include/c++/4.8.0/algorithm:60,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_pair.h:245:5: note: template<class _T1, class _T2> constexpr bool std::operator>=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
/usr/local/include/c++/4.8.0/bits/stl_pair.h:245:5: note: template argument deduction/substitution failed:
user.cpp:41:48: note: mismatched types ‘const std::pair<_T1, _T2>’ and ‘int’
for ( ; !h.empty() && v[i].x>=[h.top()]; h.pop() ) ;
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:67:0,
from /usr/local/include/c++/4.8.0/algorithm:61,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_iterator.h:321:5: note: template<class _Iterator> bool std::operator>=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator>=(const reverse_iterator<_Iterator>& __x,
^
/usr/local/include/c++/4.8.0/bits/stl_iterator.h:321:5: note: template argument deduction/substitution failed:
user.cpp:41:48: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’
for ( ; !h.empty() && v[i].x>=[h.top()]; h.pop() ) ;
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:67:0,
from /usr/local/include/c++/4.8.0/algorithm:61,
from user.cpp:1:
/usr/local/include/c++/4.8.0/bits/stl_iterator.h:371:5: note: template<class _IteratorL, class _IteratorR> bool std::operator>=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
operator>=(const reverse_iterator<_IteratorL>& __x,
^
/usr/local/include/c++/4.8.0/bits/stl_iterator.h:371:5: note: template argument deduction/substitution failed:
user.cpp:41:48: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’
for ( ; !h.empty() && v[i].x>=[h.top()]; h.pop() ) ;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !