Borderou de evaluare (job #1637302)
Utilizator | Data | 7 martie 2016 16:23:11 | |
---|---|---|---|
Problema | Terenuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool cmp(point, point)’:
user.cpp:66:16: error: expected ‘)’ before ‘x’
if(-eps<x x<eps) return a<b;
^
user.cpp: In function ‘bool scoate(point, point, point)’:
user.cpp:73:16: error: expected ‘)’ before ‘x’
if(-eps<x x<eps) return b<c;
^
user.cpp: In function ‘void magic()’:
user.cpp:102:10: warning: unused variable ‘ok’ [-Wunused-variable]
bool ok;
^
user.cpp: In function ‘void read()’:
user.cpp:152:12: warning: unused variable ‘x’ [-Wunused-variable]
double x,y;
^
user.cpp:152:14: warning: unused variable ‘y’ [-Wunused-variable]
double x,y;
^
user.cpp: In function ‘void convex_hull()’:
user.cpp:174:24: error: expected ‘)’ before ‘det’
while(st[0]>1 det(P[st[st[0]-1]],P[st[st[0]]],P[i])<eps) --st[0];
^
user.cpp:174:65: error: expected ‘;’ before ‘)’ token
while(st[0]>1 det(P[st[st[0]-1]],P[st[st[0]]],P[i])<eps) --st[0];
^
user.cpp:174:61: warning: value computed is not used [-Wunused-value]
while(st[0]>1 det(P[st[st[0]-1]],P[st[st[0]]],P[i])<eps) --st[0];
^
In file included from /usr/include/c++/4.8/string:48:0,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/sstream:38,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_function.h: In instantiation of ‘bool std::less<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = eee]’:
/usr/include/c++/4.8/bits/stl_tree.h:1170:2: required from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_upper_bound(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type, const _Key&) [with _Key = eee; _Val = eee; _KeyOfValue = std::_Identity<eee>; _Compare = std::less<eee>; _Alloc = std::allocator<eee>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<eee>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type = std::_Rb_tree_node<eee>*]’
/usr/include/c++/4.8/bits/stl_tree.h:884:56: required from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::upper_bound(const key_type&) [with _Key = eee; _Val = eee; _KeyOfValue = std::_Identity<eee>; _Compare = std::less<eee>; _Alloc = std::allocator<eee>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<eee>; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::key_type = eee]’
/usr/include/c++/4.8/bits/stl_set.h:698:36: required from ‘std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::upper_bound(const key_type&) [with _Key = eee; _Compare = std::less<eee>; _Alloc = std::allocator<eee>; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<eee>; std::set<_Key, _Compare, _Alloc>::key_type = eee]’
user.cpp:111:35: required from here
/usr/include/c++/4.8/bits/stl_function.h:235:20: error: passing ‘const eee’ as ‘this’ argument of ‘bool eee::operator<(eee)’ discards qualifiers [-fpermissive]
{ return __x < __y; }
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !