#430
Se dă lista muchiilor unui graf neorientat. Să se afișeze vârfurile izolate ale grafului.
| Problema | Izolate | Operații I/O |
izolate.in/izolate.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #59496532 | Utilizator | |
| Fișier | izolate.cpp | Dimensiune | 596 B |
| Data încărcării | 01 Octombrie 2025, 11:42 | Scor/rezultat | 100 puncte |
izolate.cpp: In function 'int grad(int)': izolate.cpp:20:10: warning: statement has no effect [-Wunused-value] for(j==1;j<=n;j++) ^ izolate.cpp:19:11: warning: unused variable 'i' [-Wunused-variable] int g,i,j; ^ izolate.cpp: In function 'int main()': izolate.cpp:26:11: warning: unused variable 'j' [-Wunused-variable] int i,j,nr=0; ^ izolate.cpp: In function 'int grad(int)': izolate.cpp:19:13: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] int g,i,j; ^ izolate.cpp:22:12: warning: 'g' may be used uninitialized in this function [-Wmaybe-uninitialized] return g; ^ izolate.cpp: In function 'int main()': izolate.cpp:19:13: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] int g,i,j; ^ izolate.cpp:19:13: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized] izolate.cpp:33:9: warning: 'g' may be used uninitialized in this function [-Wmaybe-uninitialized] if(grad(i)==0) ^ izolate.cpp:29:9: warning: 'g' may be used uninitialized in this function [-Wmaybe-uninitialized] if(grad(i)==0) ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0 secunde | OK. | 60 | 60 | ||
| 3 | 0 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Izolate 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ă.