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 | #46215212 | Utilizator | |
Fișier | estearbore.cpp | Dimensiune | 694 B |
Data încărcării | 07 Noiembrie 2023, 14:37 | Scor / rezultat | Eroare de compilare |
estearbore.cpp:7:1: error: expected ',' or ';' before 'ofstream' ofstream fout ("estearbore.out") ^ estearbore.cpp: In function 'void dfs(int)': estearbore.cpp:14:5: error: 'visited' was not declared in this scope visited[x]=1; ^ estearbore.cpp:15:20: error: 'n' was not declared in this scope for(int i=1;i<=n;i++) ^ estearbore.cpp: In function 'int main()': estearbore.cpp:21:10: error: 'n' was not declared in this scope fin>>n; ^ estearbore.cpp:22:17: error: 'i' was not declared in this scope while (fin>>i>>j) ^ estearbore.cpp:22:20: error: 'j' was not declared in this scope while (fin>>i>>j) ^ estearbore.cpp:25:13: error: 'm' was not declared in this scope m++; ^ estearbore.cpp:28:11: error: 'm' was not declared in this scope if(n!=m+1) ^ estearbore.cpp:29:9: error: 'fout' was not declared in this scope fout<<"NU"; ^ estearbore.cpp:33:14: error: 'i' was not declared in this scope for (i=2;i<=n;++i) ^ estearbore.cpp:34:16: error: 'visited' was not declared in this scope if(visited[i]) flag=0; ^ estearbore.cpp:36:13: error: 'fout' was not declared in this scope fout<<"DA"; ^ estearbore.cpp:38: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ă.