Problema | oop_3 | Operații I/O |
oop_3.in /oop_3.out
|
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #38582001 | Utilizator | |
Fișier | oop_3.cpp | Dimensiune | 1.33 KB |
Data încărcării | 13 Octombrie 2022, 18:28 | Scor / rezultat | Eroare de compilare |
oop_3.cpp: In function 'int main()': oop_3.cpp:63:13: error: no matching function for call to 'Stiva::Push(int)' w.Push(4); ^ oop_3.cpp:63:13: note: candidate is: oop_3.cpp:16:10: note: void Stiva::Push(int, int&) void Push(int x,int &k) ^ oop_3.cpp:16:10: note: candidate expects 2 arguments, 1 provided oop_3.cpp:64:13: error: no matching function for call to 'Stiva::Push(int)' w.Push(2); ^ oop_3.cpp:64:13: note: candidate is: oop_3.cpp:16:10: note: void Stiva::Push(int, int&) void Push(int x,int &k) ^ oop_3.cpp:16:10: note: candidate expects 2 arguments, 1 provided oop_3.cpp:65:13: error: no matching function for call to 'Stiva::Push(int)' w.Push(5); ^ oop_3.cpp:65:13: note: candidate is: oop_3.cpp:16:10: note: void Stiva::Push(int, int&) void Push(int x,int &k) ^ oop_3.cpp:16:10: note: candidate expects 2 arguments, 1 provided oop_3.cpp:66:13: error: no matching function for call to 'Stiva::Push(int)' w.Push(1); ^ oop_3.cpp:66:13: note: candidate is: oop_3.cpp:16:10: note: void Stiva::Push(int, int&) void Push(int x,int &k) ^ oop_3.cpp:16:10: note: candidate expects 2 arguments, 1 provided oop_3.cpp:67:19: error: no matching function for call to 'Stiva::Top()' cout << w.Top() << " " << w.Max() << "\n"; // afiseaza 1 5 ^ oop_3.cpp:67:19: note: candidate is: oop_3.cpp:29:9: note: int Stiva::Top(int) int Top(int k) ^ oop_3.cpp:29:9: note: candidate expects 1 argument, 0 provided oop_3.cpp:67:37: error: no matching function for call to 'Stiva::Max()' cout << w.Top() << " " << w.Max() << "\n"; // afiseaza 1 5 ^ oop_3.cpp:67:37: note: candidate is: oop_3.cpp:37:9: note: int Stiva::Max(int) int Max(int k) ^ oop_3.cpp:37:9: note: candidate expects 1 argument, 0 provided oop_3.cpp:68:11: error: no matching function for call to 'Stiva::Pop()' w.Pop(); ^ oop_3.cpp:68:11: note: candidate is: oop_3.cpp:22:10: note: void Stiva::Pop(int&) void Pop(int &k) ^ oop_3.cpp:22:10: note: candidate expects 1 argument, 0 provided oop_3.cpp:69:11: error: no matching function for call to 'Stiva::Pop()' w.Pop(); ^ oop_3.cpp:69:11: note: candidate is: oop_3.cpp:22:10: note: void Stiva::Pop(int&) void Pop(int &k) ^ oop_3.cpp:22:10: note: candidate expects 1 argument, 0 provided oop_3.cpp:70:19: error: no matching function for call to 'Stiva::Top()' cout << w.Top() << " " << w.Max() << "\n"; // afiseaza 2 4 ^ oop_3.cpp:70:19: note: candidate is: oop_3.cpp:29:9: note: int Stiva::Top(int) int Top(int k) ^ oop_3.cpp:29:9: note: candidate expects 1 argument, 0 provided oop_3.cpp:70:37: error: no matching function for call to 'Stiva::Max()' cout << w.Top() << " " << w.Max() << "\n"; // afiseaza 2 4 ^ oop_3.cpp:70:37: note: candidate is: oop_3.cpp:37:9: note: int Stiva::Max(int) int Max(int k) ^ oop_3.cpp:37:9: note: candidate expects 1 argument, 0 provided oop_3.cpp: In function 'int main()': oop_3.cpp:74:5: error: redefinition of 'int main()' int main() ^ oop_3.cpp:60:5: error: 'int main()' previously defined here int main() ^ oop_3.cpp:87:21: error: no matching function for call to 'Stiva::Push(int&)' w.Push(x); ^ oop_3.cpp:87:21: note: candidate is: oop_3.cpp:16:10: note: void Stiva::Push(int, int&) void Push(int x,int &k) ^ oop_3.cpp:16:10: note: candidate expects 2 arguments, 1 provided oop_3.cpp:90:19: error: no matching function for call to 'Stiva::Pop()' w.Pop(); ^ oop_3.cpp:90:19: note: candidate is: oop_3.cpp:22:10: note: void Stiva::Pop(int&) void Pop(int &k) ^ oop_3.cpp:22:10: note: candidate expects 1 argument, 0 provided oop_3.cpp:92:27: error: no matching function for call to 'Stiva::Top()' fout << w.Top() << "\n"; ^ oop_3.cpp:92:27: note: candidate is: oop_3.cpp:29:9: note: int Stiva::Top(int) int Top(int k) ^ oop_3.cpp:29:9: note: candidate expects 1 argument, 0 provided oop_3.cpp:94:27: error: no matching function for call to 'Stiva::Max()' fout << w.Max() << "\n"; ^ oop_3.cpp:94:27: note: candidate is: oop_3.cpp:37:9: note: int Stiva::Max(int) int Max(int k) ^ oop_3.cpp:37:9: note: candidate expects 1 argument, 0 provided
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema oop_3 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ă.