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 | #51188299 | Utilizator | |
Fișier | numere_mari.cpp | Dimensiune | 2.58 KB |
Data încărcării | 29 Mai 2024, 09:58 | Scor / rezultat | Eroare de compilare |
numere_mari.cpp:27:28: error: invalid constructor; you probably meant 'Fotbalist (const Fotbalist&)' Fotbalist (Fotbalist a) ^ numere_mari.cpp:90:45: error: 'Fractie' has not been declared friend ostream& operator <<(ostream& file, Fractie p) ^ numere_mari.cpp: In destructor 'Fotbalist::~Fotbalist()': numere_mari.cpp:51:9: error: 'fout' was not declared in this scope fout << "Fotbalistul " << name << " s-a retras din fotbal\n"; ^ numere_mari.cpp: In member function 'Fotbalist Fotbalist::operator-(Fotbalist&)': numere_mari.cpp:56:19: error: no matching function for call to 'Fotbalist::Fotbalist()' Fotbalist f; ^ numere_mari.cpp:56:19: note: candidates are: numere_mari.cpp:41:6: note: Fotbalist::Fotbalist(std::string, std::string, std::string, int) Fotbalist(string nume, string poz, string fclub, int avg) ^ numere_mari.cpp:41:6: note: candidate expects 4 arguments, 0 provided numere_mari.cpp:11:7: note: Fotbalist::Fotbalist(const Fotbalist&) class Fotbalist ^ numere_mari.cpp:11:7: note: candidate expects 1 argument, 0 provided numere_mari.cpp:59:11: error: 'class Fotbalist' has no member named 'pozitie' f.pozitie = poz + " vs " + p.poz; ^ numere_mari.cpp:59:21: error: 'poz' was not declared in this scope f.pozitie = poz + " vs " + p.poz; ^ numere_mari.cpp:59:38: error: 'class Fotbalist' has no member named 'poz' f.pozitie = poz + " vs " + p.poz; ^ numere_mari.cpp: In function 'std::ostream& operator<<(std::ostream&, int)': numere_mari.cpp:14:6: error: invalid use of non-static data member 'Fotbalist::ovr' int ovr; ^ numere_mari.cpp:92:9: error: from this location if(ovr != 0) ^ numere_mari.cpp:94:23: error: request for member 'name' in 'p', which is of non-class type 'int' file << p.name << " - Ovr: " << p.ovr << '\n' ^ numere_mari.cpp:94:48: error: request for member 'ovr' in 'p', which is of non-class type 'int' file << p.name << " - Ovr: " << p.ovr << '\n' ^ numere_mari.cpp:95:13: error: expected ';' before 'file' file << "Pozitie: " << p.pos << '\n'; ^ numere_mari.cpp:96:35: error: request for member 'club' in 'p', which is of non-class type 'int' file << "Club: " << p.club << '\n'; ^ numere_mari.cpp:98:13: error: expected ';' before 'file' file << "- Viteza : " << p.pace << '\n'; ^ numere_mari.cpp:99:43: error: request for member 'pass' in 'p', which is of non-class type 'int' file << "- Pase : " << p.pass << '\n'; ^ numere_mari.cpp:100:43: error: request for member 'shooting' in 'p', which is of non-class type 'int' file << "- Tragere : " << p.shooting << '\n'; ^ numere_mari.cpp:101:43: error: request for member 'dribbling' in 'p', which is of non-class type 'int' file << "- Dribbling : " << p.dribbling << '\n'; ^ numere_mari.cpp:102:43: error: request for member 'defend' in 'p', which is of non-class type 'int' file << "- Aparare : " << p.defend << '\n'; ^ numere_mari.cpp:103:43: error: request for member 'physical' in 'p', which is of non-class type 'int' file << "- Fizic : " << p.physical << '\n'; ^ numere_mari.cpp:110:9: error: expected primary-expression before '}' token } ^ numere_mari.cpp:110:9: error: expected ';' before '}' token numere_mari.cpp: In function 'int main()': numere_mari.cpp:117:2: error: 'Fractie' was not declared in this scope Fractie f1; ^ numere_mari.cpp:117:10: error: expected ';' before 'f1' Fractie f1; ^ numere_mari.cpp:118:5: error: 'fin' was not declared in this scope fin >> f1; ^ numere_mari.cpp:118:12: error: 'f1' was not declared in this scope fin >> f1; ^ numere_mari.cpp:119:5: error: 'fout' was not declared in this scope fout << f1; ^ numere_mari.cpp: In function 'int main()': numere_mari.cpp:123:5: error: redefinition of 'int main()' int main() ^ numere_mari.cpp:115:5: error: 'int main()' previously defined here int main() ^ numere_mari.cpp:125:5: error: 'big_int' was not declared in this scope big_int a = 96, b("420"); ^ numere_mari.cpp:125:13: error: expected ';' before 'a' big_int a = 96, b("420"); ^ numere_mari.cpp:126:12: error: 'a' was not declared in this scope cin >> a >> b; ^ numere_mari.cpp:126:17: error: 'b' was not declared in this scope cin >> a >> b; ^
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ă.