#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 | #51417670 | Utilizator | |
Fișier | urare.cpp | Dimensiune | 1.68 KB |
Data încărcării | 14 Iunie 2024, 11:59 | Scor / rezultat | Eroare de compilare |
urare.cpp: In function 'void bfs(int)': urare.cpp:24:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=lista[nod].size();++i) ^ urare.cpp:25:20: error: 'ista' was not declared in this scope if(viz[ista[nod][i]]==0) ^ urare.cpp:28:17: error: expected ';' before 'coada' coada.push(i); ^ urare.cpp: In function 'int lantx(int)': urare.cpp:37:11: error: 'l' was not declared in this scope ++l; ^ urare.cpp:39:30: error: 'lant' was not declared in this scope return lant(tata[nod]); ^ urare.cpp:40:11: error: 'l' was not declared in this scope ++l; ^ urare.cpp: In function 'int lanty(int)': urare.cpp:46:11: error: 'l' was not declared in this scope ++l; ^ urare.cpp:48:30: error: 'lant' was not declared in this scope return lant(tata[nod]); ^ urare.cpp:49:11: error: 'l' was not declared in this scope ++l; ^ urare.cpp: In function 'int main()': urare.cpp:64:9: error: 'nr' was not declared in this scope in>>nr; ^ urare.cpp:65:9: error: 'x' was not declared in this scope in>>x>>y; ^ urare.cpp:65:12: error: 'y' was not declared in this scope in>>x>>y; ^ urare.cpp:68:13: error: 'nr1' was not declared in this scope in>>nr1>>nr2; ^ urare.cpp:68:18: error: 'nr2' was not declared in this scope in>>nr1>>nr2; ^ urare.cpp:74:5: error: 'l' was not declared in this scope l=0; ^ urare.cpp:79:13: error: 'frecv' was not declared in this scope frecv[i]=-1; ^ urare.cpp:91:15: error: 'lung' was not declared in this scope ++lung; ^ urare.cpp:94:5: error: expected primary-expression before '}' token } ^ urare.cpp:94:5: error: expected ';' before '}' token urare.cpp:62:13: warning: unused variable 'j' [-Wunused-variable] int n,i,j; ^ urare.cpp:88:9: warning: unused variable 'cnt' [-Wunused-variable] int cnt=0; ^ urare.cpp: In function 'int lantx(int)': urare.cpp:43:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ urare.cpp: In function 'int lanty(int)': urare.cpp:52:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
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ă.