Problema | esteArbore | Operații I/O |
![]() estearbore.in /estearbore.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54218121 | Utilizator | |
Fișier | estearbore.cpp | Dimensiune | 479 B |
Data încărcării | 22 Noiembrie 2024, 12:44 | Scor / rezultat | Eroare de compilare |
estearbore.cpp:4:1: error: expected ',' or ';' before 'ofstream' ofstream g("estearbore.out") ^ estearbore.cpp: In function 'void dfs(int)': estearbore.cpp:8:4: error: 'viz' was not declared in this scope viz[nod]=1; ^ estearbore.cpp:9:10: error: 'ic' was not declared in this scope while(ic<=sf) ^ estearbore.cpp:9:14: error: 'sf' was not declared in this scope while(ic<=sf) ^ estearbore.cpp:10:6: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ estearbore.cpp:10:13: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ estearbore.cpp:11:12: error: 'a' was not declared in this scope if(a[nod][i]==1&&viz[i]==0) ^ estearbore.cpp:14:8: error: 'm' was not declared in this scope if(m!=n-1) ^ estearbore.cpp:14:11: error: 'n' was not declared in this scope if(m!=n-1) ^ estearbore.cpp:15:9: error: 'g' was not declared in this scope g<<"NU"; ^ estearbore.cpp:19:13: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ estearbore.cpp:20:13: error: 'ok' was not declared in this scope ok=1; ^ estearbore.cpp:21:12: error: 'ok' was not declared in this scope if(ok) ^ estearbore.cpp:22:13: error: 'g' was not declared in this scope g<<"DA"; ^ estearbore.cpp:24:13: error: 'g' was not declared in this scope g<<"NU"; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema esteArbore 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ă.