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 | #46288950 | Utilizator | |
Fișier | numere_mari.cpp | Dimensiune | 3.39 KB |
Data încărcării | 09 Noiembrie 2023, 13:59 | Scor / rezultat | Eroare de compilare |
numere_mari.cpp: In function 'bool operator==(const big_int&, const big_int&)': numere_mari.cpp:62:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < a.digits.length(); ++i){ ^ numere_mari.cpp: In function 'bool operator<(const big_int&, const big_int&)': numere_mari.cpp:75:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < a.digits.length(); ++i){ ^ numere_mari.cpp: In member function 'big_int big_int::operator-() const': numere_mari.cpp:93:18: error: assignment of member 'big_int::sign' in read-only object sign = -1; ^ numere_mari.cpp:95:18: error: assignment of member 'big_int::sign' in read-only object sign = 1; ^ numere_mari.cpp: In member function 'big_int big_int::operator+(const big_int&) const': numere_mari.cpp:103:76: error: 'const string' has no member named 'lenght' int n = (this->digits.length() > b.digits.length()) ? this->digits.lenght() : b.digits.length(); ^ numere_mari.cpp:103:13: warning: unused variable 'n' [-Wunused-variable] int n = (this->digits.length() > b.digits.length()) ? this->digits.lenght() : b.digits.length(); ^ numere_mari.cpp:104: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:108: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:112: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:116: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:120:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In function 'std::istream& operator>>(std::istream&, big_int&)': numere_mari.cpp:124:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In function 'std::ostream& operator<<(std::ostream&, const big_int&)': numere_mari.cpp:128:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In function 'int main()': numere_mari.cpp:150:5: error: redefinition of 'int main()' int main() ^ numere_mari.cpp:130: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ă.