#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 | #29721560 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 704 B |
Data încărcării | 18 Mai 2021, 14:31 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp: In function 'void detc()': componenteconexe.cpp:16:16: error: expected primary-expression before ']' token for (i=1;i<]n;i++) ^ componenteconexe.cpp:16:16: error: expected ';' before ']' token componenteconexe.cpp:16:16: error: expected primary-expression before ']' token componenteconexe.cpp:16:16: error: expected ')' before ']' token componenteconexe.cpp:16:16: error: expected primary-expression before ']' token componenteconexe.cpp:16:16: error: expected ';' before ']' token componenteconexe.cpp:16:22: error: expected ';' before ')' token for (i=1;i<]n;i++) ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:29:15: error: 'nr' was not declared in this scope cout<<nr<<endl; ^ componenteconexe.cpp:32:22: error: 'viz' cannot be used as a function if (viz(j)==i) ^ componenteconexe.cpp: At global scope: componenteconexe.cpp:36:1: error: expected declaration before '}' token } ^
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ă.