#1603
Se dă lista muchiilor unui graf neorientat. Pentru fiecare componentă conexă numim cel mai mic vârf de ea reprezentant al componentei conexe. Determinați reprezentantul componentei conexe cu cele mai multe vârfuri și câte noduri conține aceasta.
| Problema | ComponenteConexe3 | Operații I/O |
componenteconexe3.in/componenteconexe3.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #56082379 | Utilizator | |
| Fișier | componenteconexe3.cpp | Dimensiune | 1.58 KB |
| Data încărcării | 05 Februarie 2025, 10:33 | Scor/rezultat | Eroare de compilare |
componenteconexe3.cpp:35:34: error: stray '#' in program nrmax=nr,vfmax=i;#include <bits/stdc++.h> ^ componenteconexe3.cpp: In function 'int main()': componenteconexe3.cpp:35:35: error: 'include' was not declared in this scope nrmax=nr,vfmax=i;#include <bits/stdc++.h> ^ componenteconexe3.cpp:35:44: error: 'bits' was not declared in this scope nrmax=nr,vfmax=i;#include <bits/stdc++.h> ^ componenteconexe3.cpp:35:49: error: 'stdc' was not declared in this scope nrmax=nr,vfmax=i;#include <bits/stdc++.h> ^ componenteconexe3.cpp:37:1: error: expected primary-expression before 'using' using namespace std; ^ componenteconexe3.cpp:37:1: error: expected ';' before 'using' componenteconexe3.cpp:42:1: error: a function-definition is not allowed here before '{' token { ^ componenteconexe3.cpp:40:5: warning: unused variable 'n' [-Wunused-variable] int n,a[101][101],viz[101],x,y,v0,vfmax; ^ componenteconexe3.cpp:40:7: warning: unused variable 'a' [-Wunused-variable] int n,a[101][101],viz[101],x,y,v0,vfmax; ^ componenteconexe3.cpp:40:19: warning: unused variable 'viz' [-Wunused-variable] int n,a[101][101],viz[101],x,y,v0,vfmax; ^ componenteconexe3.cpp:40:28: warning: unused variable 'x' [-Wunused-variable] int n,a[101][101],viz[101],x,y,v0,vfmax; ^ componenteconexe3.cpp:40:30: warning: unused variable 'y' [-Wunused-variable] int n,a[101][101],viz[101],x,y,v0,vfmax; ^ componenteconexe3.cpp:40:32: warning: unused variable 'v0' [-Wunused-variable] int n,a[101][101],viz[101],x,y,v0,vfmax; ^ componenteconexe3.cpp:40:35: warning: unused variable 'vfmax' [-Wunused-variable] int n,a[101][101],viz[101],x,y,v0,vfmax; ^ componenteconexe3.cpp:82:1: error: expected '}' at end of input } ^ componenteconexe3.cpp:82:1: error: expected '}' at end of input componenteconexe3.cpp:82:1: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe3 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ă.