#221
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 |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58481138 | Utilizator | |
Fișier | genmat11.cpp | Dimensiune | 542 B |
Data încărcării | 10 Iunie 2025, 10:50 | Scor / rezultat | 0 puncte |
genmat11.cpp: In function 'int main()': genmat11.cpp:9:9: warning: unused variable 'a' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:9:12: warning: unused variable 'b' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:9:18: warning: unused variable 'm' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:9:27: warning: unused variable 'maxi' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:9:39: warning: unused variable 's' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:9:44: warning: unused variable 'k' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:9:49: warning: unused variable 's1' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:9:55: warning: unused variable 's2' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:9:61: warning: unused variable 'cif' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:9:66: warning: unused variable 'p1' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:9:70: warning: unused variable 'p2' [-Wunused-variable] int a, b, n, m, i, j, maxi=0, nr, s=0, k=0, s1=0, s2=0, cif, p1, p2; ^ genmat11.cpp:10:10: warning: unused variable 'ok' [-Wunused-variable] bool ok, okk; ^ genmat11.cpp:10:14: warning: unused variable 'okk' [-Wunused-variable] bool ok, okk; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
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ă.