| 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 | #64497304 | Utilizator | |
| Fișier | numere_mari.cpp | Dimensiune | 7.32 KB |
| Data încărcării | 11 Mai 2026, 11:49 | Scor/rezultat | Eroare de compilare |
numere_mari.cpp: In member function ‘big_int::operator std::string() const’: numere_mari.cpp:56:13: warning: unused variable ‘i’ [-Wunused-variable] 56 | int i; | ^ numere_mari.cpp: In member function ‘big_int big_int::operator+(const big_int&) const’: numere_mari.cpp:127:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const long unsigned int’ [-Wsign-compare] 127 | for(i=0;i<min(digits.size(),b.digits.size());i++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ numere_mari.cpp:133:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 133 | for (; i < digits.size(); i++) | ~~^~~~~~~~~~~~~~~ numere_mari.cpp:139:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 139 | for (; i < b.digits.size(); i++) | ~~^~~~~~~~~~~~~~~~~ numere_mari.cpp: In member function ‘big_int big_int::operator-(const big_int&) const’: numere_mari.cpp:170:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const long unsigned int’ [-Wsign-compare] 170 | for(i=0;i<min(digits.size(),b.digits.size());i++) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ numere_mari.cpp:184:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 184 | for (; i < digits.size(); i++) | ~~^~~~~~~~~~~~~~~ numere_mari.cpp: In member function ‘big_int big_int::operator*(const big_int&) const’: numere_mari.cpp:208:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 208 | for(i=0;i<digits.size();i++) | ~^~~~~~~~~~~~~~ numere_mari.cpp:211:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 211 | for(j=0;j<b.digits.size();j++) | ~^~~~~~~~~~~~~~~~ numere_mari.cpp: In member function ‘big_int big_int::operator/(const big_int&) const’: numere_mari.cpp:229:5: warning: no return statement in function returning non-void [-Wreturn-type] 229 | } | ^ numere_mari.cpp: In member function ‘big_int big_int::operator%(const big_int&) const’: numere_mari.cpp:233:5: warning: no return statement in function returning non-void [-Wreturn-type] 233 | } | ^ numere_mari.cpp: At global scope: numere_mari.cpp:281:5: error: redefinition of ‘int main()’ 281 | int main() | ^~~~ numere_mari.cpp:261:5: note: ‘int main()’ previously defined here 261 | int main() | ^~~~ numere_mari.cpp: In member function ‘big_int big_int::operator+(const big_int&) const’: numere_mari.cpp:152:5: warning: control reaches end of non-void function [-Wreturn-type] 152 | } | ^ numere_mari.cpp: In member function ‘big_int big_int::operator-(const big_int&) const’: numere_mari.cpp:197:5: warning: control reaches end of non-void function [-Wreturn-type] 197 | } | ^
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ă.