Detalii evaluare #55007928

Rezumat problemă

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.

Detalii

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 Codrean Iulia (IuliaCodrean)
Fișier detdrum1.cpp Dimensiune 5.85 KB
Data încărcării 16 Decembrie 2024, 12:01 Scor / rezultat Eroare de compilare

Evaluare


Mesaj 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 

 ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema DetDrum1 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.