#1772
Progresie2
Să se afișeze o matrice pătratică cu n
linii și n
coloane după regulă.
Problema | Progresie2 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #9979193 | Utilizator | |
Fișier | progresie2.c | Dimensiune | 697 B |
Data încărcării | 05 Iulie 2018, 18:10 | Scor / rezultat | 80 puncte |
progresie2.c: In function 'main': progresie2.c:3:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] scanf("%d",&a1); ^ progresie2.c:3:5: warning: incompatible implicit declaration of built-in function 'scanf' [enabled by default] progresie2.c:7:5: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] int** matrice = (int**)malloc(sizeof(int*)*n); ^ progresie2.c:7:28: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default] int** matrice = (int**)malloc(sizeof(int*)*n); ^ progresie2.c:34:4: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] printf("%d ", matrice[i - 1][j - 1]); ^ progresie2.c:34:4: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] progresie2.c:36:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default] printf("\n"); ^ progresie2.c:39:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] free(matrice[i]); ^ progresie2.c:39:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | ||
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
5 | 0 secunde | OK. | 20 | 20 | Exemplu | |
Punctaj total | 80 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Progresie2 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ă.