Borderou de evaluare (job #1225955)
Utilizator | Data | 4 septembrie 2014 10:18:36 | |
---|---|---|---|
Problema | Qtri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool interior_tr(const triunghi&, const triunghi&, const triunghi&)’:
user.cpp:61:36: error: ‘p0’ was not declared in this scope
return abs(abs(ccw(p1, p2, p0)+ccw(p2, p3, p0)+ccw(p3, p1, p0))-abs(ccw(p1, p2, p0)))-abs(ccw(p2, p3, p0))-abs(ccw(p3, p1 p0))==0;
^
user.cpp:61:131: error: expected ‘)’ before ‘p0’
return abs(abs(ccw(p1, p2, p0)+ccw(p2, p3, p0)+ccw(p3, p1, p0))-abs(ccw(p1, p2, p0)))-abs(ccw(p2, p3, p0))-abs(ccw(p3, p1 p0))==0;
^
user.cpp:61:133: error: too few arguments to function ‘int ccw(const triunghi&, const triunghi&, const triunghi&)’
return abs(abs(ccw(p1, p2, p0)+ccw(p2, p3, p0)+ccw(p3, p1, p0))-abs(ccw(p1, p2, p0)))-abs(ccw(p2, p3, p0))-abs(ccw(p3, p1 p0))==0;
^
user.cpp:36:16: note: declared here
friend int ccw(const triunghi&p1, const triunghi&p2, const triunghi&p3)
^
user.cpp: In function ‘int main()’:
user.cpp:79:11: error: ‘a’ was not declared in this scope
v[a].set(ax, ay);
^
user.cpp:80:11: error: ‘b’ was not declared in this scope
v[b].set(bx, by);
^
user.cpp:81:11: error: ‘c’ was not declared in this scope
v[c].set(cx, cy);
^
user.cpp:91:29: error: ‘class triunghi’ has no member named ‘a’
if(interior_tr(v[i].a, v[i].b, v[i].c))
^
user.cpp:91:37: error: ‘class triunghi’ has no member named ‘b’
if(interior_tr(v[i].a, v[i].b, v[i].c))
^
user.cpp:91:45: error: ‘class triunghi’ has no member named ‘c’
if(interior_tr(v[i].a, v[i].b, v[i].c))
^
user.cpp:91:46: error: ‘interior_tr’ was not declared in this scope
if(interior_tr(v[i].a, v[i].b, v[i].c))
^
user.cpp:96:24: error: request for member ‘a’ in ‘i’, which is of non-class type ‘int’
if(aria_tr(v[i.a], v[i].b, v[i].c)>arie_max)
^
user.cpp:96:33: error: ‘class triunghi’ has no member named ‘b’
if(aria_tr(v[i.a], v[i].b, v[i].c)>arie_max)
^
user.cpp:96:41: error: ‘class triunghi’ has no member named ‘c’
if(aria_tr(v[i.a], v[i].b, v[i].c)>arie_max)
^
user.cpp:96:42: error: ‘aria_tr’ was not declared in this scope
if(aria_tr(v[i.a], v[i].b, v[i].c)>arie_max)
^
user.cpp:97:34: error: request for member ‘a’ in ‘i’, which is of non-class type ‘int’
arie_max=aria_tr(v[i.a], v[i].b, v[i].c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !