#1176
Să se scrie o funcție C++ care șterge dintr-o lista simplu înlănțuită elementul situat după un element dat.
| Problema | FListaStergere | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64723946 | Utilizator | |
| Fișier | flistastergere.cpp | Dimensiune | 817 B |
| Data încărcării | 26 Mai 2026, 09:52 | Scor/rezultat | Eroare de compilare |
flistastergere.cpp:38:6: error: variable or field ‘LsiInterclasare’ declared void 38 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h) | ^~~~~~~~~~~~~~~ flistastergere.cpp:38:22: error: ‘Nod’ was not declared in this scope; did you mean ‘nod’? 38 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h) | ^~~ | nod flistastergere.cpp:38:27: error: ‘h1’ was not declared in this scope 38 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h) | ^~ flistastergere.cpp:38:31: error: ‘Nod’ was not declared in this scope; did you mean ‘nod’? 38 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h) | ^~~ | nod flistastergere.cpp:38:36: error: ‘h2’ was not declared in this scope 38 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h) | ^~ flistastergere.cpp:38:40: error: ‘Nod’ was not declared in this scope; did you mean ‘nod’? 38 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h) | ^~~ | nod flistastergere.cpp:38:46: error: ‘h’ was not declared in this scope 38 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h) | ^ flistastergere.cpp: In function ‘int main()’: flistastergere.cpp:105:9: error: ‘sterge’ was not declared in this scope; did you mean ‘stergeTot’? 105 | sterge(p , q); | ^~~~~~ | stergeTot
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FListaStergere 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ă.