#1204
Trenuri
Gara de Nord este cea mai vestită gară din lume. Japonezii, invidioşi pe sistemul performant de întârziere al trenurilor din Gara de Nord, s-au hotărât să analizeze motivul realizării unei astfel de performanțe.
În Gara de Nord (considerată stația 0
) există N
trenuri. Pentru fiecare tren i
știm că va pleca din Gara noastră protagonistă (stația 0
) și o să meargă până la stația statie[i]
. Staţiile x
şi x+1
sunt legate în mod direct pentru orice x
, astfel că trenul i
va opri în toate stațiile din intervalul [0, statie[i]]
. De asemenea, știm că trenul i
are o capacitate egală cu numărul maxim de oameni pe care îl poate transporta. Această capacitate este notată cu capacitate[i]
.
Avem M
pasageri dornici sa folosească magnificul traseu. Pentru fiecare pasager i
știm intervalul de stații [a[i], b[i]]
pe care vrea să îl parcurgă. Mai exact, acesta vrea să se urce într-un tren în stația a[i]
și să coboare în stația b[i]
.
Din cauza capacității limitate a trenurilor, este posibil ca nu toți pasagerii sa poată obțină un loc și să ajungă în destinația dorită. Să se determine numărul maxim de pasageri care pot ajunge din stația de plecare în stația de sosire, precum și o configurație în care aceștia se pot urca în trenuri.
ONI 2015, Clasele XI-XII
Problema | Trenuri | Operații I/O |
trenuri.in /trenuri.out
|
---|---|---|---|
Limita timp | 1.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 16 MB
|
Id soluție | #4584517 | Utilizator | |
Fișier | trenuri.cpp | Dimensiune | 4.14 KB |
Data încărcării | 07 Martie 2017, 17:05 | Scor / rezultat | Eroare de compilare |
trenuri.cpp:4:1: error: stray '\305' in program Soluţii ^ trenuri.cpp:4:1: error: stray '\243' in program trenuri.cpp:7:1: error: stray '\304' in program Postată de Clasa Intrare/ieșire Limită timp Limită memorie Sursa problemei Autor Dificultate Scorul tău ^ trenuri.cpp:7:1: error: stray '\203' in program trenuri.cpp:7:1: error: stray '\310' in program trenuri.cpp:7:1: error: stray '\231' in program trenuri.cpp:7:1: error: stray '\304' in program trenuri.cpp:7:1: error: stray '\203' in program trenuri.cpp:7:1: error: stray '\304' in program trenuri.cpp:7:1: error: stray '\203' in program trenuri.cpp:7:1: error: stray '\304' in program trenuri.cpp:7:1: error: stray '\203' in program trenuri.cpp:10:7: error: "Trenuri" is not a valid filename #1204 Trenuri ^ trenuri.cpp:12:1: error: stray '\303' in program ONI 2015, Târgoviște&Brăila Clasele XI-XII ^ trenuri.cpp:12:1: error: stray '\242' in program trenuri.cpp:12:1: error: stray '\310' in program trenuri.cpp:12:1: error: stray '\231' in program trenuri.cpp:12:1: error: stray '\304' in program trenuri.cpp:12:1: error: stray '\203' in program trenuri.cpp:15:1: error: stray '\310' in program Enunț ^ trenuri.cpp:15:1: error: stray '\233' in program trenuri.cpp:16:1: error: stray '\310' in program Soluții ^ trenuri.cpp:16:1: error: stray '\233' in program trenuri.cpp:17:1: error: stray '\304' in program Gara de Nord este cea mai vestită gară din lume. Japonezii, invidioşi pe sistemul performant de întârziere al trenurilor din Gara de Nord, s-au hotărât să analizeze motivul realizării unei astfel de performanțe. ^ trenuri.cpp:17:1: error: stray '\203' in program trenuri.cpp:17:1: error: stray '\304' in program trenuri.cpp:17:1: error: stray '\203' in program trenuri.cpp:17:1: error: stray '\305' in program trenuri.cpp:17:1: error: stray '\237' in program trenuri.cpp:17:1: error: stray '\303' in program trenuri.cpp:17:1: error: stray '\256' in program trenuri.cpp:17:1: error: stray '\303' in program trenuri.cpp:17:1: error: stray '\242' in program trenuri.cpp:17:1: error: stray '\304' in program trenuri.cpp:17:1: error: stray '\203' in program trenuri.cpp:17:1: error: stray '\303' in program trenuri.cpp:17:1: error: stray '\242' in program trenuri.cpp:17:1: error: stray '\304' in program trenuri.cpp:17:1: error: stray '\203' in program trenuri.cpp:17:1: error: stray '\304' in program trenuri.cpp:17:1: error: stray '\203' in program trenuri.cpp:17:1: error: stray '\310' in program trenuri.cpp:17:1: error: stray '\233' in program trenuri.cpp:19:1: error: stray '\303' in program În Gara de Nord (considerată stația 0) există N trenuri. Pentru fiecare tren i știm că va pleca din Gara noastră protagonistă (stația 0) și o să meargă până la stația statie[i]. Staţiile x şi x+1 sunt legate în mod direct pentru orice x, astfel că trenul i va opri în toate stațiile din intervalul [0, statie[i]]. De asemenea, știm că trenul i are o capacitate egală cu numărul maxim de oameni pe care îl poate transporta. Această capacitate este notată cu capacitate[i]. ^ trenuri.cpp:19:1: error: stray '\216' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\310' in program trenuri.cpp:19:1: error: stray '\233' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\310' in program trenuri.cpp:19:1: error: stray '\231' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\310' in program trenuri.cpp:19:1: error: stray '\233' in program trenuri.cpp:19:1: error: stray '\310' in program trenuri.cpp:19:1: error: stray '\231' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\303' in program trenuri.cpp:19:1: error: stray '\242' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\310' in program trenuri.cpp:19:1: error: stray '\233' in program trenuri.cpp:19:1: error: stray '\305' in program trenuri.cpp:19:1: error: stray '\243' in program trenuri.cpp:19:1: error: stray '\305' in program trenuri.cpp:19:1: error: stray '\237' in program trenuri.cpp:19:1: error: stray '\303' in program trenuri.cpp:19:1: error: stray '\256' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\303' in program trenuri.cpp:19:1: error: stray '\256' in program trenuri.cpp:19:1: error: stray '\310' in program trenuri.cpp:19:1: error: stray '\233' in program trenuri.cpp:19:1: error: stray '\310' in program trenuri.cpp:19:1: error: stray '\231' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\303' in program trenuri.cpp:19:1: error: stray '\256' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:19:1: error: stray '\304' in program trenuri.cpp:19:1: error: stray '\203' in program trenuri.cpp:21:1: error: stray '\304' in program Avem M pasageri dornici sa folosească magnificul traseu. Pentru fiecare pasager i știm intervalul de stații [a[i], b[i]] pe care vrea să îl parcurgă. Mai exact, acesta vrea să se urce într-un tren în stația a[i] și să coboare în stația b[i]. ^ trenuri.cpp:21:1: error: stray '\203' in program trenuri.cpp:21:1: error: stray '\310' in program trenuri.cpp:21:1: error: stray '\231' in program trenuri.cpp:21:1: error: stray '\310' in program trenuri.cpp:21:1: error: stray '\233' in program trenuri.cpp:21:1: error: stray '\304' in program trenuri.cpp:21:1: error: stray '\203' in program trenuri.cpp:21:1: error: stray '\303' in program trenuri.cpp:21:1: error: stray '\256' in program trenuri.cpp:21:1: error: stray '\304' in program trenuri.cpp:21:1: error: stray '\203' in program trenuri.cpp:21:1: error: stray '\304' in program trenuri.cpp:21:1: error: stray '\203' in program trenuri.cpp:21:1: error: stray '\303' in program trenuri.cpp:21:1: error: stray '\256' in program trenuri.cpp:21:1: error: stray '\303' in program trenuri.cpp:21:1: error: stray '\256' in program trenuri.cpp:21:1: error: stray '\310' in program trenuri.cpp:21:1: error: stray '\233' in program trenuri.cpp:21:1: error: stray '\310' in program trenuri.cpp:21:1: error: stray '\231' in program trenuri.cpp:21:1: error: stray '\304' in program trenuri.cpp:21:1: error: stray '\203' in program trenuri.cpp:21:1: error: stray '\303' in program trenuri.cpp:21:1: error: stray '\256' in program trenuri.cpp:21:1: error: stray '\310' in program trenuri.cpp:21:1: error: stray '\233' in program trenuri.cpp:23:1: error: stray '\310' in program Cerința ^ trenuri.cpp:23:1: error: stray '\233' in program trenuri.cpp:24:1: error: stray '\304' in program Din cauza capacității limitate a trenurilor, este posibil ca nu toți pasagerii sa poată obțină un loc și să ajungă în destinația dorită. Să se determine numărul maxim de pasageri care pot ajunge din stația de plecare în stația de sosire, precum și o configurație în care aceștia se pot urca în trenuri. ^ trenuri.cpp:24:1: error: stray '\203' in program trenuri.cpp:24:1: error: stray '\310' in program trenuri.cpp:24:1: error: stray '\233' in program trenuri.cpp:24:1: error: stray '\310' in program trenuri.cpp:24:1: error: stray '\233' in program trenuri.cpp:24:1: error: stray '\304' in program trenuri.cpp:24:1: error: stray '\203' in program trenuri.cpp:24:1: error: stray '\310' in program trenuri.cpp:24:1: error: stray '\233' in program trenuri.cpp:24:1: error: stray '\304' in program trenuri.cpp:24:1: error: stray '\203' in program trenuri.cpp:24:1: error: stray '\310' in program trenuri.cpp:24:1: error: stray '\231' in program trenuri.cpp:24:1: error: stray '\304' in program trenuri.cpp:24:1: error: stray '\203' in program trenuri.cpp:24:1: error: stray '\304' in program trenuri.cpp:24:1: error: stray '\203' in program trenuri.cpp:24:1: error: stray '\303' in program trenuri.cpp:24:1: error: stray '\256' in program trenuri.cpp:24:1: error: stray '\310' in program trenuri.cpp:24:1: error: stray '\233' in program trenuri.cpp:24:1: error: stray '\304' in program trenuri.cpp:24:1: error: stray '\203' in program trenuri.cpp:24:1: error: stray '\304' in program trenuri.cpp:24:1: error: stray '\203' in program trenuri.cpp:24:1: error: stray '\304' in program trenuri.cpp:24:1: error: stray '\203' in program trenuri.cpp:24:1: error: stray '\310' in program trenuri.cpp:24:1: error: stray '\233' in program trenuri.cpp:24:1: error: stray '\303' in program trenuri.cpp:24:1: error: stray '\256' in program trenuri.cpp:24:1: error: stray '\310' in program trenuri.cpp:24:1: error: stray '\233' in program trenuri.cpp:24:1: error: stray '\310' in program trenuri.cpp:24:1: error: stray '\231' in program trenuri.cpp:24:1: error: stray '\310' in program trenuri.cpp:24:1: error: stray '\233' in program trenuri.cpp:24:1: error: stray '\303' in program trenuri.cpp:24:1: error: stray '\256' in program trenuri.cpp:24:1: error: stray '\310' in program trenuri.cpp:24:1: error: stray '\231' in program trenuri.cpp:24:1: error: stray '\303' in program trenuri.cpp:24:1: error: stray '\256' in program trenuri.cpp:27:1: error: stray '\310' in program Pe prima linie a fișierului trenuri.in se află 2 numere naturale N și M, separate printr-un spațiu, cu semnificația din enunț. Următoarele N linii vor descrie cele N trenuri. Pe linia i + 1 se vor afla două valori întregi separate prin câte un spațiu: statie[i] și capacitate[i] care descriu trenul cu numărul i. Urmatoarele M linii vor descrie itinerariile celor M pasageri. Astfel, pe linia N + i + 1 se vor afla două valori întregi a[i] și b[i] , separate printr-un spațiu reprezentând stațiile între care dorește să circule pasagerul cu numărul i. ^ trenuri.cpp:27:1: error: stray '\231' in program trenuri.cpp:27:1: error: stray '\304' in program trenuri.cpp:27:1: error: stray '\203' in program trenuri.cpp:27:1: error: stray '\310' in program trenuri.cpp:27:1: error: stray '\231' in program trenuri.cpp:27:1: error: stray '\310' in program trenuri.cpp:27:1: error: stray '\233' in program trenuri.cpp:27:1: error: stray '\310' in program trenuri.cpp:27:1: error: stray '\233' in program trenuri.cpp:27:1: error: stray '\310' in program trenuri.cpp:27:1: error: stray '\233' in program trenuri.cpp:27:1: error: stray '\304' in program trenuri.cpp:27:1: error: stray '\203' in program trenuri.cpp:27:1: error: stray '\304' in program trenuri.cpp:27:1: error: stray '\203' in program trenuri.cpp:27:1: error: stray '\303' in program trenuri.cpp:27:1: error: stray '\256' in program trenuri.cpp:27:1: error: stray '\303' in program trenuri.cpp:27:1: error: stray '\242' in program trenuri.cpp:27:1: error: stray '\310' in program trenuri.cpp:27:1: error: stray '\233' in program trenuri.cpp:27:1: error: stray '\310' in program trenuri.cpp:27:1: error: stray '\231' in program trenuri.cpp:27:1: error: stray '\304' in program trenuri.cpp:27:1: error: stray '\203' in program trenuri.cpp:27:1: error: stray '\304' in program trenuri.cpp:27:1: error: stray '\203' in program trenuri.cpp:27:1: error: stray '\303' in program trenuri.cpp:27:1: error: stray '\256' in program trenuri.cpp:27:1: error: stray '\310' in program trenuri.cpp:27:1: error: stray '\231' in program trenuri.cpp:27:1: error: stray '\310' in program trenuri.cpp:27:1: error: stray '\233' in program trenuri.cpp:27:1: error: stray '\303' in program trenuri.cpp:27:1: error: stray '\242' in program trenuri.cpp:27:1: error: stray '\310' in program trenuri.cpp:27:1: error: stray '\233' in program trenuri.cpp:27:1: error: stray '\303' in program trenuri.cpp:27:1: error: stray '\256' in program trenuri.cpp:27:1: error: stray '\310' in program trenuri.cpp:27:1: error: stray '\231' in program trenuri.cpp:27:1: error: stray '\304' in program trenuri.cpp:27:1: error: stray '\203' in program trenuri.cpp:27:1: error: stray '\304' in program trenuri.cpp:27:1: error: stray '\203' in program trenuri.cpp:29:1: error: stray '\310' in program Date de ieșire ^ trenuri.cpp:29:1: error: stray '\231' in program trenuri.cpp:30:1: error: stray '\310' in program Pe prima linie a fișierului trenuri.out se va afișa un număr natural P, reprezentând numărul maxim de pasageri care pot să își realizeze traseul propus. Pe următoarele M linii se vor afișa M numere naturale. Astfel, pe linia i + 1 se va afișa trenul în care va urca pasagerul i. Dacă pasagerul i nu poate să se urce în niciun tren, se va afișa valoarea 0. ^ trenuri.cpp:30:1: error: stray '\231' in program trenuri.cpp:30:1: error: stray '\310' in program trenuri.cpp:30:1: error: stray '\231' in program trenuri.cpp:30:1: error: stray '\304' in program trenuri.cpp:30:1: error: stray '\203' in program trenuri.cpp:30:1: error: stray '\303' in program trenuri.cpp:30:1: error: stray '\242' in program trenuri.cpp:30:1: error: stray '\304' in program trenuri.cpp:30:1: error: stray '\203' in program trenuri.cpp:30:1: error: stray '\304' in program trenuri.cpp:30:1: error: stray '\203' in program trenuri.cpp:30:1: error: stray '\303' in program trenuri.cpp:30:1: error: stray '\256' in program trenuri.cpp:30:1: error: stray '\310' in program trenuri.cpp:30:1: error: stray '\231' in program trenuri.cpp:30:1: error: stray '\304' in program trenuri.cpp:30:1: error: stray '\203' in program trenuri.cpp:30:1: error: stray '\310' in program trenuri.cpp:30:1: error: stray '\231' in program trenuri.cpp:30:1: error: stray '\310' in program trenuri.cpp:30:1: error: stray '\231' in program trenuri.cpp:30:1: error: stray '\303' in program trenuri.cpp:30:1: error: stray '\256' in program trenuri.cpp:30:1: error: stray '\304' in program trenuri.cpp:30:1: error: stray '\203' in program trenuri.cpp:30:1: error: stray '\304' in program trenuri.cpp:30:1: error: stray '\203' in program trenuri.cpp:30:1: error: stray '\303' in program trenuri.cpp:30:1: error: stray '\256' in program trenuri.cpp:30:1: error: stray '\310' in program trenuri.cpp:30:1: error: stray '\231' in program trenuri.cpp:32:1: error: stray '\310' in program Restricții și precizări ^ trenuri.cpp:32:1: error: stray '\233' in program trenuri.cpp:32:1: error: stray '\310' in program trenuri.cpp:32:1: error: stray '\231' in program trenuri.cpp:32:1: error: stray '\304' in program trenuri.cpp:32:1: error: stray '\203' in program trenuri.cpp:33:1: error: stray '\342' in program 1 ≤ N, M ≤ 100 000 ^ trenuri.cpp:33:1: error: stray '\211' in program trenuri.cpp:33:1: error: stray '\244' in program trenuri.cpp:33:1: error: stray '\342' in program trenuri.cpp:33:1: error: stray '\211' in program trenuri.cpp:33:1: error: stray '\244' in program trenuri.cpp:34:1: error: stray '\342' in program 1 ≤ statie[i], capacitate[i] ≤ 1 000 000 000 pentru orice i, 1 ≤ i ≤ N. ^ trenuri.cpp:34:1: error: stray '\211' in program trenuri.cpp:34:1: error: stray '\244' in program trenuri.cpp:34:1: error: stray '\342' in program trenuri.cpp:34:1: error: stray '\211' in program trenuri.cpp:34:1: error: stray '\244' in program trenuri.cpp:34:1: error: stray '\342' in program trenuri.cpp:34:1: error: stray '\211' in program trenuri.cpp:34:1: error: stray '\244' in program trenuri.cpp:34:1: error: stray '\342' in program trenuri.cpp:34:1: error: stray '\211' in program trenuri.cpp:34:1: error: stray '\244' in program trenuri.cpp:35:1: error: stray '\342' in program 1 ≤ a[i] ≤ b[i] ≤ 1 000 000 000 pentru orice i, 1 ≤ i ≤ M. ^ trenuri.cpp:35:1: error: stray '\211' in program trenuri.cpp:35:1: error: stray '\244' in program trenuri.cpp:35:1: error: stray '\342' in program trenuri.cpp:35:1: error: stray '\211' in program trenuri.cpp:35:1: error: stray '\244' in program trenuri.cpp:35:1: error: stray '\342' in program trenuri.cpp:35:1: error: stray '\211' in program trenuri.cpp:35:1: error: stray '\244' in program trenuri.cpp:35:1: error: stray '\342' in program trenuri.cpp:35:1: error: stray '\211' in program trenuri.cpp:35:1: error: stray '\244' in program trenuri.cpp:35:1: error: stray '\342' in program trenuri.cpp:35:1: error: stray '\211' in program trenuri.cpp:35:1: error: stray '\244' in program trenuri.cpp:36:1: error: stray '\304' in program Un pasager nu poate să coboare dintr-un tren și să ia alt tren. Pasagerul i poate să urce doar în stația a[i] și să coboare doar la stația b[i]. ^ trenuri.cpp:36:1: error: stray '\203' in program trenuri.cpp:36:1: error: stray '\310' in program trenuri.cpp:36:1: error: stray '\231' in program trenuri.cpp:36:1: error: stray '\304' in program trenuri.cpp:36:1: error: stray '\203' in program trenuri.cpp:36:1: error: stray '\304' in program trenuri.cpp:36:1: error: stray '\203' in program trenuri.cpp:36:1: error: stray '\303' in program trenuri.cpp:36:1: error: stray '\256' in program trenuri.cpp:36:1: error: stray '\310' in program trenuri.cpp:36:1: error: stray '\233' in program trenuri.cpp:36:1: error: stray '\310' in program trenuri.cpp:36:1: error: stray '\231' in program trenuri.cpp:36:1: error: stray '\304' in program trenuri.cpp:36:1: error: stray '\203' in program trenuri.cpp:36:1: error: stray '\310' in program trenuri.cpp:36:1: error: stray '\233' in program trenuri.cpp:37:1: error: stray '\310' in program Pot exista mai multe soluții pentru repartizarea pasagerilor în trenuri. Orice soluție cu număr maxim de pasageri posibil va obține punctaj maxim. ^ trenuri.cpp:37:1: error: stray '\233' in program trenuri.cpp:37:1: error: stray '\303' in program trenuri.cpp:37:1: error: stray '\256' in program trenuri.cpp:37:1: error: stray '\310' in program trenuri.cpp:37:1: error: stray '\233' in program trenuri.cpp:37:1: error: stray '\304' in program trenuri.cpp:37:1: error: stray '\203' in program trenuri.cpp:37:1: error: stray '\310' in program trenuri.cpp:37:1: error: stray '\233' in program trenuri.cpp:38:1: error: stray '\310' in program Pentru afișarea numărului corect de pasageri se va acorda 30% din punctajul pe un test. ^ trenuri.cpp:38:1: error: stray '\231' in program trenuri.cpp:38:1: error: stray '\304' in program trenuri.cpp:38:1: error: stray '\203' in program trenuri.cpp:40:1: error: stray '\342' in program Pentru 60% din teste N, M ≤ 2000. ^ trenuri.cpp:40:1: error: stray '\211' in program trenuri.cpp:40:1: error: stray '\244' in program trenuri.cpp:57:1: error: stray '\310' in program Explicație ^ trenuri.cpp:57:1: error: stray '\233' in program trenuri.cpp:58:1: error: stray '\310' in program Primul și ultimul pasager vor urca în trenul 2, iar pasagerul 2 în trenul 1. ^ trenuri.cpp:58:1: error: stray '\231' in program trenuri.cpp:58:1: error: stray '\303' in program trenuri.cpp:58:1: error: stray '\256' in program trenuri.cpp:58:1: error: stray '\303' in program trenuri.cpp:58:1: error: stray '\256' in program trenuri.cpp:60:1: error: stray '\304' in program Dacă pasagerul 1 s-ar fi urcat în trenul 1, ar fi trebuit sa alegem care dintre pasagerul 2 și 3 să se urce în trenul 2 deoarece cele 2 itinerarii se intersectează, iar cei doi pasageri nu ar avea loc în același tren. ^ trenuri.cpp:60:1: error: stray '\203' in program trenuri.cpp:60:1: error: stray '\303' in program trenuri.cpp:60:1: error: stray '\256' in program trenuri.cpp:60:1: error: stray '\310' in program trenuri.cpp:60:1: error: stray '\231' in program trenuri.cpp:60:1: error: stray '\304' in program trenuri.cpp:60:1: error: stray '\203' in program trenuri.cpp:60:1: error: stray '\303' in program trenuri.cpp:60:1: error: stray '\256' in program trenuri.cpp:60:1: error: stray '\304' in program trenuri.cpp:60:1: error: stray '\203' in program trenuri.cpp:60:1: error: stray '\303' in program trenuri.cpp:60:1: error: stray '\256' in program trenuri.cpp:60:1: error: stray '\310' in program trenuri.cpp:60:1: error: stray '\231' in program trenuri.cpp:76:1: error: stray '\310' in program Explicație ^ trenuri.cpp:76:1: error: stray '\233' in program trenuri.cpp:77:1: error: stray '\310' in program Orice combinație în care selectăm 2 din cei 3 pasageri se consideră validă. ^ trenuri.cpp:77:1: error: stray '\233' in program trenuri.cpp:77:1: error: stray '\303' in program trenuri.cpp:77:1: error: stray '\256' in program trenuri.cpp:77:1: error: stray '\304' in program trenuri.cpp:77:1: error: stray '\203' in program trenuri.cpp:77:1: error: stray '\304' in program trenuri.cpp:77:1: error: stray '\203' in program trenuri.cpp:77:1: error: stray '\304' in program trenuri.cpp:77:1: error: stray '\203' in program trenuri.cpp:79:1: error: stray '\303' in program Încarcă soluţie ^ trenuri.cpp:79:1: error: stray '\216' in program trenuri.cpp:79:1: error: stray '\304' in program trenuri.cpp:79:1: error: stray '\203' in program trenuri.cpp:79:1: error: stray '\305' in program trenuri.cpp:79:1: error: stray '\243' in program trenuri.cpp:81:1: error: stray '\310' in program Lipește codul aici ^ trenuri.cpp:81:1: error: stray '\231' in program trenuri.cpp:85:1: error: stray '\342' in program ^ trenuri.cpp:85:1: error: stray '\200' in program trenuri.cpp:85:1: error: stray '\213' in program trenuri.cpp:86:1: error: stray '\304' in program Adaugă soluția ^ trenuri.cpp:86:1: error: stray '\203' in program trenuri.cpp:86:1: error: stray '\310' in program trenuri.cpp:86:1: error: stray '\233' in program trenuri.cpp:92:2: error: stray '\342' in program Contact • Reîncarcă • 69.666.666.666 ^ trenuri.cpp:92:2: error: stray '\200' in program trenuri.cpp:92:2: error: stray '\242' in program trenuri.cpp:92:2: error: stray '\303' in program trenuri.cpp:92:2: error: stray '\256' in program trenuri.cpp:92:2: error: stray '\304' in program trenuri.cpp:92:2: error: stray '\203' in program trenuri.cpp:92:2: error: stray '\342' in program trenuri.cpp:92:2: error: stray '\200' in program trenuri.cpp:92:2: error: stray '\242' in program trenuri.cpp:92:31: error: too many decimal points in number Contact • Reîncarcă • 69.666.666.666 ^ trenuri.cpp:1:1: error: 'pbInfo' does not name a type pbInfo.ro ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Trenuri 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ă.