#3801
LsiInterclasare
C++
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 | #42986646 | Utilizator | |
Fișier | lsiinterclasare.cpp | Dimensiune | 1.13 KB |
Data încărcării | 25 Martie 2023, 19:07 | Scor / rezultat | Eroare de compilare |
lsiinterclasare.cpp: In function 'void LsiInterclasare(Nod*, Nod*, Nod*&)': lsiinterclasare.cpp:59:13: error: 'nod' was not declared in this scope nod *p = new nod; ^ lsiinterclasare.cpp:59:18: error: 'p' was not declared in this scope nod *p = new nod; ^ lsiinterclasare.cpp:59:26: error: expected type-specifier before 'nod' nod *p = new nod; ^ lsiinterclasare.cpp:59:26: error: expected ';' before 'nod' lsiinterclasare.cpp:66:20: error: 'struct Nod' has no member named 'urm' h->urm = p; ^ lsiinterclasare.cpp:68:22: error: 'struct Nod' has no member named 'urm' h1 = h1->urm; ^ lsiinterclasare.cpp:73:13: error: 'nod' was not declared in this scope nod *p = new nod; ^ lsiinterclasare.cpp:73:18: error: 'p' was not declared in this scope nod *p = new nod; ^ lsiinterclasare.cpp:73:26: error: expected type-specifier before 'nod' nod *p = new nod; ^ lsiinterclasare.cpp:73:26: error: expected ';' before 'nod' lsiinterclasare.cpp:80:20: error: 'struct Nod' has no member named 'urm' h->urm = p; ^ lsiinterclasare.cpp:82:22: error: 'struct Nod' has no member named 'urm' h2 = h2->urm; ^ lsiinterclasare.cpp:85:16: error: 'struct Nod' has no member named 'urm' h = h->urm; ^ lsiinterclasare.cpp:90:9: error: 'nod' was not declared in this scope nod *p = new nod; ^ lsiinterclasare.cpp:90:14: error: 'p' was not declared in this scope nod *p = new nod; ^ lsiinterclasare.cpp:90:22: error: expected type-specifier before 'nod' nod *p = new nod; ^ lsiinterclasare.cpp:90:22: error: expected ';' before 'nod' lsiinterclasare.cpp:92:22: error: 'struct Nod' has no member named 'urm' p->urm = h1->urm; ^ lsiinterclasare.cpp:94:12: error: 'struct Nod' has no member named 'urm' h->urm = p; ^ lsiinterclasare.cpp:95:16: error: 'struct Nod' has no member named 'urm' h = h->urm; ^ lsiinterclasare.cpp:96:18: error: 'struct Nod' has no member named 'urm' h1 = h1->urm; ^ lsiinterclasare.cpp:101:9: error: 'nod' was not declared in this scope nod *p = new nod; ^ lsiinterclasare.cpp:101:14: error: 'p' was not declared in this scope nod *p = new nod; ^ lsiinterclasare.cpp:101:22: error: expected type-specifier before 'nod' nod *p = new nod; ^ lsiinterclasare.cpp:101:22: error: expected ';' before 'nod' lsiinterclasare.cpp:103:22: error: 'struct Nod' has no member named 'urm' p->urm = h2->urm; ^ lsiinterclasare.cpp:105:12: error: 'struct Nod' has no member named 'urm' h->urm = p; ^ lsiinterclasare.cpp:106:16: error: 'struct Nod' has no member named 'urm' h = h->urm; ^ lsiinterclasare.cpp:107:18: error: 'struct Nod' has no member named 'urm' h2 = h2->urm; ^
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ă.