Problema | Numere Mari | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #48456193 | Utilizator | |
Fișier | numere_mari.cpp | Dimensiune | 3.89 KB |
Data încărcării | 26 Ianuarie 2024, 08:49 | Scor / rezultat | Eroare de compilare |
numere_mari.cpp: In constructor 'big_int::big_int(int)': numere_mari.cpp:56:31: error: call of overloaded 'to_string(int&)' is ambiguous string s = to_string(n); ^ numere_mari.cpp:56:31: note: candidates are: numere_mari.cpp:9:13: note: std::string to_string(int) std::string to_string( int x ) { ^ In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/sstream:38, from /usr/include/c++/4.8/complex:45, from /usr/include/c++/4.8/ccomplex:38, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52, from numere_mari.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2916:3: note: std::string std::to_string(long double) to_string(long double __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2907:3: note: std::string std::to_string(double) to_string(double __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2898:3: note: std::string std::to_string(float) to_string(float __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2892:3: note: std::string std::to_string(long long unsigned int) to_string(unsigned long long __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2886:3: note: std::string std::to_string(long long int) to_string(long long __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2880:3: note: std::string std::to_string(long unsigned int) to_string(unsigned long __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2875:3: note: std::string std::to_string(long int) to_string(long __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2869:3: note: std::string std::to_string(unsigned int) to_string(unsigned __val) ^ /usr/include/c++/4.8/bits/basic_string.h:2864:3: note: std::string std::to_string(int) to_string(int __val) ^ numere_mari.cpp: In member function 'big_int::operator std::string() const': numere_mari.cpp:64:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In function 'bool operator<(const big_int&, const big_int&)': numere_mari.cpp:87:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In member function 'big_int big_int::abs() const': numere_mari.cpp:91:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In member function 'big_int big_int::operator-() const': numere_mari.cpp:95:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In member function 'big_int big_int::operator+(const big_int&) const': numere_mari.cpp:99:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In member function 'big_int big_int::operator-(const big_int&) const': numere_mari.cpp:103:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In member function 'big_int big_int::operator*(const big_int&) const': numere_mari.cpp:107:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In member function 'big_int big_int::operator/(const big_int&) const': numere_mari.cpp:111:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In member function 'big_int big_int::operator%(const big_int&) const': numere_mari.cpp:115:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In function 'int main()': numere_mari.cpp:175:5: error: redefinition of 'int main()' int main() ^ numere_mari.cpp:152:5: error: 'int main()' previously defined here int main() ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere Mari face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. 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ă.