#4155
Harta unei regiuni este reprezentată într-un sistem de coordonate cartezian și sunt cunoscute coordonatele a n orașe, numerotate de la 1 la n.
Se dorește construirea unor drumuri bidirecționale între anumite perechi de orașe, astfel încât:
Să se determine suma lungimilor drumurilor construite.
| Problema | Harta3 | Operații I/O |
harta3.in/harta3.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #61388553 | Utilizator | |
| Fișier | harta3.cpp | Dimensiune | 1.49 KB |
| Data încărcării | 26 Noiembrie 2025, 12:23 | Scor/rezultat | Eroare de compilare |
harta3.cpp:1:10: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ harta3.cpp:2:10: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ harta3.cpp:3:10: error: #include expects "FILENAME" or <FILENAME> #include <iomanip> ^ harta3.cpp:4:10: error: #include expects "FILENAME" or <FILENAME> #include <cmath> ^ harta3.cpp:6:1: error: 'ifstream' does not name a type ifstream fin("harta3.in"); ^ harta3.cpp:6:20: error: 'harta3' does not name a type ifstream fin("harta3.in"); ^ harta3.cpp:6:35: error: expected unqualified-id before ')' token ifstream fin("harta3.in"); ^ harta3.cpp:7:1: error: 'ofstream' does not name a type ofstream fout("harta3.out"); ^ harta3.cpp:7:21: error: 'harta3' does not name a type ofstream fout("harta3.out"); ^ harta3.cpp:7:37: error: expected unqualified-id before ')' token ofstream fout("harta3.out"); ^ harta3.cpp:14:1: error: 'conexe' does not name a type conexe ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Harta3 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ă.