Borderou de evaluare (job #1026647)

Utilizator roots4Irimia Alexandru Gabriel roots4 Data 11 noiembrie 2013 20:40:33
Problema Babacu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read()’: user.cpp:31:17: error: call of overloaded ‘abs(double&)’ is ambiguous if( abs(V[i].a) < x_min ) ^ user.cpp:31:17: note: candidates are: In file included from /usr/local/include/c++/4.8.0/cstdlib:72:0, from /usr/local/include/c++/4.8.0/ext/string_conversions.h:41, from /usr/local/include/c++/4.8.0/bits/basic_string.h:2817, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40, from /usr/local/include/c++/4.8.0/bits/ios_base.h:41, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/include/stdlib.h:766:12: note: int abs(int) extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur; ^ user.cpp:20:8: note: double abs(double) double abs( double a ){ ^ In file included from /usr/local/include/c++/4.8.0/random:38:0, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:2: /usr/local/include/c++/4.8.0/cmath:91:3: note: constexpr long double std::abs(long double) abs(long double __x) ^ /usr/local/include/c++/4.8.0/cmath:87:3: note: constexpr float std::abs(float) abs(float __x) ^ /usr/local/include/c++/4.8.0/cmath:81:3: note: constexpr double std::abs(double) abs(double __x) ^ In file included from /usr/local/include/c++/4.8.0/ext/string_conversions.h:41:0, from /usr/local/include/c++/4.8.0/bits/basic_string.h:2817, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40, from /usr/local/include/c++/4.8.0/bits/ios_base.h:41, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/cstdlib:174:3: note: long long int std::abs(long long int) abs(long long __x) { return __builtin_llabs (__x); } ^ /usr/local/include/c++/4.8.0/cstdlib:166:3: note: long int std::abs(long int) abs(long __i) { return __builtin_labs(__i); } ^ user.cpp:32:22: error: call of overloaded ‘abs(double&)’ is ambiguous

Ceva nu functioneaza?