#1713
Fie N și T două numere naturale.
Să se determine numărul soluțiilor diferite S, ale ecuației \( x_1 \cdot x_2 \cdot \cdots \cdot x_N = T \), în mulțimea numerelor naturale.
| Problema | ecuatie3 | Operații I/O |
ecuatie3.in/ecuatie3.out
|
|---|---|---|---|
| Limita timp | 1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 16 MB
|
| Id soluție | #58670826 | Utilizator | |
| Fișier | ecuatie3.cpp | Dimensiune | 709 B |
| Data încărcării | 14 Iulie 2025, 12:31 | Scor/rezultat | Eroare de compilare |
ecuatie3.cpp: In function 'long long unsigned int C(long long unsigned int, long long unsigned int)': ecuatie3.cpp:14:22: error: no matching function for call to 'max(int, long long unsigned int)' return max(0,x1 / x2); ^ ecuatie3.cpp:14:22: note: candidates are: In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from ecuatie3.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) max(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/4.8/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed: ecuatie3.cpp:14:22: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long unsigned int') return max(0,x1 / x2); ^ In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from ecuatie3.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed: ecuatie3.cpp:14:22: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long long unsigned int') return max(0,x1 / x2); ^ ecuatie3.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ecuatie3 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ă.