#4637
Se dă un graf orientat cu n vârfuri și m arce prin lista arcelor și un număr natural k. Afișați numărul de componente tare conexe care sunt formate din k vârfuri.
| Problema | ctck11 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64177572 | Utilizator | |
| Fișier | ctck11.cpp | Dimensiune | 2.25 KB |
| Data încărcării | 21 Aprilie 2026, 18:44 | Scor/rezultat | Eroare de compilare |
ctck11.cpp:60:5: error: redefinition of ‘int n’ 60 | int n, m, A[101][101]; | ^ ctck11.cpp:5:5: note: ‘int n’ previously declared here 5 | int n, m, A[101][101]; | ^ ctck11.cpp:60:8: error: redefinition of ‘int m’ 60 | int n, m, A[101][101]; | ^ ctck11.cpp:5:8: note: ‘int m’ previously declared here 5 | int n, m, A[101][101]; | ^ ctck11.cpp:60:11: error: redefinition of ‘int A [101][101]’ 60 | int n, m, A[101][101]; | ^ ctck11.cpp:5:11: note: ‘int A [101][101]’ previously declared here 5 | int n, m, A[101][101]; | ^ ctck11.cpp:61:5: error: redefinition of ‘int TC [101]’ 61 | int TC[101], nrc=0,x; | ^~ ctck11.cpp:6:5: note: ‘int TC [101]’ previously declared here 6 | int TC[101], nrc=0,x; | ^~ ctck11.cpp:61:14: error: redefinition of ‘int nrc’ 61 | int TC[101], nrc=0,x; | ^~~ ctck11.cpp:6:14: note: ‘int nrc’ previously defined here 6 | int TC[101], nrc=0,x; | ^~~ ctck11.cpp:61:20: error: redefinition of ‘int x’ 61 | int TC[101], nrc=0,x; | ^ ctck11.cpp:6:20: note: ‘int x’ previously declared here 6 | int TC[101], nrc=0,x; | ^ ctck11.cpp:62:5: error: redefinition of ‘int Plus [101]’ 62 | int Plus[101], Minus[101]; | ^~~~ ctck11.cpp:7:5: note: ‘int Plus [101]’ previously declared here 7 | int Plus[101], Minus[101]; | ^~~~ ctck11.cpp:62:16: error: redefinition of ‘int Minus [101]’ 62 | int Plus[101], Minus[101]; | ^~~~~ ctck11.cpp:7:16: note: ‘int Minus [101]’ previously declared here 7 | int Plus[101], Minus[101]; | ^~~~~ ctck11.cpp:64:6: error: redefinition of ‘void DFS(int)’ 64 | void DFS(int k) | ^~~ ctck11.cpp:9:6: note: ‘void DFS(int)’ previously defined here 9 | void DFS(int k) | ^~~ ctck11.cpp:73:6: error: redefinition of ‘void DFST(int)’ 73 | void DFST(int k) | ^~~~ ctck11.cpp:18:6: note: ‘void DFST(int)’ previously defined here 18 | void DFST(int k) | ^~~~ ctck11.cpp:82:5: error: redefinition of ‘int main()’ 82 | int main() | ^~~~ ctck11.cpp:27:5: note: ‘int main()’ previously defined here 27 | int main() | ^~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ctck11 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ă.