| 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 | #64268720 | Utilizator | |
| Fișier | numere_mari.cpp | Dimensiune | 6.81 KB |
| Data încărcării | 27 Aprilie 2026, 11:47 | 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:206:25: error: ‘a’ was not declared in this scope 206 | r.digits.resize(a.digits.size()+b.digits.size(),) | ^ numere_mari.cpp:206:57: error: expected primary-expression before ‘)’ token 206 | r.digits.resize(a.digits.size()+b.digits.size(),) | ^ numere_mari.cpp: In member function ‘big_int big_int::operator/(const big_int&) const’: numere_mari.cpp:211:5: warning: no return statement in function returning non-void [-Wreturn-type] 211 | } | ^ numere_mari.cpp: In member function ‘big_int big_int::operator%(const big_int&) const’: numere_mari.cpp:215:5: warning: no return statement in function returning non-void [-Wreturn-type] 215 | } | ^ numere_mari.cpp: At global scope: numere_mari.cpp:263:5: error: redefinition of ‘int main()’ 263 | int main() | ^~~~ numere_mari.cpp:243:5: note: ‘int main()’ previously defined here 243 | 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 | } | ^ numere_mari.cpp: In member function ‘big_int big_int::operator*(const big_int&) const’: numere_mari.cpp:207:5: warning: control reaches end of non-void function [-Wreturn-type] 207 | } | ^
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ă.