Borderou de evaluare (job #2202244)

Utilizator kitzTimofte Bogdan kitz Data 8 mai 2018 08:27:46
Problema Cercuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:30:50: error: ‘abs’ was not declared in this scope if ( dist > A.r + B.r || dist < abs(A.r - B.r) ) { printf("%d\n", -2); continue; } ^ user.cpp:30:50: note: suggested alternative: In file included from user.cpp:2:0: /usr/include/c++/6/cmath:103:5: note: ‘std::abs’ abs(_Tp __x) ^~~ user.cpp:32:51: error: ‘abs’ was not declared in this scope if (dist == A.r + B.r || dist == abs(A.r - B.r)) { printf("%d\n", -3); continue; } ^ user.cpp:32:51: note: suggested alternative: In file included from user.cpp:2:0: /usr/include/c++/6/cmath:103:5: note: ‘std::abs’ abs(_Tp __x) ^~~ user.cpp:19:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cercuri.in", "r", stdin); ^ user.cpp:20:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cercuri.out", "w", stdout); ^ user.cpp:22:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:24:69: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %lf %d %d %lf", &A.x, &A.y, &A.r, &B.x, &B.y, &B.r); ^

Ceva nu functioneaza?