Borderou de evaluare (job #2220584)

Utilizator rebecca0312Andrei Rebecca rebecca0312 Data 12 iulie 2018 10:38:29
Problema Trapez Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘double panta(POINT, POINT)’: user.cpp:17:20: error: ‘fabs’ was not declared in this scope if(fabs(A.x-B.x)<eps) ^ user.cpp: In function ‘int main()’: user.cpp:38:59: error: ‘fabs’ was not declared in this scope while(i<(int)pant.size() && fabs(pant[i]-pant[ind])<eps){ ^ user.cpp:23:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trapez.in","r",stdin); ^ user.cpp:24:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trapez.out","w",stdout); ^ user.cpp:26:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:28:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf%lf", &z.x, &z.y); ^

Ceva nu functioneaza?