#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 | #64072307 | Utilizator | |
| Fișier | flistastergere.cpp | Dimensiune | 910 B |
| Data încărcării | 15 Aprilie 2026, 15:49 | Scor/rezultat | Eroare de compilare |
flistastergere.cpp:37:6: error: variable or field ‘LsiInterclasare’ declared void 37 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h){ | ^~~~~~~~~~~~~~~ flistastergere.cpp:37:22: error: ‘Nod’ was not declared in this scope; did you mean ‘nod’? 37 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h){ | ^~~ | nod flistastergere.cpp:37:27: error: ‘h1’ was not declared in this scope 37 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h){ | ^~ flistastergere.cpp:37:31: error: ‘Nod’ was not declared in this scope; did you mean ‘nod’? 37 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h){ | ^~~ | nod flistastergere.cpp:37:36: error: ‘h2’ was not declared in this scope 37 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h){ | ^~ flistastergere.cpp:37:40: error: ‘Nod’ was not declared in this scope; did you mean ‘nod’? 37 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h){ | ^~~ | nod flistastergere.cpp:37:46: error: ‘h’ was not declared in this scope 37 | void LsiInterclasare(Nod *h1, Nod *h2, Nod *&h){ | ^ flistastergere.cpp: In function ‘int main()’: flistastergere.cpp:125:9: error: ‘sterge’ was not declared in this scope; did you mean ‘stergeTot’? 125 | 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ă.