#4685
LdiStergeAB
C++
Scrieți o funcție care va șterge dintr-o listă dublu înlănțuită primul nod care memorează valoarea A
și ultimul nod care memorează valoarea B
.
Problema | LdiStergeAB | Operații I/O |
ldistergeab.in /ldistergeab.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52057310 | Utilizator | |
Fișier | ldistergeab.cpp | Dimensiune | 717 B |
Data încărcării | 17 Septembrie 2024, 19:37 | Scor / rezultat | Eroare de compilare |
ldistergeab.cpp: In function 'void stergere(nod*, nod*, int, int)': ldistergeab.cpp:19:18: error: 'struct nod' has no member named 'ld' p = sant1 -> ld; ^ ldistergeab.cpp:22:16: error: 'struct nod' has no member named 'inf' if (p->inf==a) ^ ldistergeab.cpp:25:18: error: 'struct nod' has no member named 'ls' p -> ls -> ld = p -> ld; ^ ldistergeab.cpp:25:34: error: 'struct nod' has no member named 'ld' p -> ls -> ld = p -> ld; ^ ldistergeab.cpp:26:18: error: 'struct nod' has no member named 'ld' p -> ld -> ls = p -> ls; ^ ldistergeab.cpp:26:34: error: 'struct nod' has no member named 'ls' p -> ld -> ls = p -> ls; ^ ldistergeab.cpp:28:22: error: 'struct nod' has no member named 'ld' p = q -> ld; ^ ldistergeab.cpp:31:23: error: 'struct nod' has no member named 'ld' else p = p -> ld; ^ ldistergeab.cpp:34:18: error: 'struct nod' has no member named 'ls' p = sant2 -> ls; ^ ldistergeab.cpp:37:16: error: 'struct nod' has no member named 'inf' if (p->inf==b) ^ ldistergeab.cpp:40:18: error: 'struct nod' has no member named 'ld' p -> ld -> ls = p -> ls; ^ ldistergeab.cpp:40:34: error: 'struct nod' has no member named 'ls' p -> ld -> ls = p -> ls; ^ ldistergeab.cpp:41:18: error: 'struct nod' has no member named 'ls' p -> ls -> ld = p -> ld; ^ ldistergeab.cpp:41:34: error: 'struct nod' has no member named 'ld' p -> ls -> ld = p -> ld; ^ ldistergeab.cpp:43:22: error: 'struct nod' has no member named 'ls' p = q -> ls; ^ ldistergeab.cpp:46:23: error: 'struct nod' has no member named 'ls' else p = p -> ls; ^ ldistergeab.cpp: In function 'int main()': ldistergeab.cpp:72:31: error: 'StergeAB' was not declared in this scope StergeAB(prim, ultim, A, B); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema LdiStergeAB 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ă.