#3812
Inaltimi2
Se dau lungimile laturilor unui triunghi ABC
. Calculati lungimile inaltimilor duse din A, B, C
.
matematică
Problema | Inaltimi2 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #35708747 | Utilizator | |
Fișier | inaltimi2.cpp | Dimensiune | 466 B |
Data încărcării | 19 Martie 2022, 19:43 | Scor / rezultat | Eroare de compilare |
inaltimi2.cpp: In function 'int main()': inaltimi2.cpp:23:13: error: call of overloaded 'isnan(double&)' is ambiguous if(isnan(ah) || isnan(bh) || isnan(ch)) ^ inaltimi2.cpp:23:13: note: candidates are: In file included from /usr/include/features.h:374:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426, from /usr/include/c++/4.8/iostream:38, from inaltimi2.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:234:1: note: int isnan(double) __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from inaltimi2.cpp:3:0: /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) ^ inaltimi2.cpp:23:26: error: call of overloaded 'isnan(double&)' is ambiguous if(isnan(ah) || isnan(bh) || isnan(ch)) ^ inaltimi2.cpp:23:26: note: candidates are: In file included from /usr/include/features.h:374:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426, from /usr/include/c++/4.8/iostream:38, from inaltimi2.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:234:1: note: int isnan(double) __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from inaltimi2.cpp:3:0: /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) ^ inaltimi2.cpp:23:39: error: call of overloaded 'isnan(double&)' is ambiguous if(isnan(ah) || isnan(bh) || isnan(ch)) ^ inaltimi2.cpp:23:39: note: candidates are: In file included from /usr/include/features.h:374:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426, from /usr/include/c++/4.8/iostream:38, from inaltimi2.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:234:1: note: int isnan(double) __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from inaltimi2.cpp:3:0: /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) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Inaltimi2 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.