#438
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 | #56606848 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 690 B |
Data încărcării | 27 Februarie 2025, 09:54 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:28:15: warning: multi-character character constant [-Wmultichar] fout<<nc<<'/n'; ^ componenteconexe.cpp:34:15: warning: multi-character character constant [-Wmultichar] fout<<'/n'; ^ componenteconexe.cpp:6:1: error: 'ofstreq' does not name a type ofstreq ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:25:13: error: 'nc' was not declared in this scope nc++; ^ componenteconexe.cpp:26:17: error: 'DFS' was not declared in this scope DFS(i) ^ componenteconexe.cpp:27:9: error: expected ';' before '}' token } ^ componenteconexe.cpp:28:5: error: 'fout' was not declared in this scope fout<<nc<<'/n'; ^ componenteconexe.cpp:28:11: error: 'nc' was not declared in this scope fout<<nc<<'/n'; ^ componenteconexe.cpp:31:18: error: expected ';' before '-' token for(int j-1;j<=n;j++) ^ componenteconexe.cpp:31:22: warning: for increment expression has no effect [-Wunused-value] for(int j-1;j<=n;j++) ^ componenteconexe.cpp:31:25: error: expected ')' before ';' token for(int j-1;j<=n;j++) ^ componenteconexe.cpp:31:26: error: 'j' was not declared in this scope for(int j-1;j<=n;j++) ^ componenteconexe.cpp:31:29: error: expected ';' before ')' token for(int j-1;j<=n;j++) ^
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ă.