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 | #51186359 | Utilizator | |
Fișier | numere_mari.cpp | Dimensiune | 6.51 KB |
Data încărcării | 29 Mai 2024, 08:50 | Scor / rezultat | Eroare de compilare |
numere_mari.cpp: In function 'bool operator<(const big_int&, const big_int&)': numere_mari.cpp:71:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<a.digits.size(); i++){ ^ numere_mari.cpp: In function 'bool operator>=(const big_int&, const big_int&)': numere_mari.cpp:86:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<a.digits.size(); i++){ ^ numere_mari.cpp: In member function 'big_int big_int::operator+(const big_int&) const': numere_mari.cpp:122:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(s==digits.size()){ ^ numere_mari.cpp:123:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=s; i<b.digits.size(); i++){ ^ numere_mari.cpp:130: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:148:16: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(sign==b.sign==1 && t<b) return -(b-t); ^ numere_mari.cpp:149:16: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(sign==b.sign==-1) return (-b)-t; ^ numere_mari.cpp:170: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:182:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<digits.size(); i++){ ^ numere_mari.cpp:184:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j=0; j<b.digits.size(); j++){ ^ numere_mari.cpp:189:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<inmultire.digits.size(); i++){ ^ numere_mari.cpp: In function 'int main()': numere_mari.cpp:259:5: error: redefinition of 'int main()' int main() ^ numere_mari.cpp:239: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ă.