#1429
Scrieţi un program care citeşte de la tastatură un număr natural nenul n şi construieşte un tablou bidimensional de dimensiune n după o regulă precizată.
Variante Bacalaureat 2007
| Problema | GenMat21 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64625950 | Utilizator | |
| Fișier | genmat21.cpp | Dimensiune | 481 B |
| Data încărcării | 19 Mai 2026, 10:49 | Scor/rezultat | 0 puncte |
genmat21.cpp: In function ‘int main()’: genmat21.cpp:9:15: warning: unused variable ‘maxim’ [-Wunused-variable] 9 | int i, j, maxim, c; | ^~~~~ genmat21.cpp:13:21: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized] 13 | a[i][j] = i; | ~~~~~~~~^~~ genmat21.cpp:9:12: note: ‘j’ was declared here 9 | int i, j, maxim, c; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.001 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 3 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 15 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 15 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 15 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 15 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GenMat21 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ă.