#412
Adiacenta
Se dă lista muchiilor unui graf neorientat. Să se afișeze matricea de adiacență a grafului.
Problema | Adiacenta | Operații I/O |
adiacenta.in /adiacenta.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #24602038 | Utilizator | |
Fișier | adiacenta.cpp | Dimensiune | 423 B |
Data încărcării | 14 Octombrie 2020, 11:38 | Scor / rezultat | Eroare de compilare |
adiacenta.cpp:4:1: error: expected ',' or ';' before 'ofstream' ofstream out ("adiacenta.out") ^ adiacenta.cpp: In function 'int main()': adiacenta.cpp:8:9: error: 'n' was not declared in this scope in>>n>>m; ^ adiacenta.cpp:8:12: error: 'm' was not declared in this scope in>>n>>m; ^ adiacenta.cpp:9:10: error: 'k' was not declared in this scope for (k=0;k<m;k++) ^ adiacenta.cpp:11:13: error: 'i' was not declared in this scope in>>i>>j; ^ adiacenta.cpp:11:16: error: 'j' was not declared in this scope in>>i>>j; ^ adiacenta.cpp:15:10: error: 'i' was not declared in this scope for (i=0;i<n;i++) ^ adiacenta.cpp:17:14: error: 'j' was not declared in this scope for (j=0;j<n;j++) ^ adiacenta.cpp:19:13: error: 'out' was not declared in this scope out<<m[i][j]<<" "; ^ adiacenta.cpp:21:9: error: 'out' was not declared in this scope out<<'\n'; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Adiacenta 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ă.