Borderou de evaluare (job #2368546)

Utilizator bogdi1bogdan bancuta bogdi1 Data 5 martie 2019 16:33:20
Problema Dreapta Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool cmp(Query, Query)': main.cpp:18:20: error: 'fabs' was not declared in this scope if(fabs(a.x-b.x)<eps) ^ main.cpp:22:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ main.cpp: In function 'int main()': main.cpp:43:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] { freopen("dreapta.in", "r",stdin); ^ main.cpp:44:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("dreapta.out", "w",stdout); ^ main.cpp:46:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:48:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lf%lf", &v[i].x, &v[i].y); ^ main.cpp:49:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &q); ^ main.cpp:51:46: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lf%lf", &que[i].x, &que[i].y); ^ Non zero exit status: 1

Ceva nu functioneaza?