#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51152039 | Utilizator | |
Fișier | ctcmax.cpp | Dimensiune | 1.85 KB |
Data încărcării | 27 Mai 2024, 13:21 | Scor / rezultat | Eroare de compilare |
ctcmax.cpp: In function 'void componente()': ctcmax.cpp:63:29: error: expected ';' before '{' token comp{nr}{++k}=j; ^ ctcmax.cpp:63:32: warning: statement has no effect [-Wunused-value] comp{nr}{++k}=j; ^ ctcmax.cpp:63:37: error: expected ';' before '}' token comp{nr}{++k}=j; ^ ctcmax.cpp:63:38: error: expected primary-expression before '=' token comp{nr}{++k}=j; ^ ctcmax.cpp:66:25: error: expected ';' before '{' token comp{nr}{0}=k; ^ ctcmax.cpp:66:28: warning: statement has no effect [-Wunused-value] comp{nr}{0}=k; ^ ctcmax.cpp:66:31: error: expected ';' before '}' token comp{nr}{0}=k; ^ ctcmax.cpp:66:31: warning: statement has no effect [-Wunused-value] ctcmax.cpp:66:32: error: expected primary-expression before '=' token comp{nr}{0}=k; ^
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ă.