#221
GenMat11
Scrieţi un program care citeşte de la tastatură un număr natural n
şi construieşte în memorie o matrice cu n
linii şi n
coloane, numerotate de la 1
la n
, în care se vor memora în ordinea crescătoare a valorii, pe linii şi coloane, primele n*n
numere naturale nenule, pare, care nu sunt divizibile cu 3
.
Variante Bacalaureat 2009
Problema | GenMat11 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52235373 | Utilizator | |
Fișier | genmat11.cpp | Dimensiune | 1.29 KB |
Data încărcării | 24 Septembrie 2024, 09:55 | Scor / rezultat | Eroare de compilare |
genmat11.cpp:2:10: error: stray '#' in program Problema #221 – GenMat11 – Rezolvari PBInfo ^ genmat11.cpp:2:1: error: stray '\342' in program Problema #221 – GenMat11 – Rezolvari PBInfo ^ genmat11.cpp:2:1: error: stray '\200' in program genmat11.cpp:2:1: error: stray '\223' in program genmat11.cpp:2:1: error: stray '\342' in program genmat11.cpp:2:1: error: stray '\200' in program genmat11.cpp:2:1: error: stray '\223' in program genmat11.cpp:5:1: error: stray '\305' in program Cerinţa ^ genmat11.cpp:5:1: error: stray '\243' in program genmat11.cpp:6:1: error: stray '\305' in program Scrieţi un program care citeşte de la tastatură un număr natural n şi construieşte în memorie o matrice cu n linii şi n coloane, numerotate de la 1 la n, în care se vor memora în ordinea crescătoare a valorii, pe linii şi coloane, primele n*n numere naturale nenule, pare, care nu sunt divizibile cu 3. ^ genmat11.cpp:6:1: error: stray '\243' in program genmat11.cpp:6:1: error: stray '\305' in program genmat11.cpp:6:1: error: stray '\237' in program genmat11.cpp:6:1: error: stray '\304' in program genmat11.cpp:6:1: error: stray '\203' in program genmat11.cpp:6:1: error: stray '\304' in program genmat11.cpp:6:1: error: stray '\203' in program genmat11.cpp:6:1: error: stray '\305' in program genmat11.cpp:6:1: error: stray '\237' in program genmat11.cpp:6:1: error: stray '\305' in program genmat11.cpp:6:1: error: stray '\237' in program genmat11.cpp:6:1: error: stray '\303' in program genmat11.cpp:6:1: error: stray '\256' in program genmat11.cpp:6:1: error: stray '\305' in program genmat11.cpp:6:1: error: stray '\237' in program genmat11.cpp:6:1: error: stray '\303' in program genmat11.cpp:6:1: error: stray '\256' in program genmat11.cpp:6:1: error: stray '\303' in program genmat11.cpp:6:1: error: stray '\256' in program genmat11.cpp:6:1: error: stray '\304' in program genmat11.cpp:6:1: error: stray '\203' in program genmat11.cpp:6:1: error: stray '\305' in program genmat11.cpp:6:1: error: stray '\237' in program genmat11.cpp:9:1: error: stray '\310' in program Programul citește de la tastatură numărul n. ^ genmat11.cpp:9:1: error: stray '\231' in program genmat11.cpp:9:1: error: stray '\304' in program genmat11.cpp:9:1: error: stray '\203' in program genmat11.cpp:9:1: error: stray '\304' in program genmat11.cpp:9:1: error: stray '\203' in program genmat11.cpp:11:1: error: stray '\305' in program Date de ieşire ^ genmat11.cpp:11:1: error: stray '\237' in program genmat11.cpp:12: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. ^ genmat11.cpp:12:1: error: stray '\231' in program genmat11.cpp:12:1: error: stray '\304' in program genmat11.cpp:12:1: error: stray '\203' in program genmat11.cpp:12:1: error: stray '\304' in program genmat11.cpp:12:1: error: stray '\203' in program genmat11.cpp:12:1: error: stray '\303' in program genmat11.cpp:12:1: error: stray '\242' in program genmat11.cpp:12:1: error: stray '\303' in program genmat11.cpp:12:1: error: stray '\242' in program genmat11.cpp:12:1: error: stray '\304' in program genmat11.cpp:12:1: error: stray '\203' in program genmat11.cpp:12:1: error: stray '\303' in program genmat11.cpp:12:1: error: stray '\242' in program genmat11.cpp:12:1: error: stray '\305' in program genmat11.cpp:12:1: error: stray '\243' in program genmat11.cpp:14:1: error: stray '\305' in program Restricţii şi precizări ^ genmat11.cpp:14:1: error: stray '\243' in program genmat11.cpp:14:1: error: stray '\305' in program genmat11.cpp:14:1: error: stray '\237' in program genmat11.cpp:14:1: error: stray '\304' in program genmat11.cpp:14:1: error: stray '\203' in program genmat11.cpp:15:1: error: stray '\342' in program 2≤n≤20 ^ genmat11.cpp:15:1: error: stray '\211' in program genmat11.cpp:15:1: error: stray '\244' in program genmat11.cpp:15:1: error: stray '\342' in program genmat11.cpp:15:1: error: stray '\211' in program genmat11.cpp:15:1: error: stray '\244' in program genmat11.cpp:20:1: error: stray '\310' in program Ieșire ^ genmat11.cpp:20:1: error: stray '\231' in program genmat11.cpp:2:1: error: 'Problema' does not name a type Problema #221 – GenMat11 – Rezolvari PBInfo ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GenMat11 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ă.