Problema | radical | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52095215 | Utilizator | |
Fișier | radical.cpp | Dimensiune | 134 B |
Data încărcării | 18 Septembrie 2024, 21:15 | Scor / rezultat | Eroare de compilare |
radical.cpp: In function 'int main()': radical.cpp:8:18: error: no matching function for call to 'sqrt(int&, int)' cout <<sqrt (n, 2); ^ radical.cpp:8:18: 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 radical.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:156:1: note: double sqrt(double) __MATHCALL (sqrt,, (_Mdouble_ __x)); ^ /usr/include/i386-linux-gnu/bits/mathcalls.h:156:1: note: candidate expects 1 argument, 2 provided In file included from radical.cpp:2:0: /usr/include/c++/4.8/cmath:494:5: note: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::sqrt(_Tp) sqrt(_Tp __x) ^ /usr/include/c++/4.8/cmath:494:5: note: template argument deduction/substitution failed: radical.cpp:8:18: note: candidate expects 1 argument, 2 provided cout <<sqrt (n, 2); ^ In file included from radical.cpp:2:0: /usr/include/c++/4.8/cmath:486:3: note: constexpr long double std::sqrt(long double) sqrt(long double __x) ^ /usr/include/c++/4.8/cmath:486:3: note: candidate expects 1 argument, 2 provided /usr/include/c++/4.8/cmath:482:3: note: constexpr float std::sqrt(float) sqrt(float __x) ^ /usr/include/c++/4.8/cmath:482:3: note: candidate expects 1 argument, 2 provided
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema radical 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ă.