Borderou de evaluare (job #1952134)

Utilizator radu.leonardoThe Doctor radu.leonardo Data 3 aprilie 2017 22:52:18
Problema Algoritmul lui Gauss Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In instantiation of ‘char* OutputDevice::writeFloatingPoint(F, char*) [with F = double]’: user.cpp:410:71: required from ‘typename std::enable_if<std::is_floating_point<_Tp>::value, int>::type OutputDevice::write(F) [with F = double; typename std::enable_if<std::is_floating_point<_Tp>::value, int>::type = int]’ user.cpp:473:98: required from ‘int write(Ts&& ...) [with Ts = {double&}]’ user.cpp:522:37: required from here user.cpp:314:18: error: call of overloaded ‘isnan(double&)’ is ambiguous if (isnan(arg)) for (int i = 0; i < 3; ++i) *--last = i["NaN"]; ^ user.cpp:314:18: note: candidates are: In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:236:1: note: int isnan(double) __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:41:0, from user.cpp:1: /usr/include/c++/4.8/cmath:626:3: note: constexpr bool std::isnan(long double) isnan(long double __x) ^ /usr/include/c++/4.8/cmath:622:3: note: constexpr bool std::isnan(double) isnan(double __x) ^ /usr/include/c++/4.8/cmath:618:3: note: constexpr bool std::isnan(float) isnan(float __x) ^ user.cpp:315:23: error: call of overloaded ‘isinf(double&)’ is ambiguous else if (isinf(arg)) for (int i = 0; i < 3; ++i) *--last = i["fnI"]; ^ user.cpp:315:23: note: candidates are: In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:203:1: note: int isinf(double) __MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:41:0, from user.cpp:1: /usr/include/c++/4.8/cmath:608:3: note: constexpr bool std::isinf(long double) isinf(long double __x) ^ /usr/include/c++/4.8/cmath:604:3: note: constexpr bool std::isinf(double) isinf(double __x) ^ /usr/include/c++/4.8/cmath:600:3: note: constexpr bool std::isinf(float) isinf(float __x) ^

Ceva nu functioneaza?