#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 | #57848795 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 684 B |
Data încărcării | 26 Aprilie 2025, 17:58 | Scor / rezultat | Eroare de compilare |
izolate.cpp:5:30: error: expected unqualified-id before '/' token ofstream out("izolate.out");*/ ^ izolate.cpp:5:30: error: expected constructor, destructor, or type conversion before '/' token izolate.cpp: In function 'int main()': izolate.cpp:10:11: error: 'n' was not declared in this scope in >> n; ^ izolate.cpp:13:9: error: 'a' was not declared in this scope a[x][y]=1; ^ izolate.cpp:20:16: error: 'a' was not declared in this scope if(a[i][j]==1) ^ izolate.cpp:30:16: error: 'a' was not declared in this scope if(a[i][j]==1) ^
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ă.