#214
GenMat5
Scrieţi un program care citeşte de la tastatură un număr natural nenul n
cu cel mult 9 cifre şi construieşte un tablou bidimensional pătratic cu dimensiunea egală cu numărul de cifre ale lui n
, completată cu cifrele lui n
.
Variante Bacalaureat 2009
Problema | GenMat5 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55104836 | Utilizator | |
Fișier | genmat5.cpp | Dimensiune | 850 B |
Data încărcării | 23 Decembrie 2024, 23:35 | Scor / rezultat | Eroare de compilare |
genmat5.cpp:1:1: error: stray '\305' in program Cerinţa ^ genmat5.cpp:1:1: error: stray '\243' in program genmat5.cpp:2:1: error: stray '\305' in program Scrieţi un program care citeşte de la tastatură un număr natural nenul n cu cel mult 9 cifre şi construieşte un tablou bidimensional pătratic cu dimensiunea egală cu numărul de cifre ale lui n, completată cu cifrele lui n. ^ genmat5.cpp:2:1: error: stray '\243' in program genmat5.cpp:2:1: error: stray '\305' in program genmat5.cpp:2:1: error: stray '\237' in program genmat5.cpp:2:1: error: stray '\304' in program genmat5.cpp:2:1: error: stray '\203' in program genmat5.cpp:2:1: error: stray '\304' in program genmat5.cpp:2:1: error: stray '\203' in program genmat5.cpp:2:1: error: stray '\305' in program genmat5.cpp:2:1: error: stray '\237' in program genmat5.cpp:2:1: error: stray '\305' in program genmat5.cpp:2:1: error: stray '\237' in program genmat5.cpp:2:1: error: stray '\304' in program genmat5.cpp:2:1: error: stray '\203' in program genmat5.cpp:2:1: error: stray '\304' in program genmat5.cpp:2:1: error: stray '\203' in program genmat5.cpp:2:1: error: stray '\304' in program genmat5.cpp:2:1: error: stray '\203' in program genmat5.cpp:2:1: error: stray '\304' in program genmat5.cpp:2:1: error: stray '\203' in program genmat5.cpp:4:1: error: stray '\304' in program Elementele de pe prima coloană vor fi egale cu cifra unităţilor lui n, elementele de pe a doua coloană vor fi egale cu cifra zecilor, etc. ^ genmat5.cpp:4:1: error: stray '\203' in program genmat5.cpp:4:1: error: stray '\304' in program genmat5.cpp:4:1: error: stray '\203' in program genmat5.cpp:4:1: error: stray '\305' in program genmat5.cpp:4:1: error: stray '\243' in program genmat5.cpp:4:1: error: stray '\304' in program genmat5.cpp:4:1: error: stray '\203' in program genmat5.cpp:7:1: error: stray '\310' in program Programul citește de la tastatură numărul n. ^ genmat5.cpp:7:1: error: stray '\231' in program genmat5.cpp:7:1: error: stray '\304' in program genmat5.cpp:7:1: error: stray '\203' in program genmat5.cpp:7:1: error: stray '\304' in program genmat5.cpp:7:1: error: stray '\203' in program genmat5.cpp:9:1: error: stray '\305' in program Date de ieşire ^ genmat5.cpp:9:1: error: stray '\237' in program genmat5.cpp:10:1: error: stray '\310' in program Programul afișează pe ecran matricea construită, câte o linie a matricei pe câte o linie a ecranului, elementele fiecărei linii fiind separate prin câte un spaţiu. ^ genmat5.cpp:10:1: error: stray '\231' in program genmat5.cpp:10:1: error: stray '\304' in program genmat5.cpp:10:1: error: stray '\203' in program genmat5.cpp:10:1: error: stray '\304' in program genmat5.cpp:10:1: error: stray '\203' in program genmat5.cpp:10:1: error: stray '\303' in program genmat5.cpp:10:1: error: stray '\242' in program genmat5.cpp:10:1: error: stray '\303' in program genmat5.cpp:10:1: error: stray '\242' in program genmat5.cpp:10:1: error: stray '\304' in program genmat5.cpp:10:1: error: stray '\203' in program genmat5.cpp:10:1: error: stray '\303' in program genmat5.cpp:10:1: error: stray '\242' in program genmat5.cpp:10:1: error: stray '\305' in program genmat5.cpp:10:1: error: stray '\243' in program genmat5.cpp:12:1: error: stray '\305' in program Restricţii şi precizări ^ genmat5.cpp:12:1: error: stray '\243' in program genmat5.cpp:12:1: error: stray '\305' in program genmat5.cpp:12:1: error: stray '\237' in program genmat5.cpp:12:1: error: stray '\304' in program genmat5.cpp:12:1: error: stray '\203' in program genmat5.cpp:13:1: error: stray '\342' in program 1 ≤ n < 1.000.000.000 ^ genmat5.cpp:13:1: error: stray '\211' in program genmat5.cpp:13:1: error: stray '\244' in program genmat5.cpp:13:11: error: too many decimal points in number 1 ≤ n < 1.000.000.000 ^ genmat5.cpp:18:1: error: stray '\310' in program Ieșire ^ genmat5.cpp:18:1: error: stray '\231' in program genmat5.cpp:24:1: error: stray '\303' in program Încărcare soluție ^ genmat5.cpp:24:1: error: stray '\216' in program genmat5.cpp:24:1: error: stray '\304' in program genmat5.cpp:24:1: error: stray '\203' in program genmat5.cpp:24:1: error: stray '\310' in program genmat5.cpp:24:1: error: stray '\233' in program genmat5.cpp:26:1: error: stray '\310' in program Lipește codul aici ^ genmat5.cpp:26:1: error: stray '\231' in program genmat5.cpp:1:1: error: 'Cerin' does not name a type Cerinţa ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GenMat5 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ă.