Detalii evaluare #53133276

Rezumat problemă

#4658 puzzle1

Maria a primit cadou de ziua ei o cutie cu piese de puzzle, etichetate cu numere naturale. Pentru a-l rezolva trebuie să lipească între ele, în ordinea în care le extrage din cutie, cât mai multe piese, formând astfel grupuri de piese. Cunoscând cele N numere naturale care se găsesc pe etichetele pieselor de joc, în ordinea în care aceste se extrag din cutie, să se determine:
1. Numărul de grupuri pe care le obține Maria după ce rezolvă jocul de puzzle;
2. Cele K numere înscrise pe etichetele grupurilor alese de Maria.

Detalii

Problema puzzle1 Operații I/O puzzle.in/puzzle.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #53133276 Utilizator Blaga Vlad Bogdan (Vlad_Blaga)
Fișier puzzle1.cpp Dimensiune 4.56 KB
Data încărcării 18 Octombrie 2024, 14:48 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

puzzle1.cpp:1:1: error: stray '\304' in program
 Postată de Clasa Intrare/ieșire Limită timp Limită memorie Sursa problemei Autor Dificultate Scorul tău

 ^
puzzle1.cpp:1:1: error: stray '\203' in program
puzzle1.cpp:1:1: error: stray '\310' in program
puzzle1.cpp:1:1: error: stray '\231' in program
puzzle1.cpp:1:1: error: stray '\304' in program
puzzle1.cpp:1:1: error: stray '\203' in program
puzzle1.cpp:1:1: error: stray '\304' in program
puzzle1.cpp:1:1: error: stray '\203' in program
puzzle1.cpp:1:1: error: stray '\304' in program
puzzle1.cpp:1:1: error: stray '\203' in program
puzzle1.cpp:4:7: error: "puzzle1" is not a valid filename
 #4658 puzzle1 

       ^
puzzle1.cpp:6:1: error: stray '\310' in program
 Olimpiada Națională de Informatică 2024 Clasa a V-a puzzle1

 ^
puzzle1.cpp:6:1: error: stray '\233' in program
puzzle1.cpp:6:1: error: stray '\304' in program
puzzle1.cpp:6:1: error: stray '\203' in program
puzzle1.cpp:6:1: error: stray '\304' in program
puzzle1.cpp:6:1: error: stray '\203' in program
puzzle1.cpp:7:1: error: stray '\304' in program
 Etichete: nicio etichetă

 ^
puzzle1.cpp:7:1: error: stray '\203' in program
puzzle1.cpp:9: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.

 ^
puzzle1.cpp:9:1: error: stray '\203' in program
puzzle1.cpp:9:1: error: stray '\304' in program
puzzle1.cpp:9:1: error: stray '\203' in program
puzzle1.cpp:9:1: error: stray '\304' in program
puzzle1.cpp:9:1: error: stray '\203' in program
puzzle1.cpp:9:1: error: stray '\304' in program
puzzle1.cpp:9:1: error: stray '\203' in program
puzzle1.cpp:9:1: error: stray '\310' in program
puzzle1.cpp:9:1: error: stray '\233' in program
puzzle1.cpp:9:1: error: stray '\304' in program
puzzle1.cpp:9:1: error: stray '\203' in program
puzzle1.cpp:10:1: error: stray '\310' in program
 Enunț

 ^
puzzle1.cpp:10:1: error: stray '\233' in program
puzzle1.cpp:11:1: error: stray '\310' in program
 Soluții 

 ^
puzzle1.cpp:11:1: error: stray '\233' in program
puzzle1.cpp:12:1: error: stray '\304' in program
 Maria a primit cadou de ziua ei o cutie cu piese de puzzle, etichetate cu numere naturale. Pentru a-l rezolva trebuie să lipească între ele, în ordinea în care le extrage din cutie, cât mai multe piese, formând astfel grupuri de piese.

 ^
puzzle1.cpp:12:1: error: stray '\203' in program
puzzle1.cpp:12:1: error: stray '\304' in program
puzzle1.cpp:12:1: error: stray '\203' in program
puzzle1.cpp:12:1: error: stray '\303' in program
puzzle1.cpp:12:1: error: stray '\256' in program
puzzle1.cpp:12:1: error: stray '\303' in program
puzzle1.cpp:12:1: error: stray '\256' in program
puzzle1.cpp:12:1: error: stray '\303' in program
puzzle1.cpp:12:1: error: stray '\256' in program
puzzle1.cpp:12:1: error: stray '\303' in program
puzzle1.cpp:12:1: error: stray '\242' in program
puzzle1.cpp:12:1: error: stray '\303' in program
puzzle1.cpp:12:1: error: stray '\242' in program
puzzle1.cpp:14:1: error: stray '\304' in program
 Două piese de puzzle se pot lipi între ele dacă numerele de pe etichetele lor au cel puțin trei cifre comune. La operația de lipire a două piese se obține un grup de piese care va fi etichetat cu numărul obținut prin alipirea primelor patru cifre de pe prima etichetă cu ultimele patru cifre de pe cea de a doua etichetă (dacă numerele de pe etichete nu au cel puțin patru cifre se păstrează doar cele existente fără a adăuga altele). O piesă se poate lipi de o altă piesă sau de un grupul de piese anterior creat (dacă acesta există), sau poate forma singură un grup.

 ^
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\303' in program
puzzle1.cpp:14:1: error: stray '\256' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\310' in program
puzzle1.cpp:14:1: error: stray '\233' in program
puzzle1.cpp:14:1: error: stray '\310' in program
puzzle1.cpp:14:1: error: stray '\233' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\310' in program
puzzle1.cpp:14:1: error: stray '\233' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\310' in program
puzzle1.cpp:14:1: error: stray '\233' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\310' in program
puzzle1.cpp:14:1: error: stray '\233' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:14:1: error: stray '\304' in program
puzzle1.cpp:14:1: error: stray '\203' in program
puzzle1.cpp:16:1: error: stray '\304' in program
 De exemplu dacă pe etichete avem numerele 133454 și 3523143 atunci putem lipi cele două piese deoarece au în comun cinci cifre (o cifră 1, două cifre 3, o cifră 4 și o cifră 5). În urma lipirii obținem un grup cu eticheta 13343143.

 ^
puzzle1.cpp:16:1: error: stray '\203' in program
puzzle1.cpp:16:1: error: stray '\310' in program
puzzle1.cpp:16:1: error: stray '\231' in program
puzzle1.cpp:16:1: error: stray '\304' in program
puzzle1.cpp:16:1: error: stray '\203' in program
puzzle1.cpp:16:1: error: stray '\303' in program
puzzle1.cpp:16:1: error: stray '\256' in program
puzzle1.cpp:16:1: error: stray '\304' in program
puzzle1.cpp:16:1: error: stray '\203' in program
puzzle1.cpp:16:1: error: stray '\304' in program
puzzle1.cpp:16:1: error: stray '\203' in program
puzzle1.cpp:16:1: error: stray '\304' in program
puzzle1.cpp:16:1: error: stray '\203' in program
puzzle1.cpp:16:1: error: stray '\310' in program
puzzle1.cpp:16:1: error: stray '\231' in program
puzzle1.cpp:16:1: error: stray '\304' in program
puzzle1.cpp:16:1: error: stray '\203' in program
puzzle1.cpp:16:1: error: stray '\303' in program
puzzle1.cpp:16:1: error: stray '\216' in program
puzzle1.cpp:16:1: error: stray '\310' in program
puzzle1.cpp:16:1: error: stray '\233' in program
puzzle1.cpp:18:1: error: stray '\303' in program
 Pentru a rezolva jocul Maria extrage pe rând din cutie câte o piesă. Dacă aceasta se poate lipi de ultimul grup format atunci o lipește de el și actualizează eticheta grupului, altfel pune deoparte grupul respectiv și începe să formeze un nou grup pornind cu piesa extrasă.

 ^
puzzle1.cpp:18:1: error: stray '\242' in program
puzzle1.cpp:18:1: error: stray '\303' in program
puzzle1.cpp:18:1: error: stray '\242' in program
puzzle1.cpp:18:1: error: stray '\304' in program
puzzle1.cpp:18:1: error: stray '\203' in program
puzzle1.cpp:18:1: error: stray '\304' in program
puzzle1.cpp:18:1: error: stray '\203' in program
puzzle1.cpp:18:1: error: stray '\310' in program
puzzle1.cpp:18:1: error: stray '\231' in program
puzzle1.cpp:18:1: error: stray '\310' in program
puzzle1.cpp:18:1: error: stray '\231' in program
puzzle1.cpp:18:1: error: stray '\304' in program
puzzle1.cpp:18:1: error: stray '\203' in program
puzzle1.cpp:18:1: error: stray '\310' in program
puzzle1.cpp:18:1: error: stray '\231' in program
puzzle1.cpp:18:1: error: stray '\303' in program
puzzle1.cpp:18:1: error: stray '\256' in program
puzzle1.cpp:18:1: error: stray '\304' in program
puzzle1.cpp:18:1: error: stray '\203' in program
puzzle1.cpp:18:1: error: stray '\304' in program
puzzle1.cpp:18:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
 După ce formează grupurile Maria alege etichete de grupuri în următoarea ordine: prima dată alege eticheta cu număr maxim de cifre distincte. Dacă sunt mai multe, o alege pe cea cu valoarea cea mai mică. Dintre etichetele rămase alege următoarea etichetă după aceiași regulă. Continuă procedeul până când a ales K etichete.

 ^
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\303' in program
puzzle1.cpp:20:1: error: stray '\256' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\310' in program
puzzle1.cpp:20:1: error: stray '\231' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\303' in program
puzzle1.cpp:20:1: error: stray '\242' in program
puzzle1.cpp:20:1: error: stray '\304' in program
puzzle1.cpp:20:1: error: stray '\203' in program
puzzle1.cpp:20:1: error: stray '\303' in program
puzzle1.cpp:20:1: error: stray '\242' in program
puzzle1.cpp:22:1: error: stray '\303' in program
 Cunoscând cele N numere naturale care se găsesc pe etichetele pieselor de joc, în ordinea în care aceste se extrag din cutie, să se determine:

 ^
puzzle1.cpp:22:1: error: stray '\242' in program
puzzle1.cpp:22:1: error: stray '\304' in program
puzzle1.cpp:22:1: error: stray '\203' in program
puzzle1.cpp:22:1: error: stray '\303' in program
puzzle1.cpp:22:1: error: stray '\256' in program
puzzle1.cpp:22:1: error: stray '\303' in program
puzzle1.cpp:22:1: error: stray '\256' in program
puzzle1.cpp:22:1: error: stray '\304' in program
puzzle1.cpp:22:1: error: stray '\203' in program
puzzle1.cpp:24:1: error: stray '\310' in program
 Cerința

 ^
puzzle1.cpp:24:1: error: stray '\233' in program
puzzle1.cpp:25:1: error: stray '\304' in program
 1. Numărul de grupuri pe care le obține Maria după ce rezolvă jocul de puzzle;

 ^
puzzle1.cpp:25:1: error: stray '\203' in program
puzzle1.cpp:25:1: error: stray '\310' in program
puzzle1.cpp:25:1: error: stray '\233' in program
puzzle1.cpp:25:1: error: stray '\304' in program
puzzle1.cpp:25:1: error: stray '\203' in program
puzzle1.cpp:25:1: error: stray '\304' in program
puzzle1.cpp:25:1: error: stray '\203' in program
puzzle1.cpp:26:1: error: stray '\303' in program
 2. Cele K numere înscrise pe etichetele grupurilor alese de Maria.

 ^
puzzle1.cpp:26:1: error: stray '\256' in program
puzzle1.cpp:29:1: error: stray '\303' in program
 În fișierul de intrare puzzle.in se găsesc pe prima linie, separate prin câte un spațiu, C, N și K, unde C reprezintă cerința ce trebuie rezolvată, N numărul de piese din joc, K numărul de valori cerute la cerința 2. Pe linia următoare, separate prin câte un spațiu, sunt cele N numere înscrise pe etichetele pieselor de joc, în ordinea în care se extrag din cutie.

 ^
puzzle1.cpp:29:1: error: stray '\216' in program
puzzle1.cpp:29:1: error: stray '\310' in program
puzzle1.cpp:29:1: error: stray '\231' in program
puzzle1.cpp:29:1: error: stray '\304' in program
puzzle1.cpp:29:1: error: stray '\203' in program
puzzle1.cpp:29:1: error: stray '\303' in program
puzzle1.cpp:29:1: error: stray '\242' in program
puzzle1.cpp:29:1: error: stray '\310' in program
puzzle1.cpp:29:1: error: stray '\233' in program
puzzle1.cpp:29:1: error: stray '\310' in program
puzzle1.cpp:29:1: error: stray '\231' in program
puzzle1.cpp:29:1: error: stray '\304' in program
puzzle1.cpp:29:1: error: stray '\203' in program
puzzle1.cpp:29:1: error: stray '\310' in program
puzzle1.cpp:29:1: error: stray '\233' in program
puzzle1.cpp:29:1: error: stray '\304' in program
puzzle1.cpp:29:1: error: stray '\203' in program
puzzle1.cpp:29:1: error: stray '\304' in program
puzzle1.cpp:29:1: error: stray '\203' in program
puzzle1.cpp:29:1: error: stray '\304' in program
puzzle1.cpp:29:1: error: stray '\203' in program
puzzle1.cpp:29:1: error: stray '\310' in program
puzzle1.cpp:29:1: error: stray '\233' in program
puzzle1.cpp:29:1: error: stray '\304' in program
puzzle1.cpp:29:1: error: stray '\203' in program
puzzle1.cpp:29:1: error: stray '\303' in program
puzzle1.cpp:29:1: error: stray '\242' in program
puzzle1.cpp:29:1: error: stray '\310' in program
puzzle1.cpp:29:1: error: stray '\233' in program
puzzle1.cpp:29:1: error: stray '\303' in program
puzzle1.cpp:29:1: error: stray '\256' in program
puzzle1.cpp:29:1: error: stray '\303' in program
puzzle1.cpp:29:1: error: stray '\256' in program
puzzle1.cpp:29:1: error: stray '\303' in program
puzzle1.cpp:29:1: error: stray '\256' in program
puzzle1.cpp:31:1: error: stray '\310' in program
 Date de ieșire

 ^
puzzle1.cpp:31:1: error: stray '\231' in program
puzzle1.cpp:32:1: error: stray '\304' in program
 Dacă cerința este 1, fişierul de ieşire puzzle.out va conţine pe prima linie un număr natural G, reprezentând numărul de grupuri obținut după finalizarea jocului.

 ^
puzzle1.cpp:32:1: error: stray '\203' in program
puzzle1.cpp:32:1: error: stray '\310' in program
puzzle1.cpp:32:1: error: stray '\233' in program
puzzle1.cpp:32:1: error: stray '\305' in program
puzzle1.cpp:32:1: error: stray '\237' in program
puzzle1.cpp:32:1: error: stray '\305' in program
puzzle1.cpp:32:1: error: stray '\237' in program
puzzle1.cpp:32:1: error: stray '\305' in program
puzzle1.cpp:32:1: error: stray '\243' in program
puzzle1.cpp:32:1: error: stray '\304' in program
puzzle1.cpp:32:1: error: stray '\203' in program
puzzle1.cpp:32:1: error: stray '\303' in program
puzzle1.cpp:32:1: error: stray '\242' in program
puzzle1.cpp:32:1: error: stray '\304' in program
puzzle1.cpp:32:1: error: stray '\203' in program
puzzle1.cpp:32:1: error: stray '\310' in program
puzzle1.cpp:32:1: error: stray '\233' in program
puzzle1.cpp:32:1: error: stray '\304' in program
puzzle1.cpp:32:1: error: stray '\203' in program
puzzle1.cpp:34:1: error: stray '\304' in program
 Dacă cerința este 2 pe prima linie a fișierului de ieșire puzzle.out se vor scrie, separate prin câte un spațiu, cele K numere înscrise pe etichetele grupurilor alese de Maria.

 ^
puzzle1.cpp:34:1: error: stray '\203' in program
puzzle1.cpp:34:1: error: stray '\310' in program
puzzle1.cpp:34:1: error: stray '\233' in program
puzzle1.cpp:34:1: error: stray '\310' in program
puzzle1.cpp:34:1: error: stray '\231' in program
puzzle1.cpp:34:1: error: stray '\310' in program
puzzle1.cpp:34:1: error: stray '\231' in program
puzzle1.cpp:34:1: error: stray '\303' in program
puzzle1.cpp:34:1: error: stray '\242' in program
puzzle1.cpp:34:1: error: stray '\310' in program
puzzle1.cpp:34:1: error: stray '\233' in program
puzzle1.cpp:34:1: error: stray '\303' in program
puzzle1.cpp:34:1: error: stray '\256' in program
puzzle1.cpp:36:1: error: stray '\310' in program
 Restricții și precizări

 ^
puzzle1.cpp:36:1: error: stray '\233' in program
puzzle1.cpp:36:1: error: stray '\310' in program
puzzle1.cpp:36:1: error: stray '\231' in program
puzzle1.cpp:36:1: error: stray '\304' in program
puzzle1.cpp:36:1: error: stray '\203' in program
puzzle1.cpp:37:1: error: stray '\342' in program
 1 ≤ C ≤ 2

 ^
puzzle1.cpp:37:1: error: stray '\211' in program
puzzle1.cpp:37:1: error: stray '\244' in program
puzzle1.cpp:37:1: error: stray '\342' in program
puzzle1.cpp:37:1: error: stray '\211' in program
puzzle1.cpp:37:1: error: stray '\244' in program
puzzle1.cpp:38:1: error: stray '\342' in program
 1 ≤ N ≤ 100.000

 ^
puzzle1.cpp:38:1: error: stray '\211' in program
puzzle1.cpp:38:1: error: stray '\244' in program
puzzle1.cpp:38:1: error: stray '\342' in program
puzzle1.cpp:38:1: error: stray '\211' in program
puzzle1.cpp:38:1: error: stray '\244' in program
puzzle1.cpp:39:1: error: stray '\342' in program
 1 ≤ K ≤ 10

 ^
puzzle1.cpp:39:1: error: stray '\211' in program
puzzle1.cpp:39:1: error: stray '\244' in program
puzzle1.cpp:39:1: error: stray '\342' in program
puzzle1.cpp:39:1: error: stray '\211' in program
puzzle1.cpp:39:1: error: stray '\244' in program
puzzle1.cpp:40:1: error: stray '\304' in program
 Numerele de pe etichetele pieselor sunt numere naturale cu cel mult nouă cifre;

 ^
puzzle1.cpp:40:1: error: stray '\203' in program
puzzle1.cpp:41:1: error: stray '\304' in program
 Pentru toate datele de test există soluție.

 ^
puzzle1.cpp:41:1: error: stray '\203' in program
puzzle1.cpp:41:1: error: stray '\310' in program
puzzle1.cpp:41:1: error: stray '\233' in program
puzzle1.cpp:54:1: error: stray '\310' in program
 Explicație

 ^
puzzle1.cpp:54:1: error: stray '\233' in program
puzzle1.cpp:55:1: error: stray '\310' in program
 Piesa cu eticheta 13345 se poate lipi cu piesa cu eticheta 23143 obținând astfel grupul cu eticheta 13343143 la care se poate lipi piesa cu eticheta 4343 și obținem 13344343 care nu se mai poate lipi cu următoarea piesă cu eticheta 784532, dar această piesă se va lipi cu piesa etichetată cu 432 și obținem 7845432 care în continuare se lipește cu piesa 7826 și obținem a doua etichetă a unui grup 78457826.

 ^
puzzle1.cpp:55:1: error: stray '\233' in program
puzzle1.cpp:55:1: error: stray '\303' in program
puzzle1.cpp:55:1: error: stray '\242' in program
puzzle1.cpp:55:1: error: stray '\310' in program
puzzle1.cpp:55:1: error: stray '\231' in program
puzzle1.cpp:55:1: error: stray '\310' in program
puzzle1.cpp:55:1: error: stray '\233' in program
puzzle1.cpp:55:1: error: stray '\304' in program
puzzle1.cpp:55:1: error: stray '\203' in program
puzzle1.cpp:55:1: error: stray '\304' in program
puzzle1.cpp:55:1: error: stray '\203' in program
puzzle1.cpp:55:1: error: stray '\304' in program
puzzle1.cpp:55:1: error: stray '\203' in program
puzzle1.cpp:55:1: error: stray '\304' in program
puzzle1.cpp:55:1: error: stray '\203' in program
puzzle1.cpp:55:1: error: stray '\304' in program
puzzle1.cpp:55:1: error: stray '\203' in program
puzzle1.cpp:55:1: error: stray '\310' in program
puzzle1.cpp:55:1: error: stray '\231' in program
puzzle1.cpp:55:1: error: stray '\310' in program
puzzle1.cpp:55:1: error: stray '\233' in program
puzzle1.cpp:55:1: error: stray '\303' in program
puzzle1.cpp:55:1: error: stray '\256' in program
puzzle1.cpp:55:1: error: stray '\310' in program
puzzle1.cpp:55:1: error: stray '\231' in program
puzzle1.cpp:55:1: error: stray '\310' in program
puzzle1.cpp:55:1: error: stray '\231' in program
puzzle1.cpp:55:1: error: stray '\310' in program
puzzle1.cpp:55:1: error: stray '\233' in program
puzzle1.cpp:55:1: error: stray '\304' in program
puzzle1.cpp:55:1: error: stray '\203' in program
puzzle1.cpp:65:1: error: stray '\310' in program
 Explicație

 ^
puzzle1.cpp:65:1: error: stray '\233' in program
puzzle1.cpp:66:1: error: stray '\303' in program
 În urma grupării pieselor obținem două grupuri etichetate cu 13344343 și respectiv 78457826. Dintre acestea 78457826 are 6 cifre distincte, iar 13344343 are doar 3 cifre distincte. Deci valoarea căutată este 78457826.

 ^
puzzle1.cpp:66:1: error: stray '\216' in program
puzzle1.cpp:66:1: error: stray '\304' in program
puzzle1.cpp:66:1: error: stray '\203' in program
puzzle1.cpp:66:1: error: stray '\310' in program
puzzle1.cpp:66:1: error: stray '\233' in program
puzzle1.cpp:66:1: error: stray '\304' in program
puzzle1.cpp:66:1: error: stray '\203' in program
puzzle1.cpp:66:1: error: stray '\310' in program
puzzle1.cpp:66:1: error: stray '\231' in program
puzzle1.cpp:66:1: error: stray '\304' in program
puzzle1.cpp:66:1: error: stray '\203' in program
puzzle1.cpp:66:1: error: stray '\304' in program
puzzle1.cpp:66:1: error: stray '\203' in program
puzzle1.cpp:68:1: error: stray '\303' in program
 Încărcare soluție

 ^
puzzle1.cpp:68:1: error: stray '\216' in program
puzzle1.cpp:68:1: error: stray '\304' in program
puzzle1.cpp:68:1: error: stray '\203' in program
puzzle1.cpp:68:1: error: stray '\310' in program
puzzle1.cpp:68:1: error: stray '\233' in program
puzzle1.cpp:70:1: error: stray '\310' in program
 Lipește codul aici

 ^
puzzle1.cpp:70:1: error: stray '\231' in program
puzzle1.cpp:74:1: error: stray '\342' in program

 ^
puzzle1.cpp:74:1: error: stray '\200' in program
puzzle1.cpp:74:1: error: stray '\213' in program
puzzle1.cpp:1:1: error: 'Postat' does not name a type
 Postată de Clasa Intrare/ieșire Limită timp Limită memorie Sursa problemei Autor Dificultate Scorul tău

 ^
puzzle1.cpp:26:1: error: expected unqualified-id before numeric constant
 2. Cele K numere înscrise pe etichetele grupurilor alese de Maria.

 ^
puzzle1.cpp:41:1: error: 'Pentru' does not name a type
 Pentru toate datele de test există soluție.

 ^

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