#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 | #40695114 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 767 B |
Data încărcării | 16 Decembrie 2022, 14:45 | Scor / rezultat | Eroare de compilare |
componenteconexe.cpp:43:20: warning: multi-character character constant [-Wmultichar] g<<'/n';} ^ componenteconexe.cpp: In function 'void adancime(int, int&)': componenteconexe.cpp:14:31: error: lvalue required as left operand of assignment if (a[i][x]==1&&viz[i]=0) ^ componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:24:7: error: no match for 'operator=' (operand types are 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' and 'int') ok=0; ^ componenteconexe.cpp:24:7: note: candidate is: In file included from /usr/include/c++/4.8/iostream:40:0, from componenteconexe.cpp:1: /usr/include/c++/4.8/istream:58:11: note: std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&) <deleted> class basic_istream : virtual public basic_ios<_CharT, _Traits> ^ /usr/include/c++/4.8/istream:58:11: note: no known conversion for argument 1 from 'int' to 'const std::basic_istream<char>&' componenteconexe.cpp:28:9: error: 'x' was not declared in this scope x=1; ^
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ă.