#643
DetDrum1
Se dă vectorul de tați al unui arbore cu rădăcină cu n
noduri și un nod k
. Determinați drumul de la rădăcina arborelui la nodul k
.
Problema | DetDrum1 | Operații I/O |
detdrum1.in /detdrum1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55007928 | Utilizator | |
Fișier | detdrum1.cpp | Dimensiune | 5.85 KB |
Data încărcării | 16 Decembrie 2024, 12:01 | Scor / rezultat | Eroare de compilare |
detdrum1.cpp:8:1: error: stray '\310' in program - Turcii castiga contra lui Gașpar-vodă la Țuțora ^ detdrum1.cpp:8:1: error: stray '\231' in program detdrum1.cpp:8:1: error: stray '\304' in program detdrum1.cpp:8:1: error: stray '\203' in program detdrum1.cpp:8:1: error: stray '\310' in program detdrum1.cpp:8:1: error: stray '\232' in program detdrum1.cpp:8:1: error: stray '\310' in program detdrum1.cpp:8:1: error: stray '\233' in program detdrum1.cpp:15:1: error: stray '\303' in program - Radu Voda a avut o fiica care a fugit de la cetatea Hârlăului cu o sluga, in padure ^ detdrum1.cpp:15:1: error: stray '\242' in program detdrum1.cpp:15:1: error: stray '\304' in program detdrum1.cpp:15:1: error: stray '\203' in program detdrum1.cpp:20:1: error: stray '\304' in program - Impreuna il au pe Alexandru Ecsaporitul, care il are pe Nicolai-vodă, iar acesta il are ca fiu pe Constantin¬vodă. ^ detdrum1.cpp:20:1: error: stray '\203' in program detdrum1.cpp:20:1: error: stray '\302' in program detdrum1.cpp:20:1: error: stray '\254' in program detdrum1.cpp:20:1: error: stray '\304' in program detdrum1.cpp:20:1: error: stray '\203' in program detdrum1.cpp:23:1: error: stray '\342' in program “ferman” – firman = Ordin emis de sultan ^ detdrum1.cpp:23:1: error: stray '\200' in program detdrum1.cpp:23:1: error: stray '\234' in program detdrum1.cpp:23:1: error: stray '\342' in program detdrum1.cpp:23:1: error: stray '\200' in program detdrum1.cpp:23:1: error: stray '\235' in program detdrum1.cpp:23:1: error: stray '\342' in program detdrum1.cpp:23:1: error: stray '\200' in program detdrum1.cpp:23:1: error: stray '\223' in program detdrum1.cpp:24:1: error: stray '\342' in program “grammatic” – grămătic = specialist in gramatica ^ detdrum1.cpp:24:1: error: stray '\200' in program detdrum1.cpp:24:1: error: stray '\234' in program detdrum1.cpp:24:1: error: stray '\342' in program detdrum1.cpp:24:1: error: stray '\200' in program detdrum1.cpp:24:1: error: stray '\235' in program detdrum1.cpp:24:1: error: stray '\342' in program detdrum1.cpp:24:1: error: stray '\200' in program detdrum1.cpp:24:1: error: stray '\223' in program detdrum1.cpp:24:1: error: stray '\304' in program detdrum1.cpp:24:1: error: stray '\203' in program detdrum1.cpp:24:1: error: stray '\304' in program detdrum1.cpp:24:1: error: stray '\203' in program detdrum1.cpp:26:1: error: stray '\304' in program - Barnovschii-vodă înainteaza cu toti oamenii spre Poarta, inclusive boieri, curteni, calugari si preoti. ^ detdrum1.cpp:26:1: error: stray '\203' in program detdrum1.cpp:26:1: error: stray '\303' in program detdrum1.cpp:26:1: error: stray '\256' in program detdrum1.cpp:27:1: error: stray '\304' in program - Barnovschii-vodă incepe sa stranute, insa se opreste atunci cand un boier intervine cu „Viermi, doamne“ ^ detdrum1.cpp:27:1: error: stray '\203' in program detdrum1.cpp:27:1: error: stray '\342' in program detdrum1.cpp:27:1: error: stray '\200' in program detdrum1.cpp:27:1: error: stray '\236' in program detdrum1.cpp:27:1: error: stray '\342' in program detdrum1.cpp:27:1: error: stray '\200' in program detdrum1.cpp:27:1: error: stray '\234' in program detdrum1.cpp:29:1: error: stray '\304' in program - Atunci cand Barnovschii-vodă a fost omorat, calul a inceput sa sara si a scapat, iar comisul a murit din aceasta cauza ^ detdrum1.cpp:29:1: error: stray '\203' in program detdrum1.cpp:31:1: error: stray '\304' in program Comis = Mare dregător în Moldova și în Țara Românească, care avea în grija sa caii și grajdurile Curții domnești ^ detdrum1.cpp:31:1: error: stray '\203' in program detdrum1.cpp:31:1: error: stray '\303' in program detdrum1.cpp:31:1: error: stray '\256' in program detdrum1.cpp:31:1: error: stray '\310' in program detdrum1.cpp:31:1: error: stray '\231' in program detdrum1.cpp:31:1: error: stray '\303' in program detdrum1.cpp:31:1: error: stray '\256' in program detdrum1.cpp:31:1: error: stray '\310' in program detdrum1.cpp:31:1: error: stray '\232' in program detdrum1.cpp:31:1: error: stray '\303' in program detdrum1.cpp:31:1: error: stray '\242' in program detdrum1.cpp:31:1: error: stray '\304' in program detdrum1.cpp:31:1: error: stray '\203' in program detdrum1.cpp:31:1: error: stray '\303' in program detdrum1.cpp:31:1: error: stray '\256' in program detdrum1.cpp:31:1: error: stray '\310' in program detdrum1.cpp:31:1: error: stray '\231' in program detdrum1.cpp:31:1: error: stray '\310' in program detdrum1.cpp:31:1: error: stray '\233' in program detdrum1.cpp:31:1: error: stray '\310' in program detdrum1.cpp:31:1: error: stray '\231' in program detdrum1.cpp:33:1: error: stray '\310' in program - Dupa ce Vasile Voda a luat domnia de la Țarigrad, s-a rugat vizirului sa lase tara de bir timp de trei ani ^ detdrum1.cpp:33:1: error: stray '\232' in program detdrum1.cpp:38:1: error: stray '\304' in program Contăș = Haină lungă și îmblănită ^ detdrum1.cpp:38:1: error: stray '\203' in program detdrum1.cpp:38:1: error: stray '\310' in program detdrum1.cpp:38:1: error: stray '\231' in program detdrum1.cpp:38:1: error: stray '\304' in program detdrum1.cpp:38:1: error: stray '\203' in program detdrum1.cpp:38:1: error: stray '\304' in program detdrum1.cpp:38:1: error: stray '\203' in program detdrum1.cpp:38:1: error: stray '\310' in program detdrum1.cpp:38:1: error: stray '\231' in program detdrum1.cpp:38:1: error: stray '\303' in program detdrum1.cpp:38:1: error: stray '\256' in program detdrum1.cpp:38:1: error: stray '\304' in program detdrum1.cpp:38:1: error: stray '\203' in program detdrum1.cpp:38:1: error: stray '\304' in program detdrum1.cpp:38:1: error: stray '\203' in program detdrum1.cpp:40:1: error: stray '\310' in program Mierță = Unitate de capacitate pentru cereale ^ detdrum1.cpp:40:1: error: stray '\233' in program detdrum1.cpp:40:1: error: stray '\304' in program detdrum1.cpp:40:1: error: stray '\203' in program detdrum1.cpp:41:1: error: stray '\310' in program Ialoviță = vaca ^ detdrum1.cpp:41:1: error: stray '\233' in program detdrum1.cpp:41:1: error: stray '\304' in program detdrum1.cpp:41:1: error: stray '\203' in program detdrum1.cpp:42:1: error: stray '\304' in program Desetină = Impozit de zece la sută din produse ^ detdrum1.cpp:42:1: error: stray '\203' in program detdrum1.cpp:42:1: error: stray '\304' in program detdrum1.cpp:42:1: error: stray '\203' in program detdrum1.cpp:44:1: error: stray '\310' in program Goștină = Dare care se percepea în oi, porci sau vaci ^ detdrum1.cpp:44:1: error: stray '\231' in program detdrum1.cpp:44:1: error: stray '\304' in program detdrum1.cpp:44:1: error: stray '\203' in program detdrum1.cpp:44:1: error: stray '\303' in program detdrum1.cpp:44:1: error: stray '\256' in program detdrum1.cpp:46:1: error: stray '\303' in program Bairamlâc = Dar oferit sultanului cu prilejul unei sarbatori religioase musulmane ^ detdrum1.cpp:46:1: error: stray '\242' in program detdrum1.cpp:54:1: error: stray '\303' in program A mântui = a salva ^ detdrum1.cpp:54:1: error: stray '\242' in program detdrum1.cpp:55:1: error: stray '\304' in program Lefă = leafa = taisul unei lame ^ detdrum1.cpp:55:1: error: stray '\203' in program detdrum1.cpp:56:1: error: stray '\304' in program A prăda = a fura, a jefui ^ detdrum1.cpp:56:1: error: stray '\203' in program detdrum1.cpp:57:1: error: stray '\304' in program Cu bănat = cu suparare, mustrare, învinuire ^ detdrum1.cpp:57:1: error: stray '\203' in program detdrum1.cpp:57:1: error: stray '\303' in program detdrum1.cpp:57:1: error: stray '\256' in program detdrum1.cpp:58:1: error: stray '\303' in program Gâlceavă = cearta ^ detdrum1.cpp:58:1: error: stray '\242' in program detdrum1.cpp:58:1: error: stray '\304' in program detdrum1.cpp:58:1: error: stray '\203' in program detdrum1.cpp:69:1: error: stray '\304' in program A mazili = A scoate din domnie sau din slujbă un domn ^ detdrum1.cpp:69:1: error: stray '\203' in program detdrum1.cpp:81:2: error: stray '\303' in program A pârâi = A produce un zgomot surd prin rupere, zdrobire ^ detdrum1.cpp:81:2: error: stray '\242' in program detdrum1.cpp:81:2: error: stray '\303' in program detdrum1.cpp:81:2: error: stray '\242' in program detdrum1.cpp:89:1: error: stray '\304' in program Rădvan = Trăsură de lux închisă ^ detdrum1.cpp:89:1: error: stray '\203' in program detdrum1.cpp:89:1: error: stray '\304' in program detdrum1.cpp:89:1: error: stray '\203' in program detdrum1.cpp:89:1: error: stray '\304' in program detdrum1.cpp:89:1: error: stray '\203' in program detdrum1.cpp:89:1: error: stray '\303' in program detdrum1.cpp:89:1: error: stray '\256' in program detdrum1.cpp:89:1: error: stray '\304' in program detdrum1.cpp:89:1: error: stray '\203' in program detdrum1.cpp:94:1: error: stray '\310' in program Visternic = repartizarea și încasarea dărilor ^ detdrum1.cpp:94:1: error: stray '\231' in program detdrum1.cpp:94:1: error: stray '\303' in program detdrum1.cpp:94:1: error: stray '\256' in program detdrum1.cpp:94:1: error: stray '\304' in program detdrum1.cpp:94:1: error: stray '\203' in program detdrum1.cpp:98:1: error: stray '\304' in program Bivolar = Păzitor al unei cirezi de bivoli. ^ detdrum1.cpp:98:1: error: stray '\203' in program detdrum1.cpp:2:1: error: 'XVIII' does not name a type XVIII ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DetDrum1 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ă.