#1362
Se dă n. Să se afișeze 10n.
| Problema | p10 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64941843 | Utilizator | |
| Fișier | p10.c | Dimensiune | 180 B |
| Data încărcării | 18 Iunie 2026, 20:21 | Scor/rezultat | 0 puncte |
p10.c: In function ‘main’: p10.c:7:8: warning: passing argument 1 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion] 7 | printf(1); | ^ | | | int In file included from /usr/include/stdio.h:980, from p10.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:84:32: note: expected ‘const char * restrict’ but argument is of type ‘int’ 84 | printf (const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ p10.c:7:1: warning: format not a string literal and no format arguments [-Wformat-security] 7 | printf(1); | ^~~~~~ p10.c:8:1: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 8 | for(i=1;1<=n;i++) | ^~~ p10.c:10:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 10 | return 0; | ^~~~~~ p10.c:6:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d", &n); | ^~~~~~~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Caught fatal signal 11 | 20 | 0 | Exemplu | |
| 3 | 0.001 secunde | Caught fatal signal 11 | 40 | 0 | ||
| 4 | 0.001 secunde | Caught fatal signal 11 | 20 | 0 | ||
| 5 | 0.001 secunde | Caught fatal signal 11 | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema p10 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ă.