Stačiakampio paklaida

Taškai: 0

Compile: FAIL

paklaida.cpp: In function ‘int main()’: paklaida.cpp:27:33: error: call of overloaded ‘abs(double)’ is ambiguous double maxSonas = max(abs(f - c), abs(e-d)); ^ In file included from /usr/include/c++/5/cstdlib:72:0, from /usr/include/c++/5/ext/string_conversions.h:41, from /usr/include/c++/5/bits/basic_string.h:5249, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from paklaida.cpp:1: /usr/include/stdlib.h:774:12: note: candidate: int abs(int) extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur; ^ In file included from /usr/include/c++/5/ext/string_conversions.h:41:0, from /usr/include/c++/5/bits/basic_string.h:5249, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from paklaida.cpp:1: /usr/include/c++/5/cstdlib:174:3: note: candidate: long long int std::abs(long long int) abs(long long __x) { return __builtin_llabs (__x); } ^ /usr/include/c++/5/cstdlib:166:3: note: candidate: long int std::abs(long int) abs(long __i) { return __builtin_labs(__i); } ^ paklaida.cpp:27:43: error: call of overloaded ‘abs(double)’ is ambiguous double maxSonas = max(abs(f - c), abs(e-d)); ^ In file included from /usr/include/c++/5/cstdlib:72:0, from /usr/include/c++/5/ext/string_conversions.h:41, from /usr/include/c++/5/bits/basic_string.h:5249, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from paklaida.cpp:1: /usr/include/stdlib.h:774:12: note: candidate: int abs(int) extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur; ^ In file included from /usr/include/c++/5/ext/string_conversions.h:41:0, from /usr/include/c++/5/bits/basic_string.h:5249, from /usr/include/c++/5/string:52, from /usr/include/c++/5/bits/locale_classes.h:40, from /usr/include/c++/5/bits/ios_base.h:41, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from paklaida.cpp:1: /usr/include/c++/5/cstdlib:174:3: note: candidate: long long int std::abs(long long int) abs(long long __x) { return __builtin_llabs (__x); } ^ /usr/include/c++/5/cstdlib:166:3: note: candidate: long int std::abs(long int) abs(long __i) { return __builtin_labs(__i); } ^

nr.resulttimemessage