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 | #51186382 | Utilizator | |
Fișier | numere_mari.cpp | Dimensiune | 5.29 KB |
Data încărcării | 29 Mai 2024, 08:51 | Scor / rezultat | 0 puncte |
numere_mari.cpp: In member function 'big_int::operator std::string() const': numere_mari.cpp:35: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:81:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(s==digits.size()){ ^ numere_mari.cpp:82:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=s; i<b.digits.size(); i++){ ^ numere_mari.cpp:89:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=s; i<digits.size(); i++){ ^ numere_mari.cpp: In member function 'big_int big_int::operator-(const big_int&) const': numere_mari.cpp:107:16: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(sign==b.sign==1 && t<b) return -(b-t); ^ numere_mari.cpp:108:16: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(sign==b.sign==-1) return (-b)-t; ^ numere_mari.cpp:129:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=s; i<t.digits.size(); i++){ ^ numere_mari.cpp: In member function 'big_int big_int::operator/(const big_int&) const': numere_mari.cpp:166:13: warning: unused variable 'x' [-Wunused-variable] int x=0; ^ numere_mari.cpp:175: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:179:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Caught fatal signal 11 | 10 | 0 | Exemplu | |
2 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
3 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
4 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
5 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
6 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
7 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
8 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
9 | 0.04 secunde | Caught fatal signal 11 | 10 | 0 | ||
10 | 0 secunde | Caught fatal signal 11 | 10 | 0 | ||
Punctaj total | 0 |
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ă.