#941
Î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 | #36757403 | Utilizator | |
| Fișier | urare.cpp | Dimensiune | 1.53 KB |
| Data încărcării | 20 Mai 2022, 09:42 | Scor/rezultat | Eroare de compilare |
urare.cpp: In function 'void creeare(nod*&)': urare.cpp:12:11: error: 'fin' was not declared in this scope while(fin>>x) ^ urare.cpp:12:16: error: 'x' was not declared in this scope while(fin>>x) ^ urare.cpp: In function 'void adaugare(nod*&)': urare.cpp:38:29: error: 'x' was not declared in this scope while(p!=NULL&&p->info!=x) ^ urare.cpp:42:9: error: 'q' was not declared in this scope q=new nod; ^ urare.cpp:49:29: error: 'x' was not declared in this scope while(p!=NULL&&p->info!=x) ^ urare.cpp:50:9: error: 'q' was not declared in this scope q=p,p=p->urm; ^ urare.cpp:54:9: error: 'q' was not declared in this scope q=new nod; ^ urare.cpp:60:9: error: 'r' was not declared in this scope r=new nod; ^ urare.cpp:63:9: error: 'q' was not declared in this scope q->urm=r; ^ urare.cpp: In function 'void stergere(nod*&)': urare.cpp:69:29: error: 'x' was not declared in this scope while(p!=NULL&&p->info!=x) ^ urare.cpp:70:9: error: 'q' was not declared in this scope q=p,p=p->urm; ^ urare.cpp:79:9: error: 'q' was not declared in this scope q->urm=p->urm; ^
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ă.