#215
Scrieţi un program care citeşte de la tastatură un număr natural nenul n
cu exact 5
cifre şi construieşte un tablou bidimensional completat cu cifrele numărului citit, după o regulă precizată.
Variante Bacalaureat 2009
Problema | GenMat6 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57479736 | Utilizator | |
Fișier | genmat6.cpp | Dimensiune | 939 B |
Data încărcării | 01 Aprilie 2025, 19:29 | Scor / rezultat | 0 puncte |
genmat6.cpp: In function 'int main()': genmat6.cpp:12:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(i=j) ^ genmat6.cpp:16:18: warning: statement has no effect [-Wunused-value] uc==n%10; ^ genmat6.cpp:17:20: warning: statement has no effect [-Wunused-value] a[i][j]==uc; ^ genmat6.cpp:21:15: warning: statement has no effect [-Wunused-value] cz==(n-uc)/10; ^ genmat6.cpp:22:15: warning: statement has no effect [-Wunused-value] cz==cz%10; ^ genmat6.cpp:23:20: warning: statement has no effect [-Wunused-value] a[i][j]==cz; ^ genmat6.cpp:27:15: warning: statement has no effect [-Wunused-value] cs==(n-uc)/100; ^ genmat6.cpp:28:15: warning: statement has no effect [-Wunused-value] cs==cm%10; ^ genmat6.cpp:29:20: warning: statement has no effect [-Wunused-value] a[i][j]==cs; ^ genmat6.cpp:33:15: warning: statement has no effect [-Wunused-value] cm==(n-uc)/1000; ^ genmat6.cpp:34:15: warning: statement has no effect [-Wunused-value] cm==cm%10; ^ genmat6.cpp:35:20: warning: statement has no effect [-Wunused-value] a[i][j]==cm; ^ genmat6.cpp:39:16: warning: statement has no effect [-Wunused-value] czm==(n-uc)/10000; ^ genmat6.cpp:40:20: warning: statement has no effect [-Wunused-value] a[i][j]==czm; ^ genmat6.cpp:10:5: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized] for(j=0; j<n; j++) ^
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 GenMat6 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ă.