Borderou de evaluare (job #1385927)
Utilizator | Data | 12 martie 2015 16:03:27 | |
---|---|---|---|
Problema | Robot2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘double d(point, point, point)’:
user.cpp:22:68: warning: left operand of comma operator has no effect [-Wunused-value]
if(p.x < min(a.x, b.x) || p.x > max(a.x, b.x) || p.y < (a.y, b.y) || p.y > (a.y, b.y)) {
^
user.cpp:22:88: warning: left operand of comma operator has no effect [-Wunused-value]
if(p.x < min(a.x, b.x) || p.x > max(a.x, b.x) || p.y < (a.y, b.y) || p.y > (a.y, b.y)) {
^
user.cpp:25:34: error: cannot convert ‘std::pair<int, point>’ to ‘double’ in return
return make_pair(m, a);
^
user.cpp:27:30: error: cannot convert ‘std::pair<int, point>’ to ‘double’ in return
return make_pair(n, b);
^
user.cpp:29:54: error: expected primary-expression before ‘)’ token
return make_pair(area(p, a, b) * 2 / dist(a, b), );
^
user.cpp: In function ‘int main()’:
user.cpp:49:48: error: conversion from ‘double’ to non-scalar type ‘std::pair<double, point>’ requested
pair<double, point> dp = d(P, p, p1);
^
user.cpp: In function ‘double d(point, point, point)’:
user.cpp:30:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !