#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 | #29854065 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 513 B |
Data încărcării | 26 Mai 2021, 09:47 | Scor / rezultat | Eroare de compilare |
izolate.cpp:2:1: error: 'ifstream' does not name a type ifstream in("izolate.in"); ^ izolate.cpp:3:1: error: 'ofstream' does not name a type ofstream out("izolate.out"); ^ izolate.cpp:5:32: error: expected ']' before ',' token int n,i,j,k=0,a[101][101],v[101,p=0; ^ izolate.cpp: In function 'int main()': izolate.cpp:8:5: error: 'in' was not declared in this scope in>>n; ^ izolate.cpp:22:9: error: 'v' was not declared in this scope v[++p]=i; ^ izolate.cpp:24:5: error: 'out' was not declared in this scope out<<k<< " "; ^ izolate.cpp:26:14: error: 'v' was not declared in this scope out<<v[i]<< " "; ^
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ă.