Borderou de evaluare (job #1660417)
Utilizator | Data | 23 martie 2016 08:21:23 | |
---|---|---|---|
Problema | Geometrie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool cmp1(const mPoint&, const mPoint&)’:
user.cpp:28:33: error: ‘points’ was not declared in this scope
long long cp = crossProduct(points[1], A, B);
^
user.cpp: In function ‘bool cmp2(const mPoint&, const mPoint&)’:
user.cpp:40:33: error: ‘points’ was not declared in this scope
long long cp = crossProduct(points[1], A, B);
^
user.cpp: In function ‘int binSrc(int, int, int, mPoint)’:
user.cpp:55:16: error: ‘tmp’ was not declared in this scope
memcpy(tmp, trig, sizeof (tmp));
^
user.cpp:57:16: error: ‘tmp’ was not declared in this scope
memcpy(tmp, antiTrig, sizeof (tmp));
^
user.cpp:62:19: error: ‘tmp’ was not declared in this scope
if (p.x > tmp[mid].x) {
^
user.cpp: In function ‘void convexHull()’:
user.cpp:75:28: error: ‘points’ was not declared in this scope
memcpy(pointsAntiTrig, points, sizeof (points));
^
user.cpp:88:28: error: no match for ‘operator&&’ (operand types are ‘bool’ and ‘mPoint’)
for (int i = 3; i <= n && trig[topT]; i++) {
^
user.cpp:88:28: note: candidate is:
user.cpp:88:28: note: operator&&(bool, bool) <built-in>
user.cpp:88:28: note: no known conversion for argument 2 from ‘mPoint’ to ‘bool’
user.cpp:89:47: error: ‘mStack’ was not declared in this scope
while (topT > 2 && 1LL * crossProduct(mStack[top-1], mStack[top], points[i]) < 0)
^
user.cpp:91:9: error: ‘mStackTrig’ was not declared in this scope
mStackTrig[++topT] = points[i];
^
user.cpp: In function ‘int main()’:
user.cpp:108:17: error: too many arguments to function ‘void convexHull()’
convexHull(1);
^
user.cpp:73:6: note: declared here
void convexHull()
^
user.cpp:110:26: error: ‘t’ was not declared in this scope
for (int i = 2; i <= t; i++) {
^
user.cpp:116:17: error: too many arguments to function ‘void convexHull()’
convexHull(2);
^
user.cpp:73:6: note: declared here
void convexHull()
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !