Borderou de evaluare (job #2072495)
Utilizator | Data | 21 noiembrie 2017 21:46:50 | |
---|---|---|---|
Problema | Pitici2 | 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:32: error: call of overloaded ‘isinf(double&)’ is ambiguous
if(isinf(pd) || isinf(val[k])){
^
user.cpp:30:32: 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)
^
user.cpp:30:49: error: call of overloaded ‘isinf(double&)’ is ambiguous
if(isinf(pd) || isinf(val[k])){
^
user.cpp:30:49: 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)
^
user.cpp:31:36: error: call of overloaded ‘isinf(double&)’ is ambiguous
if(isinf(pd) && isinf(val[k])){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !