Borderou de evaluare (job #420017)
Utilizator | Data | 18 martie 2010 12:41:05 | |
---|---|---|---|
Problema | Sea2 | 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:19: error: 'x' cannot appear in a constant-expression
user.cpp:19: error: 'y' cannot appear in a constant-expression
user.cpp:19: error: no matching function for call to 'std::set<std::pair<int, int>, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::lower_bound(<unresolved overloaded function type>)'
/usr/include/c++/4.2/bits/stl_set.h:450: note: candidates are: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const _Key&) [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >]
/usr/include/c++/4.2/bits/stl_set.h:454: note: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const _Key&) const [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >]
user.cpp:23: error: continue statement not within a loop
user.cpp:28: error: missing template arguments before '.' token
user.cpp:29: error: 'x' cannot appear in a constant-expression
user.cpp:29: error: 'y' cannot appear in a constant-expression
user.cpp:29: error: no matching function for call to 'std::set<std::pair<int, int>, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::lower_bound(<unresolved overloaded function type>)'
/usr/include/c++/4.2/bits/stl_set.h:450: note: candidates are: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const _Key&) [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >]
/usr/include/c++/4.2/bits/stl_set.h:454: note: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const _Key&) const [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >]
user.cpp:31: error: 'x' cannot appear in a constant-expression
user.cpp:31: error: 'y' cannot appear in a constant-expression
user.cpp:31: error: no matching function for call to 'std::set<std::pair<int, int>, std::less<std::pair<int, int> >, std::allocator<std::pair<int, int> > >::insert(<unresolved overloaded function type>)'
/usr/include/c++/4.2/bits/stl_set.h:304: note: candidates are: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const _Key&) [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >]
/usr/include/c++/4.2/bits/stl_set.h:331: note: typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator std::set<_Key, _Compare, _Alloc>::insert(typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename _Alloc::rebind<_Key>::other>::const_iterator, const _Key&) [with _Key = std::pair<int, int>, _Compare = std::less<std::pair<int, int> >, _Alloc = std::allocator<std::pair<int, int> >]
user.cpp:15: warning: unused variable 'i'
user.cpp: At global scope:
user.cpp:34: error: expected unqualified-id before 'return'
user.cpp:35: error: expected declaration before '}' token
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !