#126
DMax
Să se determine maximul distanţelor minime între nodul 1
şi celelalte noduri, într-un graf neorientat.
Problema | DMax | Operații I/O |
dmax.in /dmax.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #27488731 | Utilizator | |
Fișier | dmax.cpp | Dimensiune | 581 B |
Data încărcării | 24 Ianuarie 2021, 14:23 | Scor / rezultat | Eroare de compilare |
dmax.cpp:5:27: error: 's' does not name a type ofstream fout("dmax.out");s ^ dmax.cpp: In function 'int main()': dmax.cpp:14:3: error: 'c' was not declared in this scope c[x][y]=c[y][x]=1; ^ dmax.cpp:15:3: error: 'a' was not declared in this scope a[x][y]=a[y][x]=1; ^ dmax.cpp:20:8: error: 'c' was not declared in this scope if(c[x][z]>0 && c[z][y]>0) ^ dmax.cpp:24:6: error: 'c' was not declared in this scope if(c[1][j]>maxim) ^ dmax.cpp:27:6: error: 'c' was not declared in this scope if(c[1][j]==maxim) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DMax 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ă.