#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 | #64263496 | Utilizator | |
| Fișier | izolate.cpp | Dimensiune | 536 B |
| Data încărcării | 27 Aprilie 2026, 09:20 | Scor/rezultat | Eroare de compilare |
izolate.cpp:15:5: error: expected unqualified-id before ‘for’ 15 | for(int x=1; x<=n; i++){ | ^~~ izolate.cpp:15:18: error: ‘x’ does not name a type 15 | for(int x=1; x<=n; i++){ | ^ izolate.cpp:15:24: error: ‘i’ does not name a type 15 | for(int x=1; x<=n; i++){ | ^ izolate.cpp:21:5: error: ‘fout’ does not name a type 21 | fout<<izolate<<" "; | ^~~~ izolate.cpp:22:5: error: expected unqualified-id before ‘for’ 22 | for(int x=1; x<=n; x++) | ^~~ izolate.cpp:22:18: error: ‘x’ does not name a type 22 | for(int x=1; x<=n; x++) | ^ izolate.cpp:22:24: error: ‘x’ does not name a type 22 | for(int x=1; x<=n; x++) | ^ izolate.cpp:24:5: error: expected unqualified-id before ‘return’ 24 | return 0; | ^~~~~~ izolate.cpp:25:1: error: expected declaration before ‘}’ token 25 | } | ^
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ă.