Detalii evaluare #50677349

Rezumat problemă

#1515 gradina

Păcală a reușit să ducă la bun sfârșit înțelegerea cu boierul căruia-i fusese slugă și, conform învoielii, boierul trebuie să-l răsplătească dându-i o parte din livada sa cu pomi fructiferi. Boierul este un om foarte ordonat, așa că livada sa este un pătrat cu latura de N metri unde, pe vremuri, fuseseră plantate N rânduri cu câte N pomi fiecare. Orice pom fructifer putea fi identificat cunoscând numărul rândului pe care se află și poziția sa în cadrul rândului respectiv. Cu timpul, unii pomi s-au uscat şi acum mai sunt doar P pomi. Păcală trebuie să-și delimiteze în livadă o grădină pătrată cu latura de K metri.

Detalii

Problema gradina Operații I/O gradina.in/gradina.out
Limita timp 0.5 secunde Limita memorie Total: 16 MB / Stivă 8 MB
Id soluție #50677349 Utilizator Amariei Mihai-Andrei (Andrei1271)
Fișier gradina.cpp Dimensiune 2.39 KB
Data încărcării 20 Aprilie 2024, 09:23 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

gradina.cpp:1:7: error: "gradina" is not a valid filename
 #1515 gradina 

       ^
gradina.cpp:3:1: error: stray '\310' in program
 ONI 2013, Timișoara&Oradea Clasa a IX-a gradina

 ^
gradina.cpp:3:1: error: stray '\231' in program
gradina.cpp:4:1: error: stray '\310' in program
 Etichete: Sume parțiale

 ^
gradina.cpp:4:1: error: stray '\233' in program
gradina.cpp:6:1: error: stray '\304' in program
 Această problemă a fost preluată dintr-un concurs. Rezultatele evaluării pot fi diferite față de cele din concurs.

 ^
gradina.cpp:6:1: error: stray '\203' in program
gradina.cpp:6:1: error: stray '\304' in program
gradina.cpp:6:1: error: stray '\203' in program
gradina.cpp:6:1: error: stray '\304' in program
gradina.cpp:6:1: error: stray '\203' in program
gradina.cpp:6:1: error: stray '\304' in program
gradina.cpp:6:1: error: stray '\203' in program
gradina.cpp:6:1: error: stray '\310' in program
gradina.cpp:6:1: error: stray '\233' in program
gradina.cpp:6:1: error: stray '\304' in program
gradina.cpp:6:1: error: stray '\203' in program
gradina.cpp:7:1: error: stray '\310' in program
 Enunț

 ^
gradina.cpp:7:1: error: stray '\233' in program
gradina.cpp:8:1: error: stray '\310' in program
 Soluții 

 ^
gradina.cpp:8:1: error: stray '\233' in program
gradina.cpp:9:1: error: stray '\310' in program
 Enunț

 ^
gradina.cpp:9:1: error: stray '\233' in program
gradina.cpp:10:1: error: stray '\304' in program
 Păcală a reușit să ducă la bun sfârșit înțelegerea cu boierul căruia-i fusese slugă și, conform învoielii, boierul trebuie să-l răsplătească dându-i o parte din livada sa cu pomi fructiferi. Boierul este un om foarte ordonat, așa că livada sa este un pătrat cu latura de N metri unde, pe vremuri, fuseseră plantate N rânduri cu câte N pomi fiecare. Orice pom fructifer putea fi identificat cunoscând numărul rândului pe care se află și poziția sa în cadrul rândului respectiv. Cu timpul, unii pomi s-au uscat şi acum mai sunt doar P pomi. Păcală trebuie să-și delimiteze în livadă o grădină pătrată cu latura de K metri.

 ^
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\310' in program
gradina.cpp:10:1: error: stray '\231' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\242' in program
gradina.cpp:10:1: error: stray '\310' in program
gradina.cpp:10:1: error: stray '\231' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\256' in program
gradina.cpp:10:1: error: stray '\310' in program
gradina.cpp:10:1: error: stray '\233' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\310' in program
gradina.cpp:10:1: error: stray '\231' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\256' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\242' in program
gradina.cpp:10:1: error: stray '\310' in program
gradina.cpp:10:1: error: stray '\231' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\242' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\242' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\242' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\242' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\310' in program
gradina.cpp:10:1: error: stray '\231' in program
gradina.cpp:10:1: error: stray '\310' in program
gradina.cpp:10:1: error: stray '\233' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\256' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\242' in program
gradina.cpp:10:1: error: stray '\305' in program
gradina.cpp:10:1: error: stray '\237' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\310' in program
gradina.cpp:10:1: error: stray '\231' in program
gradina.cpp:10:1: error: stray '\303' in program
gradina.cpp:10:1: error: stray '\256' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:10:1: error: stray '\304' in program
gradina.cpp:10:1: error: stray '\203' in program
gradina.cpp:12:1: error: stray '\310' in program
 Cerința

 ^
gradina.cpp:12:1: error: stray '\233' in program
gradina.cpp:13:1: error: stray '\303' in program
 Cunoscând dimensiunile livezii și grădinii, numărul pomilor din livadă și poziția fiecăruia, determinați numărul maxim de pomi dintr-o grădină pătrată de latură K și numărul modurilor în care poate fi amplasată grădina cu numărul maxim de pomi.

 ^
gradina.cpp:13:1: error: stray '\242' in program
gradina.cpp:13:1: error: stray '\310' in program
gradina.cpp:13:1: error: stray '\231' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\310' in program
gradina.cpp:13:1: error: stray '\231' in program
gradina.cpp:13:1: error: stray '\310' in program
gradina.cpp:13:1: error: stray '\233' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\310' in program
gradina.cpp:13:1: error: stray '\233' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\310' in program
gradina.cpp:13:1: error: stray '\231' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\303' in program
gradina.cpp:13:1: error: stray '\256' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:13:1: error: stray '\304' in program
gradina.cpp:13:1: error: stray '\203' in program
gradina.cpp:16:1: error: stray '\310' in program
 Fișierul gradina.in conține:

 ^
gradina.cpp:16:1: error: stray '\231' in program
gradina.cpp:16:1: error: stray '\310' in program
gradina.cpp:16:1: error: stray '\233' in program
gradina.cpp:18:1: error: stray '\310' in program
 pe prima linie numerele naturale N, P și K, separate prin câte un spațiu, cu semnificaţia din enunţ;

 ^
gradina.cpp:18:1: error: stray '\231' in program
gradina.cpp:18:1: error: stray '\303' in program
gradina.cpp:18:1: error: stray '\242' in program
gradina.cpp:18:1: error: stray '\310' in program
gradina.cpp:18:1: error: stray '\233' in program
gradina.cpp:18:1: error: stray '\305' in program
gradina.cpp:18:1: error: stray '\243' in program
gradina.cpp:18:1: error: stray '\305' in program
gradina.cpp:18:1: error: stray '\243' in program
gradina.cpp:19:1: error: stray '\304' in program
 pe următoarele P linii câte 2 numere naturale Lin și Col, separate printr-un spațiu, reprezentând numărul rândului, respectiv poziția în rând a fiecărui pom din livadă.

 ^
gradina.cpp:19:1: error: stray '\203' in program
gradina.cpp:19:1: error: stray '\303' in program
gradina.cpp:19:1: error: stray '\242' in program
gradina.cpp:19:1: error: stray '\310' in program
gradina.cpp:19:1: error: stray '\231' in program
gradina.cpp:19:1: error: stray '\310' in program
gradina.cpp:19:1: error: stray '\233' in program
gradina.cpp:19:1: error: stray '\303' in program
gradina.cpp:19:1: error: stray '\242' in program
gradina.cpp:19:1: error: stray '\304' in program
gradina.cpp:19:1: error: stray '\203' in program
gradina.cpp:19:1: error: stray '\303' in program
gradina.cpp:19:1: error: stray '\242' in program
gradina.cpp:19:1: error: stray '\310' in program
gradina.cpp:19:1: error: stray '\233' in program
gradina.cpp:19:1: error: stray '\303' in program
gradina.cpp:19:1: error: stray '\256' in program
gradina.cpp:19:1: error: stray '\303' in program
gradina.cpp:19:1: error: stray '\242' in program
gradina.cpp:19:1: error: stray '\304' in program
gradina.cpp:19:1: error: stray '\203' in program
gradina.cpp:19:1: error: stray '\304' in program
gradina.cpp:19:1: error: stray '\203' in program
gradina.cpp:20:1: error: stray '\310' in program
 Date de ieșire

 ^
gradina.cpp:20:1: error: stray '\231' in program
gradina.cpp:21:1: error: stray '\310' in program
 Fișierul gradina.out va conține:

 ^
gradina.cpp:21:1: error: stray '\231' in program
gradina.cpp:21:1: error: stray '\310' in program
gradina.cpp:21:1: error: stray '\233' in program
gradina.cpp:23:1: error: stray '\304' in program
 pe prima linie numărul maxim de pomi fructiferi dintr-o grădină pătrată cu latura de K metri;

 ^
gradina.cpp:23:1: error: stray '\203' in program
gradina.cpp:23:1: error: stray '\304' in program
gradina.cpp:23:1: error: stray '\203' in program
gradina.cpp:23:1: error: stray '\304' in program
gradina.cpp:23:1: error: stray '\203' in program
gradina.cpp:23:1: error: stray '\304' in program
gradina.cpp:23:1: error: stray '\203' in program
gradina.cpp:23:1: error: stray '\304' in program
gradina.cpp:23:1: error: stray '\203' in program
gradina.cpp:24:1: error: stray '\304' in program
 pe a doua linie numărul de posibilități de a amplasa grădina astfel încât să conțină numărul maxim de pomi determinat.

 ^
gradina.cpp:24:1: error: stray '\203' in program
gradina.cpp:24:1: error: stray '\304' in program
gradina.cpp:24:1: error: stray '\203' in program
gradina.cpp:24:1: error: stray '\310' in program
gradina.cpp:24:1: error: stray '\233' in program
gradina.cpp:24:1: error: stray '\304' in program
gradina.cpp:24:1: error: stray '\203' in program
gradina.cpp:24:1: error: stray '\303' in program
gradina.cpp:24:1: error: stray '\256' in program
gradina.cpp:24:1: error: stray '\303' in program
gradina.cpp:24:1: error: stray '\242' in program
gradina.cpp:24:1: error: stray '\304' in program
gradina.cpp:24:1: error: stray '\203' in program
gradina.cpp:24:1: error: stray '\310' in program
gradina.cpp:24:1: error: stray '\233' in program
gradina.cpp:24:1: error: stray '\304' in program
gradina.cpp:24:1: error: stray '\203' in program
gradina.cpp:24:1: error: stray '\304' in program
gradina.cpp:24:1: error: stray '\203' in program
gradina.cpp:25:1: error: stray '\310' in program
 Restricții și precizări

 ^
gradina.cpp:25:1: error: stray '\233' in program
gradina.cpp:25:1: error: stray '\310' in program
gradina.cpp:25:1: error: stray '\231' in program
gradina.cpp:25:1: error: stray '\304' in program
gradina.cpp:25:1: error: stray '\203' in program
gradina.cpp:26:1: error: stray '\342' in program
 2 ≤ N ≤ 1000

 ^
gradina.cpp:26:1: error: stray '\211' in program
gradina.cpp:26:1: error: stray '\244' in program
gradina.cpp:26:1: error: stray '\342' in program
gradina.cpp:26:1: error: stray '\211' in program
gradina.cpp:26:1: error: stray '\244' in program
gradina.cpp:27:1: error: stray '\342' in program
 1 ≤ P ≤ N*N

 ^
gradina.cpp:27:1: error: stray '\211' in program
gradina.cpp:27:1: error: stray '\244' in program
gradina.cpp:27:1: error: stray '\342' in program
gradina.cpp:27:1: error: stray '\211' in program
gradina.cpp:27:1: error: stray '\244' in program
gradina.cpp:28:1: error: stray '\342' in program
 1 ≤ K ≤ N

 ^
gradina.cpp:28:1: error: stray '\211' in program
gradina.cpp:28:1: error: stray '\244' in program
gradina.cpp:28:1: error: stray '\342' in program
gradina.cpp:28:1: error: stray '\211' in program
gradina.cpp:28:1: error: stray '\244' in program
gradina.cpp:47:1: error: stray '\310' in program
 Explicație

 ^
gradina.cpp:47:1: error: stray '\233' in program
gradina.cpp:48:1: error: stray '\304' in program
 Grădina lui Păcală poate avea maximum 5 pomi fructiferi. Ea poate fi amplasată în 5 moduri, având colțul stânga-sus de coordonate: (5, 3), (5, 4), (5, 5), (6, 6), (7, 3).

 ^
gradina.cpp:48:1: error: stray '\203' in program
gradina.cpp:48:1: error: stray '\304' in program
gradina.cpp:48:1: error: stray '\203' in program
gradina.cpp:48:1: error: stray '\304' in program
gradina.cpp:48:1: error: stray '\203' in program
gradina.cpp:48:1: error: stray '\304' in program
gradina.cpp:48:1: error: stray '\203' in program
gradina.cpp:48:1: error: stray '\303' in program
gradina.cpp:48:1: error: stray '\256' in program
gradina.cpp:48:1: error: stray '\303' in program
gradina.cpp:48:1: error: stray '\242' in program
gradina.cpp:48:1: error: stray '\310' in program
gradina.cpp:48:1: error: stray '\233' in program
gradina.cpp:48:1: error: stray '\303' in program
gradina.cpp:48:1: error: stray '\242' in program
gradina.cpp:50:1: error: stray '\303' in program
 Încărcare soluție

 ^
gradina.cpp:50:1: error: stray '\216' in program
gradina.cpp:50:1: error: stray '\304' in program
gradina.cpp:50:1: error: stray '\203' in program
gradina.cpp:50:1: error: stray '\310' in program
gradina.cpp:50:1: error: stray '\233' in program
gradina.cpp:52:1: error: stray '\310' in program
 Lipește codul aici

 ^
gradina.cpp:52:1: error: stray '\231' in program
gradina.cpp:56:1: error: stray '\304' in program
 Fara temă - Antrenament

 ^
gradina.cpp:56:1: error: stray '\203' in program
gradina.cpp:58:1: error: stray '\342' in program

 ^
gradina.cpp:58:1: error: stray '\200' in program
gradina.cpp:58:1: error: stray '\213' in program
gradina.cpp:59:2: error: stray '\342' in program
  Contact •  Reîncarcă • 188.27.230.88
  ^
gradina.cpp:59:2: error: stray '\200' in program
gradina.cpp:59:2: error: stray '\242' in program
gradina.cpp:59:2: error: stray '\303' in program
gradina.cpp:59:2: error: stray '\256' in program
gradina.cpp:59:2: error: stray '\304' in program
gradina.cpp:59:2: error: stray '\203' in program
gradina.cpp:59:2: error: stray '\342' in program
gradina.cpp:59:2: error: stray '\200' in program
gradina.cpp:59:2: error: stray '\242' in program
gradina.cpp:59:31: error: too many decimal points in number
  Contact •  Reîncarcă • 188.27.230.88
                               ^
gradina.cpp:2:1: error: 'Clasa' does not name a type
 Clasa a 9-a  Tablouri bidimensionale (matrice)  Probleme diverse  gradina

 ^
gradina.cpp:19:1: error: 'pe' does not name a type
 pe următoarele P linii câte 2 numere naturale Lin și Col, separate printr-un spațiu, reprezentând numărul rândului, respectiv poziția în rând a fiecărui pom din livadă.

 ^
gradina.cpp:24:1: error: 'pe' does not name a type
 pe a doua linie numărul de posibilități de a amplasa grădina astfel încât să conțină numărul maxim de pomi determinat.

 ^

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