#4781
Se dă lista muchiilor unui graf neorientat. Să se afișeze componentele conexe ale acestui graf.
| Problema | ComponenteConexe6 | Operații I/O |
componenteconexe6.in/componenteconexe6.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64399386 | Utilizator | |
| Fișier | componenteconexe6.cpp | Dimensiune | 540 B |
| Data încărcării | 05 Mai 2026, 10:37 | Scor/rezultat | Eroare de compilare |
componenteconexe6.cpp: In function ‘int main()’: componenteconexe6.cpp:22:13: error: expected unqualified-id before ‘=’ token 22 | for(int=1; i<=n; i++) | ^ componenteconexe6.cpp:22:13: error: expected ‘;’ before ‘=’ token 22 | for(int=1; i<=n; i++) | ^ | ; componenteconexe6.cpp:22:13: error: expected primary-expression before ‘=’ token componenteconexe6.cpp:22:17: error: ‘i’ was not declared in this scope 22 | for(int=1; i<=n; i++) | ^ componenteconexe6.cpp:22:21: error: expected ‘)’ before ‘;’ token 22 | for(int=1; i<=n; i++) | ~ ^ | ) componenteconexe6.cpp:22:6: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 22 | for(int=1; i<=n; i++) | ^~~ componenteconexe6.cpp:22:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 22 | for(int=1; i<=n; i++) | ^ componenteconexe6.cpp:22:23: error: ‘i’ was not declared in this scope
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe6 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ă.