#430
Izolate
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 | #41679607 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 451 B |
Data încărcării | 31 Ianuarie 2023, 23:38 | Scor / rezultat | Eroare de compilare |
izolate.cpp: In function 'int main()': izolate.cpp:9:14: error: conflicting declaration 'int g [200]' int g[200]={0}; ^ izolate.cpp:8:14: error: 'g' has a previous declaration as 'std::ofstream g' ofstream g("izolate.out"); ^ izolate.cpp:15:10: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') g[i]++; ^ izolate.cpp:19:13: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') if(g[i]==0) ^ izolate.cpp:27:13: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') if(g[i]==0) ^
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ă.