Borderou de evaluare (job #2225595)
Utilizator | Data | 27 iulie 2018 17:36:23 | |
---|---|---|---|
Problema | Culoar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘double Dist(Line, Point)’:
user.cpp:60:18: error: ‘fabs’ is not a member of ‘std’
return (double)std::fabs(line.a * P.x + line.b * P.y + line.c) / std::sqrt(line.a * line.a + line.b * line.b);
^~~
user.cpp:60:68: error: ‘sqrt’ is not a member of ‘std’
return (double)std::fabs(line.a * P.x + line.b * P.y + line.c) / std::sqrt(line.a * line.a + line.b * line.b);
^~~
user.cpp: In function ‘void ReadInput()’:
user.cpp:64:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:66:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
double x, y; scanf("%lf%lf", &x, &y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !