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 | #54840141 | Utilizator | |
Fișier | estearbore.cpp | Dimensiune | 636 B |
Data încărcării | 10 Decembrie 2024, 09:04 | Scor / rezultat | Eroare de compilare |
estearbore.cpp: In function 'void dfs(int)': estearbore.cpp:3:5: error: 'viz' was not declared in this scope viz[nod]=1; ^ estearbore.cpp:4:5: error: 'v' was not declared in this scope v[++k]=nod; ^ estearbore.cpp:4:9: error: 'k' was not declared in this scope v[++k]=nod; ^ estearbore.cpp:5:13: error: 'q' was not declared in this scope if(nod==q) ^ estearbore.cpp:6:14: error: 'ok' was not declared in this scope { ok=1; ^ estearbore.cpp:8:22: error: 'cout' was not declared in this scope { cout<<v[i]<<" "; ^ estearbore.cpp:9:18: error: 'cout' was not declared in this scope } cout<<'\n'; ^ estearbore.cpp:10:43: error: 'n' was not declared in this scope } else { for(int i=1; i<=n; i++) ^ estearbore.cpp:11:29: error: 'mat' was not declared in this scope if(viz[i]==0 && mat[nod][i]) ^ estearbore.cpp: In function 'int main()': estearbore.cpp:18:5: error: 'cin' was not declared in this scope cin>>n>>m; ^ estearbore.cpp:18:10: error: 'n' was not declared in this scope cin>>n>>m; ^ estearbore.cpp:21:9: error: 'mat' was not declared in this scope mat[x][y]=1; ^ estearbore.cpp:23:15: error: 'q' was not declared in this scope } cin>>q; ^ estearbore.cpp:28:8: error: 'ok' was not declared in this scope if(ok==0) ^ estearbore.cpp:29:9: error: 'cout' was not declared in this scope cout << "NU EXISTA"; ^
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ă.