#3801
Să se scrie o funcție care interclasează nodurile a două liste.
Folclorul informatic
Problema | LsiInterclasare | Operații I/O |
![]() lsiinterclasare.in /lsiinterclasare.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 8 MB
|
Id soluție | #32251099 | Utilizator | |
Fișier | lsiinterclasare.cpp | Dimensiune | 1.22 KB |
Data încărcării | 10 Noiembrie 2021, 17:04 | Scor / rezultat | Eroare de compilare |
lsiinterclasare.cpp: In function 'void LsiInterclasare(Nod*, Nod*, Nod*&)': lsiinterclasare.cpp:56:27: error: no matching function for call to 'Nod::Nod()' Nod* aux = new(Nod); ^ lsiinterclasare.cpp:56:27: note: candidates are: lsiinterclasare.cpp:8:5: note: Nod::Nod(int, int) Nod(int _id, int x) ^ lsiinterclasare.cpp:8:5: note: candidate expects 2 arguments, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(const Nod&) struct Nod ^ lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(Nod&&) lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp:59:25: error: 'l2' was not declared in this scope aux->info = l2->info; ^ lsiinterclasare.cpp:73:13: error: 'h3' was not declared in this scope h3 = auxl3 = aux; ^ lsiinterclasare.cpp:80:27: error: no matching function for call to 'Nod::Nod()' Nod* aux = new(Nod); ^ lsiinterclasare.cpp:80:27: note: candidates are: lsiinterclasare.cpp:8:5: note: Nod::Nod(int, int) Nod(int _id, int x) ^ lsiinterclasare.cpp:8:5: note: candidate expects 2 arguments, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(const Nod&) struct Nod ^ lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(Nod&&) lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp:84:13: error: 'h3' was not declared in this scope h3 = auxl3 = aux; ^ lsiinterclasare.cpp:89:18: error: 'struct Nod' has no member named 'urm' h1 = h1->urm; ^ lsiinterclasare.cpp:92:27: error: no matching function for call to 'Nod::Nod()' Nod* aux = new(Nod); ^ lsiinterclasare.cpp:92:27: note: candidates are: lsiinterclasare.cpp:8:5: note: Nod::Nod(int, int) Nod(int _id, int x) ^ lsiinterclasare.cpp:8:5: note: candidate expects 2 arguments, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(const Nod&) struct Nod ^ lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp:4:8: note: constexpr Nod::Nod(Nod&&) lsiinterclasare.cpp:4:8: note: candidate expects 1 argument, 0 provided lsiinterclasare.cpp:96:13: error: 'h3' was not declared in this scope h3 = auxl3 = aux; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema LsiInterclasare 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ă.