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 | #58398839 | Utilizator | |
Fișier | estearbore.cpp | Dimensiune | 894 B |
Data încărcării | 01 Iunie 2025, 19:29 | Scor / rezultat | Eroare de compilare |
estearbore.cpp:8:1: error: expected ',' or ';' before 'ofstream' ofstream fout("estearbore.out") ^ estearbore.cpp: In function 'void bfs(int)': estearbore.cpp:14:5: error: 'viz' was not declared in this scope viz[start] = 1; ^ estearbore.cpp:15:5: error: 'coada' was not declared in this scope coada[1]=start; ^ estearbore.cpp:16:5: error: 'st' was not declared in this scope st=1; ^ estearbore.cpp:17:5: error: 'dr' was not declared in this scope dr=1; ^ estearbore.cpp:18:5: error: 'fout' was not declared in this scope fout<<start<<" "; ^ estearbore.cpp:22:13: error: 'i' was not declared in this scope for(i=1; i<=n; i++) ^ estearbore.cpp:22:21: error: 'n' was not declared in this scope for(i=1; i<=n; i++) ^ estearbore.cpp:23:16: error: 'a' was not declared in this scope if(a[i][nod_curent] == 1 && viz[i] == 0) ^ estearbore.cpp: In function 'int main()': estearbore.cpp:36:10: error: 'n' was not declared in this scope fin>>n>>m>>k; ^ estearbore.cpp:36:13: error: 'm' was not declared in this scope fin>>n>>m>>k; ^ estearbore.cpp:36:16: error: 'k' was not declared in this scope fin>>n>>m>>k; ^ estearbore.cpp:37:9: error: 'i' was not declared in this scope for(i=1; i<=m; i++) ^ estearbore.cpp:39:14: error: 'x' was not declared in this scope fin>>x>>y; ^ estearbore.cpp:39:17: error: 'y' was not declared in this scope fin>>x>>y; ^ estearbore.cpp:40:9: error: 'a' was not declared in this scope a[x][y]=1; ^ estearbore.cpp:43:9: error: 'i' was not declared in this scope for(i=1; i<=n; i++) ^ estearbore.cpp:46:13: error: 'fout' was not declared in this scope fout<<"DA"; ^ estearbore.cpp:48:13: error: 'fout' was not declared in this scope fout<<"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ă.