Borderou de evaluare (job #2072394)
Utilizator | Data | 21 noiembrie 2017 20:14:40 | |
---|---|---|---|
Problema | Cele mai apropiate puncte din plan | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool SorteazaDupaX(const Punct2D&, const Punct2D&)’:
user.cpp:25:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (A.x == B.x)
^
user.cpp: In function ‘bool SorteazaDupaY(const Punct2D&, const Punct2D&)’:
user.cpp:37:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (A.y == B.y)
^
user.cpp: In function ‘std::pair<std::pair<Punct2D, Punct2D>, double> ClosestPoints(std::vector<Punct2D>, std::vector<Punct2D>)’:
user.cpp:58:79: error: ‘DBL_MAX’ was not declared in this scope
pair<pair<Punct2D, Punct2D>,double> min= make_pair(make_pair(Px[0], Px[0]), DBL_MAX);
^
user.cpp: In function ‘int main()’:
user.cpp:126:17: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("pause");
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !