#437
Conex
Se dă lista muchiilor unui graf neorientat. Să se verifice dacă graful este sau nu conex.
Problema | Conex | Operații I/O |
conex.in /conex.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #22238495 | Utilizator | |
Fișier | conex.cpp | Dimensiune | 989 B |
Data încărcării | 31 Martie 2020, 10:08 | Scor / rezultat | Eroare de compilare |
conex.cpp:8:1: error: 'a' does not name a type a[105][105],n,v[105]; ^ conex.cpp: In function 'void citire()': conex.cpp:14:10: error: 'n' was not declared in this scope fin>>n; ^ conex.cpp:18:9: error: 'a' was not declared in this scope a[x][y]=a[y][x]=1; ^ conex.cpp: In function 'void bf()': conex.cpp:29:5: error: 'v' was not declared in this scope v[vf]=1; ^ conex.cpp:34:24: error: 'n' was not declared in this scope for(int i=1;i<=n;i++) ^ conex.cpp:37:27: error: 'a' was not declared in this scope if(v[i]==0 && a[vf][i]==1) ^ conex.cpp: In function 'void afis()': conex.cpp:50:16: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ conex.cpp:53:12: error: 'v' was not declared in this scope if(v[i]==0) ^ conex.cpp:56:11: error: 'n' was not declared in this scope if(i<=n) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Conex 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ă.