| 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 | #60748100 | Utilizator | |
| Fișier | numere_mari.cpp | Dimensiune | 2.40 KB |
| Data încărcării | 10 Noiembrie 2025, 18:41 | Scor/rezultat | Eroare de compilare |
numere_mari.cpp: In member function 'big_int::operator std::string() const': numere_mari.cpp:36:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In member function 'big_int big_int::abs() const': numere_mari.cpp:46:34: error: invalid conversion from 'const big_int* const' to 'int' [-fpermissive] if(this->sign==1) return this; ^ numere_mari.cpp:26:5: error: initializing argument 1 of 'big_int::big_int(int)' [-fpermissive] big_int(int n){ ^ numere_mari.cpp: In member function 'big_int big_int::operator-() const': numere_mari.cpp:55: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:58: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:61: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:64: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:67: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:70: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:73: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:76:5: warning: no return statement in function returning non-void [-Wreturn-type] } ^ numere_mari.cpp: In function 'int main()': numere_mari.cpp:98:5: error: redefinition of 'int main()' int main() ^ numere_mari.cpp:79: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ă.