#126
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 | #64381474 | Utilizator | |
| Fișier | dmax.cpp | Dimensiune | 661 B |
| Data încărcării | 04 Mai 2026, 14:06 | Scor/rezultat | Eroare de compilare |
dmax.cpp:3:1: error: ‘iftsream’ does not name a type 3 | iftsream fin("dmax.in"); | ^~~~~~~~ dmax.cpp:5:33: error: expected ‘]’ before ‘,’ token 5 | int n,m,a[105][105],v[105],d[105,q[105],st=1,dr=0; | ^ | ] dmax.cpp: In function ‘int main()’: dmax.cpp:7:5: error: ‘fin’ was not declared in this scope 7 | fin>>n>>m; | ^~~ dmax.cpp:14:5: error: ‘d’ was not declared in this scope 14 | d[1]=0; | ^ dmax.cpp:24:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 24 | for(int i=1;i<=n;i++) | ^~~ dmax.cpp:27:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 27 | fout<<p<<"\n"; | ^~~~
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ă.