#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 | #62700869 | Utilizator | |
| Fișier | dmax.cpp | Dimensiune | 825 B |
| Data încărcării | 30 Ianuarie 2026, 08:11 | Scor/rezultat | Eroare de compilare |
dmax.cpp:1:1: error: stray '##' in program ##include <bits/stdc++.h> ^ dmax.cpp:1:3: error: 'include' does not name a type ##include <bits/stdc++.h> ^ dmax.cpp:5:1: error: 'ifstream' does not name a type ifstream cin("dmax.in"); ^ dmax.cpp:6:1: error: 'ofstream' does not name a type ofstream cout("dmax.out"); ^ dmax.cpp: In function 'void bfs(int)': dmax.cpp:14:5: error: 'queue' was not declared in this scope queue <int> Q; ^ dmax.cpp:14:12: error: expected primary-expression before 'int' queue <int> Q; ^ dmax.cpp:14:12: error: expected ';' before 'int' dmax.cpp:15:5: error: 'Q' was not declared in this scope Q.push(x); ^ dmax.cpp: In function 'int main()': dmax.cpp:33:5: error: 'cin' was not declared in this scope cin >> n >> m; ^ dmax.cpp:44:14: error: 'ij' was not declared in this scope if(d[ij] > maxi) maxi = d[i] , rez = i; ^ dmax.cpp:46:5: error: 'cout' was not declared in this scope cout << rez; ^
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ă.