Borderou de evaluare (job #2004551)

Utilizator akaprosAna Kapros akapros Data 26 iulie 2017 10:00:04
Problema Harbingers Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:40:20: error: parameter declared ‘auto’ double inters(auto it1, auto it2) ^ user.cpp:40:30: error: parameter declared ‘auto’ double inters(auto it1, auto it2) ^ user.cpp: In function ‘double inters()’: user.cpp:42:21: error: ‘it2’ was not declared in this scope return (double)(it2->b - it1->b) / (it1->a - it2->a); ^ user.cpp:42:30: error: ‘it1’ was not declared in this scope return (double)(it2->b - it1->b) / (it1->a - it2->a); ^ user.cpp: At global scope: user.cpp:44:16: error: parameter declared ‘auto’ bool Prev(auto it) ^ user.cpp: In function ‘bool Prev()’: user.cpp:46:13: error: ‘it’ was not declared in this scope return (it != s.begin()); ^ user.cpp: At global scope: user.cpp:48:16: error: parameter declared ‘auto’ bool Next(auto it) ^ user.cpp: In function ‘bool Next()’: user.cpp:50:13: error: ‘it’ was not declared in this scope return (it != s.end() && next(it) != s.end()); ^ user.cpp: In function ‘void recompX(sit)’: user.cpp:55:16: error: too many arguments to function ‘bool Prev()’ if (Prev(it)) ^ user.cpp:44:6: note: declared here bool Prev(auto it) ^ user.cpp:58:34: error: too many arguments to function ‘double inters()’ l.x = inters(prev(it), it); ^ user.cpp:40:8: note: declared here double inters(auto it1, auto it2) ^ user.cpp: At global scope: user.cpp:63:22: error: parameter declared ‘auto’ bool irrelevant(auto it) ^ user.cpp: In function ‘bool irrelevant()’: user.cpp:65:14: error: ‘it’ was not declared in this scope if (Next(it) && next(it)->b <= it->b) /// next(it)->a < it->a ^

Ceva nu functioneaza?