#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 | #32686918 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 471 B |
Data încărcării | 23 Noiembrie 2021, 09:50 | Scor / rezultat | Eroare de compilare |
izolate.cpp:7:1: error: 'inr' does not name a type inr a[101][101],n,x,y,ok,m; ^ izolate.cpp: In function 'int main()': izolate.cpp:11:14: error: 'n' was not declared in this scope braila>> n; ^ izolate.cpp:12:11: error: 'in' was not declared in this scope while(in >> x >>y) ^ izolate.cpp:12:17: error: 'x' was not declared in this scope while(in >> x >>y) ^ izolate.cpp:12:21: error: 'y' was not declared in this scope while(in >> x >>y) ^ izolate.cpp:14:9: error: 'a' was not declared in this scope a[x][y]=a[y][x]=1; ^ izolate.cpp:18:9: error: 'ok' was not declared in this scope ok=1; ^ izolate.cpp:19:13: error: 'j' was not declared in this scope for(j=1;j<=n;j++) ^ izolate.cpp:20:16: error: 'a' was not declared in this scope if(a[i][j]) ^ izolate.cpp:25:13: error: 'm' was not declared in this scope m++; ^ izolate.cpp:27:13: error: 'm' was not declared in this scope galati<<m<<endl; ^
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ă.