#3539
oop_numere_complexe
C++
Ai primit definiția unei clase. Implementează toate metodele clasei.
Problema | oop_numere_complexe | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58523695 | Utilizator | |
Fișier | oop_numere_complexe.cpp | Dimensiune | 1.01 KB |
Data încărcării | 13 Iunie 2025, 22:02 | Scor / rezultat | Eroare de compilare |
oop_numere_complexe.cpp:70:30: error: ISO C++ forbids declaration of 'operator+' with no type [-fpermissive] Complex::operator+(Complex nr) ^ oop_numere_complexe.cpp:70:1: error: prototype for 'int Complex::operator+(Complex)' does not match any in class 'Complex' Complex::operator+(Complex nr) ^ oop_numere_complexe.cpp:24:13: error: candidate is: Complex Complex::operator+(Complex) Complex operator +(Complex ); ^ oop_numere_complexe.cpp:75:30: error: ISO C++ forbids declaration of 'operator-' with no type [-fpermissive] Complex::operator-(Complex nr) ^ oop_numere_complexe.cpp:75:1: error: prototype for 'int Complex::operator-(Complex)' does not match any in class 'Complex' Complex::operator-(Complex nr) ^ oop_numere_complexe.cpp:26:13: error: candidate is: Complex Complex::operator-(Complex) Complex operator -(Complex ); ^ oop_numere_complexe.cpp:80:30: error: ISO C++ forbids declaration of 'operator*' with no type [-fpermissive] Complex::operator*(Complex nr) ^ oop_numere_complexe.cpp:80:1: error: prototype for 'int Complex::operator*(Complex)' does not match any in class 'Complex' Complex::operator*(Complex nr) ^ oop_numere_complexe.cpp:28:13: error: candidate is: Complex Complex::operator*(Complex) Complex operator *(Complex ); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema oop_numere_complexe 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ă.