#4078
Distanta
Matei, care locuiește in orașul p
, vrea să ajungă in orașul q
să il viziteze. El are o hartă pe care se află n
orașe și m
drumuri prin care poate să treacă pentru a ajunge la destinație. Pe hartă apare și durata de timp td
pentru fiecare drum, care reprezintă numărul de minute în care este parcurs drumul și to
pentru traversarea orașelor (unele orașe sunt mai aglomerate, iar altele nu). Matei vrea să ajungă cat mai rapid la destinație, dar dacă există mai multe trasee de timp minim, il va alege pe acela care trece prin mai multe orașe. Nu vor exista trasee de timp minim cu același număr de orașe. Ajutati-l pe Matei să gasească drumul cerut.
Problema | Distanta | Operații I/O |
distanta.in /distanta.out
|
---|---|---|---|
Limita timp | 0.7 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53156191 | Utilizator | |
Fișier | distanta.cpp | Dimensiune | 4.75 KB |
Data încărcării | 19 Octombrie 2024, 13:00 | Scor / rezultat | Eroare de compilare |
distanta.cpp:1:71: error: stray '##' in program ______________________________________________________________________########_______________________________ ^ distanta.cpp:1:73: error: stray '##' in program ______________________________________________________________________########_______________________________ ^ distanta.cpp:1:75: error: stray '##' in program ______________________________________________________________________########_______________________________ ^ distanta.cpp:1:77: error: stray '##' in program ______________________________________________________________________########_______________________________ ^ distanta.cpp:2:35: error: stray '##' in program __________________________________##________________________________##______##_______________________________ ^ distanta.cpp:2:69: error: stray '##' in program __________________________________##________________________________##______##_______________________________ ^ distanta.cpp:2:77: error: stray '##' in program __________________________________##________________________________##______##_______________________________ ^ distanta.cpp:3:31: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:33: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:37: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:39: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:41: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:43: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:45: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:47: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:49: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:61: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:63: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:65: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:67: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:69: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:3:77: error: stray '##' in program ______________________________####__##############__________##########______##_______________________________ ^ distanta.cpp:4:27: error: stray '##' in program __________________________####_[]cc_______________##########__________________##_____________________________ ^ distanta.cpp:4:29: error: stray '##' in program __________________________####_[]cc_______________##########__________________##_____________________________ ^ distanta.cpp:4:51: error: stray '##' in program __________________________####_[]cc_______________##########__________________##_____________________________ ^ distanta.cpp:4:53: error: stray '##' in program __________________________####_[]cc_______________##########__________________##_____________________________ ^ distanta.cpp:4:55: error: stray '##' in program __________________________####_[]cc_______________##########__________________##_____________________________ ^ distanta.cpp:4:57: error: stray '##' in program __________________________####_[]cc_______________##########__________________##_____________________________ ^ distanta.cpp:4:59: error: stray '##' in program __________________________####_[]cc_______________##########__________________##_____________________________ ^ distanta.cpp:4:79: error: stray '##' in program __________________________####_[]cc_______________##########__________________##_____________________________ ^ distanta.cpp:5:25: error: stray '##' in program ________________________##___iii___c_________________________mmmm[]nn_________##_____________________________ ^ distanta.cpp:5:79: error: stray '##' in program ________________________##___iii___c_________________________mmmm[]nn_________##_____________________________ ^ distanta.cpp:6:23: error: stray '##' in program ______________________##__iii_______c___________________mmmmm________nnn________##___________________________ ^ distanta.cpp:6:81: error: stray '##' in program ______________________##__iii_______c___________________mmmmm________nnn________##___________________________ ^ distanta.cpp:7:21: error: stray '##' in program ____________________##__[]d________c________lllllll[]mmm________________nn________##_________________________ ^ distanta.cpp:7:83: error: stray '##' in program ____________________##__[]d________c________lllllll[]mmm________________nn________##_________________________ ^ distanta.cpp:8:21: error: stray '##' in program ____________________##_____ddd____c_____llll______________________________nnn_______##_______________________ ^ distanta.cpp:8:85: error: stray '##' in program ____________________##_____ddd____c_____llll______________________________nnn_______##_______________________ ^ distanta.cpp:9:19: error: stray '##' in program __________________##__________ddd__c___l_____________________________________nnn[]__##_______________________ ^ distanta.cpp:9:85: error: stray '##' in program __________________##__________ddd__c___l_____________________________________nnn[]__##_______________________ ^ distanta.cpp:10:17: error: stray '##' in program ________________##_______________dd_ccl__________________________________________o____##_____________________ ^ distanta.cpp:10:87: error: stray '##' in program ________________##_______________dd_ccl__________________________________________o____##_____________________ ^ distanta.cpp:11:17: error: stray '##' in program ________________##_________________dd[]999_______________________________________o______##___________________ ^ distanta.cpp:11:89: error: stray '##' in program ________________##_________________dd[]999_______________________________________o______##___________________ ^ distanta.cpp:12:15: error: stray '##' in program ______________##_____________________j8___999____________________________________o______##___________________ ^ distanta.cpp:12:89: error: stray '##' in program ______________##_____________________j8___999____________________________________o______##___________________ ^ distanta.cpp:13:15: error: stray '##' in program ______________##____________________j8_______99[]aaaaaaa_________________________o________##_________________ ^ distanta.cpp:13:91: error: stray '##' in program ______________##____________________j8_______99[]aaaaaaa_________________________o________##_________________ ^ distanta.cpp:14:13: error: stray '##' in program ____________##_____________________j_8_________7________aaaa____________________o_________##_________________ ^ distanta.cpp:14:91: error: stray '##' in program ____________##_____________________j_8_________7________aaaa____________________o_________##_________________ ^ distanta.cpp:15:11: error: stray '##' in program __________##______________________j___8_________7___________aaaa[]______________o_________##_________________ ^ distanta.cpp:15:91: error: stray '##' in program __________##______________________j___8_________7___________aaaa[]______________o_________##_________________ ^ distanta.cpp:16:7: error: stray '##' in program ______####________________________j____8_________7_______________b______________o_______##___________________ ^ distanta.cpp:16:9: error: stray '##' in program ______####________________________j____8_________7_______________b______________o_______##___________________ ^ distanta.cpp:16:89: error: stray '##' in program ______####________________________j____8_________7_______________b______________o_______##___________________ ^ distanta.cpp:17:1: error: stray '##' in program ########_______________________f[]______8_______7________________b_____________o________##___________________ ^ distanta.cpp:17:3: error: stray '##' in program ########_______________________f[]______8_______7________________b_____________o________##___________________ ^ distanta.cpp:17:5: error: stray '##' in program ########_______________________f[]______8_______7________________b_____________o________##___________________ ^ distanta.cpp:17:7: error: stray '##' in program ########_______________________f[]______8_______7________________b_____________o________##___________________ ^ distanta.cpp:17:89: error: stray '##' in program ########_______________________f[]______8_______7________________b_____________o________##___________________ ^ distanta.cpp:18:3: error: stray '##' in program __##____[]ggggggggg__________ff_e_______8____777__________________b____________o________##___________________ ^ distanta.cpp:18:89: error: stray '##' in program __##____[]ggggggggg__________ff_e_______8____777__________________b____________o________##___________________ ^ distanta.cpp:19:5: error: stray '##' in program ____##____h________gggg[]ffff____e_______8_77_____________________b_______sss__o________##___________________ ^ distanta.cpp:19:89: error: stray '##' in program ____##____h________gggg[]ffff____e_______8_77_____________________b_______sss__o________##___________________ ^ distanta.cpp:20:7: error: stray '##' in program ______##___hh_____________________eee____87______________________b_____sss___s[]________##___________________ ^ distanta.cpp:20:89: error: stray '##' in program ______##___hh_____________________eee____87______________________b_____sss___s[]________##___________________ ^ distanta.cpp:21:7: error: stray '##' in program ______##_____hh______________________eeee[]wwww____wwwww_______bb____ss_________r_______##___________________ ^ distanta.cpp:21:89: error: stray '##' in program ______##_____hh______________________eeee[]wwww____wwwww_______bb____ss_________r_______##___________________ ^ distanta.cpp:22:7: error: stray '##' in program ______##_______hhh________________________1____wwww_____wwww[]bssssss____________r______##___________________ ^ distanta.cpp:22:89: error: stray '##' in program ______##_______hhh________________________1____wwww_____wwww[]bssssss____________r______##___________________ ^ distanta.cpp:23:7: error: stray '##' in program ______##__________hh_______________________1________________6____________________r______##____________####___ ^ distanta.cpp:23:89: error: stray '##' in program ______##__________hh_______________________1________________6____________________r______##____________####___ ^ distanta.cpp:23:103: error: stray '##' in program ______##__________hh_______________________1________________6____________________r______##____________####___ ^ distanta.cpp:23:105: error: stray '##' in program ______##__________hh_______________________1________________6____________________r______##____________####___ ^ distanta.cpp:24:9: error: stray '##' in program ________####________h_______________________1_______________66____________________rr______####____####____##_ ^ distanta.cpp:24:11: error: stray '##' in program ________####________h_______________________1_______________66____________________rr______####____####____##_ ^ distanta.cpp:24:91: error: stray '##' in program ________####________h_______________________1_______________66____________________rr______####____####____##_ ^ distanta.cpp:24:93: error: stray '##' in program ________####________h_______________________1_______________66____________________rr______####____####____##_ ^ distanta.cpp:24:99: error: stray '##' in program ________####________h_______________________1_______________66____________________rr______####____####____##_ ^ distanta.cpp:24:101: error: stray '##' in program ________####________h_______________________1_______________66____________________rr______####____####____##_ ^ distanta.cpp:24:107: error: stray '##' in program ________####________h_______________________1_______________66____________________rr______####____####____##_ ^ distanta.cpp:25:13: error: stray '##' in program ____________##_______h______________________[]2_22____________6_____________________rr________####________##_ ^ distanta.cpp:25:95: error: stray '##' in program ____________##_______h______________________[]2_22____________6_____________________rr________####________##_ ^ distanta.cpp:25:97: error: stray '##' in program ____________##_______h______________________[]2_22____________6_____________________rr________####________##_ ^ distanta.cpp:25:107: error: stray '##' in program ____________##_______h______________________[]2_22____________6_____________________rr________####________##_ ^ distanta.cpp:26:15: error: stray '##' in program ______________##______h_____________________k__2__2____________66_____________________rr[]________________##_ ^ distanta.cpp:26:107: error: stray '##' in program ______________##______h_____________________k__2__2____________66_____________________rr[]________________##_ ^ distanta.cpp:27:15: error: stray '##' in program ______________##_______h___________________k_______2____________[]_______________________w__________##____##_ ^ distanta.cpp:27:101: error: stray '##' in program ______________##_______h___________________k_______2____________[]_______________________w__________##____##_ ^ distanta.cpp:27:107: error: stray '##' in program ______________##_______h___________________k_______2____________[]_______________________w__________##____##_ ^ distanta.cpp:28:13: error: stray '##' in program ____________##__________hh_______________kk_________[]33________5________________________w________##__######_ ^ distanta.cpp:28:99: error: stray '##' in program ____________##__________hh_______________kk_________[]33________5________________________w________##__######_ ^ distanta.cpp:28:103: error: stray '##' in program ____________##__________hh_______________kk_________[]33________5________________________w________##__######_ ^ distanta.cpp:28:105: error: stray '##' in program ____________##__________hh_______________kk_________[]33________5________________________w________##__######_ ^ distanta.cpp:28:107: error: stray '##' in program ____________##__________hh_______________kk_________[]33________5________________________w________##__######_ ^ distanta.cpp:29:13: error: stray '##' in program ____________##____________[]qqqq________k_______________333______5________________________w_______##__##_____ ^ distanta.cpp:29:99: error: stray '##' in program ____________##____________[]qqqq________k_______________333______5________________________w_______##__##_____ ^ distanta.cpp:29:103: error: stray '##' in program ____________##____________[]qqqq________k_______________333______5________________________w_______##__##_____ ^ distanta.cpp:30:15: error: stray '##' in program ______________####____####______qqqq____k__________________333___5_________________________w______##_________ ^ distanta.cpp:30:17: error: stray '##' in program ______________####____####______qqqq____k__________________333___5_________________________w______##_________ ^ distanta.cpp:30:23: error: stray '##' in program ______________####____####______qqqq____k__________________333___5_________________________w______##_________ ^ distanta.cpp:30:25: error: stray '##' in program ______________####____####______qqqq____k__________________333___5_________________________w______##_________ ^ distanta.cpp:30:99: error: stray '##' in program ______________####____####______qqqq____k__________________333___5_________________________w______##_________ ^ distanta.cpp:31:19: error: stray '##' in program __________________####____##________q__k______________________333[]4________________________w_____##_________ ^ distanta.cpp:31:21: error: stray '##' in program __________________####____##________q__k______________________333[]4________________________w_____##_________ ^ distanta.cpp:31:27: error: stray '##' in program __________________####____##________q__k______________________333[]4________________________w_____##_________ ^ distanta.cpp:31:99: error: stray '##' in program __________________####____##________q__k______________________333[]4________________________w_____##_________ ^ distanta.cpp:32:25: error: stray '##' in program ________________________##___________[]pp____________________vvvvv__44__44444[]ttttt________w_____##_________ ^ distanta.cpp:32:99: error: stray '##' in program ________________________##___________[]pp____________________vvvvv__44__44444[]ttttt________w_____##_________ ^ distanta.cpp:33:25: error: stray '##' in program ________________________####_____________ppp______________vvv_________44____________tttttttt[]__##___________ ^ distanta.cpp:33:27: error: stray '##' in program ________________________####_____________ppp______________vvv_________44____________tttttttt[]__##___________ ^ distanta.cpp:33:97: error: stray '##' in program ________________________####_____________ppp______________vvv_________44____________tttttttt[]__##___________ ^ distanta.cpp:34:29: error: stray '##' in program ____________________________##______________ppppp_______vv__________________######______________##___________ ^ distanta.cpp:34:77: error: stray '##' in program ____________________________##______________ppppp_______vv__________________######______________##___________ ^ distanta.cpp:34:79: error: stray '##' in program ____________________________##______________ppppp_______vv__________________######______________##___________ ^ distanta.cpp:34:81: error: stray '##' in program ____________________________##______________ppppp_______vv__________________######______________##___________ ^ distanta.cpp:34:97: error: stray '##' in program ____________________________##______________ppppp_______vv__________________######______________##___________ ^ distanta.cpp:35:31: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:35:67: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:35:69: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:35:71: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:35:73: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:35:75: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:35:83: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:35:85: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:35:87: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:35:89: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:35:97: error: stray '##' in program ______________________________##_________________ppppp[]__________##########______########______##___________ ^ distanta.cpp:36:29: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:36:31: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:36:33: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:36:35: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:36:37: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:36:39: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:36:65: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:36:91: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:36:93: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:36:95: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:36:97: error: stray '##' in program ____________________________############________________________##________________________########___________ ^ distanta.cpp:37:41: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:43: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:45: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:47: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:49: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:51: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:53: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:55: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:57: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:59: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:61: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:63: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:37:97: error: stray '##' in program ________________________________________########################________________________________##___________ ^ distanta.cpp:1:1: error: '______________________________________________________________________' does not name a type ______________________________________________________________________########_______________________________ ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Distanta 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ă.