#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 | #51151959 | Utilizator | |
Fișier | ctcmax.cpp | Dimensiune | 1.68 KB |
Data încărcării | 27 Mai 2024, 13:15 | Scor / rezultat | Eroare de compilare |
ctcmax.cpp:2:2: error: invalid preprocessing directive #using #using namespace std; ^ ctcmax.cpp: In function 'void citeste()': ctcmax.cpp:8:5: error: 'cin' was not declared in this scope cin>>n>>m; ^ ctcmax.cpp:8:5: note: suggested alternative: In file included from ctcmax.cpp:1:0: /usr/include/c++/4.8/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ ctcmax.cpp: In function 'int main()': ctcmax.cpp:80:13: error: 'cout' was not declared in this scope cout<<comp[i][j]<<" "; ^ ctcmax.cpp:80: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:81:9: error: 'cout' was not declared in this scope cout<<endl; ^ ctcmax.cpp:81: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:81:15: error: 'endl' was not declared in this scope cout<<endl; ^ ctcmax.cpp:81: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) ^
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ă.