#3423
ctcmax
Se dă un graf orientat cu n
vârfuri și m
arce prin lista arcelor. Afișați componentele tare conexe formate din număr maxim de vârfuri.
Problema | ctcmax | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51151938 | Utilizator | |
Fișier | ctcmax.cpp | Dimensiune | 1.52 KB |
Data încărcării | 27 Mai 2024, 13:14 | Scor / rezultat | Eroare de compilare |
ctcmax.cpp:4:1: error: 'ifstream' does not name a type ifstream f("graf.txt"); ^ ctcmax.cpp: In function 'void intersectie()': ctcmax.cpp:41:13: error: 'b' was not declared in this scope b[i][j]=a[i][j]*ap[i][j]; ^ ctcmax.cpp: In function 'void componente()': ctcmax.cpp:51:13: error: 'cout' was not declared in this scope cout<<endl<<"Componenta "<<nr<<": "<<i<<" "; ^ ctcmax.cpp:51:13: note: suggested alternative: In file included from ctcmax.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ ctcmax.cpp:51:19: error: 'endl' was not declared in this scope cout<<endl<<"Componenta "<<nr<<": "<<i<<" "; ^ ctcmax.cpp:51:19: note: suggested alternative: In file included from /usr/include/c++/4.8/iostream:39:0, from ctcmax.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: 'std::endl' endl(basic_ostream<_CharT, _Traits>& __os) ^ ctcmax.cpp:53:20: error: 'b' was not declared in this scope if(b[i][j]==1 && i!=j) ^ ctcmax.cpp: In function 'int main()': ctcmax.cpp:70:9: error: 'cout' was not declared in this scope cout<<endl; ^ ctcmax.cpp:70:9: note: suggested alternative: In file included from ctcmax.cpp:1:0: /usr/include/c++/4.8/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^ ctcmax.cpp:70:15: error: 'endl' was not declared in this scope cout<<endl; ^ ctcmax.cpp:70:15: note: suggested alternative: In file included from /usr/include/c++/4.8/iostream:39:0, from ctcmax.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: 'std::endl' endl(basic_ostream<_CharT, _Traits>& __os) ^ ctcmax.cpp:73:33: error: 'comp' was not declared in this scope {for(int j=1;j<=comp[i][0];j++) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ctcmax 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ă.