#3789
FListaOglindire
C++
Să se scrie o funcție C++ care oglindește nodurile unei liste simplu înlănțuite alocate dinamic.
Problema | FListaOglindire | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57891924 | Utilizator | |
Fișier | flistaoglindire.cpp | Dimensiune | 305 B |
Data încărcării | 29 Aprilie 2025, 14:08 | Scor / rezultat | Eroare de compilare |
flistaoglindire.cpp: In function 'void oglindire(nod*&)': flistaoglindire.cpp:52:10: error: conversion from 'nod*' to non-scalar type 'nod' requested nod f = p; ^ flistaoglindire.cpp:54:12: error: base operand of '->' has non-pointer type 'nod' while(f->urm != nullptr) { ^ flistaoglindire.cpp:55:10: error: base operand of '->' has non-pointer type 'nod' f=f->urm; ^ flistaoglindire.cpp:60:23: error: conversion from 'nod*' to non-scalar type 'nod' requested nod x = new nod(); ^ flistaoglindire.cpp:61:10: error: base operand of '->' has non-pointer type 'nod' x->urm = f->urm; ^ flistaoglindire.cpp:61:19: error: base operand of '->' has non-pointer type 'nod' x->urm = f->urm; ^ flistaoglindire.cpp:62:10: error: base operand of '->' has non-pointer type 'nod' x->info = p->info; ^ flistaoglindire.cpp:63:16: error: cannot convert 'nod' to 'nod*' in assignment p->urm = x; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FListaOglindire 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ă.