#941
Urare
În preajma Crăciunului toţi suntem sau redevenim copii.
Scrie un program care afişează pe ecran o urare pentru cei dragi ţie!
Problema | Urare | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #36173713 | Utilizator | |
Fișier | urare.cpp | Dimensiune | 2.05 KB |
Data încărcării | 07 Aprilie 2022, 20:08 | Scor / rezultat | Eroare de compilare |
urare.cpp: In function 'void parcurgere(nod*)': urare.cpp:52:14: error: 'struct nod' has no member named 'irm' p=p->irm; ^ urare.cpp:54:1: error: expected ';' before '}' token } ^ urare.cpp: In function 'void creeare(nod*&)': urare.cpp:57:6: error: redefinition of 'void creeare(nod*&)' void creeare(nod*&prim) ^ urare.cpp:13:6: error: 'void creeare(nod*&)' previously defined here void creeare(nod*&prim) ^ urare.cpp: In function 'void adaugare(nod*&)': urare.cpp:75:6: error: redefinition of 'void adaugare(nod*&)' void adaugare(nod*&prim) ^ urare.cpp:31:6: error: 'void adaugare(nod*&)' previously defined here void adaugare(nod*&prim) ^ urare.cpp: In function 'void stergere(nod*&)': urare.cpp:84:6: error: redefinition of 'void stergere(nod*&)' void stergere(nod*&prim) ^ urare.cpp:40:6: error: 'void stergere(nod*&)' previously defined here void stergere(nod*&prim) ^ urare.cpp: In function 'void parcurgere(nod*)': urare.cpp:90:6: error: redefinition of 'void parcurgere(nod*)' void parcurgere(nod*prim) ^ urare.cpp:46:6: error: 'void parcurgere(nod*)' previously defined here void parcurgere(nod*prim) ^ urare.cpp: In function 'void creeare(nod*&)': urare.cpp:98:6: error: redefinition of 'void creeare(nod*&)' void creeare(nod*&prim) ^ urare.cpp:13:6: error: 'void creeare(nod*&)' previously defined here void creeare(nod*&prim) ^ urare.cpp:100:5: error: 'varf' was not declared in this scope varf=NULL; ^ urare.cpp:101:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ urare.cpp:101:16: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ urare.cpp:105:12: error: 'struct nod' has no member named 'leg' p->leg=varf; ^ urare.cpp: In function 'void adaugare(nod*&)': urare.cpp:109:6: error: redefinition of 'void adaugare(nod*&)' void adaugare(nod*&prim) ^ urare.cpp:31:6: error: 'void adaugare(nod*&)' previously defined here void adaugare(nod*&prim) ^ urare.cpp:115:6: error: 'struct nod' has no member named 'leg' q->leg=varf; ^ urare.cpp:115:10: error: 'varf' was not declared in this scope q->leg=varf; ^ urare.cpp: In function 'void stergere(nod*&)': urare.cpp:119:6: error: redefinition of 'void stergere(nod*&)' void stergere(nod*&prim) ^ urare.cpp:40:6: error: 'void stergere(nod*&)' previously defined here void stergere(nod*&prim) ^ urare.cpp:121:7: error: 'varf' was not declared in this scope p=varf; ^ urare.cpp:122:13: error: 'struct nod' has no member named 'leg' varf=p->leg; ^ urare.cpp: In function 'void parcurgere(nod*)': urare.cpp:125:6: error: redefinition of 'void parcurgere(nod*)' void parcurgere(nod*prim) ^ urare.cpp:46:6: error: 'void parcurgere(nod*)' previously defined here void parcurgere(nod*prim) ^ urare.cpp:127:7: error: 'varf' was not declared in this scope p=varf; ^ urare.cpp:131:14: error: 'struct nod' has no member named 'leg' p=p->leg; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Urare face parte din prima categorie. 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ă.