#438
ComponenteConexe
Se dă lista muchiilor unui graf neorientat. Să se afișeze componentele conexe ale acestui graf.
Problema | ComponenteConexe | Operații I/O |
componenteconexe.in /componenteconexe.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50425270 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 808 B |
Data încărcării | 09 Aprilie 2024, 09:58 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:36:17: warning: multi-character character constant [-Wmultichar] fout<<comp<<'/n'; ^ componenteconexe.cpp:41:20: warning: multi-character character constant [-Wmultichar] fout<<'/n'; ^ componenteconexe.cpp: In function 'void bfs(int)': componenteconexe.cpp:13:13: error: 'comp' was not declared in this scope viz[st]=comp; ^ componenteconexe.cpp:16:9: error: 'x' was not declared in this scope x=c[pr]; pr++; ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:28:16: error: 'x' was not declared in this scope while(fin>>x>>y) ^ componenteconexe.cpp:28:19: error: 'y' was not declared in this scope while(fin>>x>>y) ^ componenteconexe.cpp:33:9: error: 'comp' was not declared in this scope comp++; ^ componenteconexe.cpp:36:11: error: 'comp' was not declared in this scope fout<<comp<<'/n'; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe 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ă.