Pagini recente » Borderou de evaluare (job #433425) | Borderou de evaluare (job #1410124) | Borderou de evaluare (job #429913) | Borderou de evaluare (job #3223574)
Borderou de evaluare (job #3223574)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:13:22: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
13 | fscanf(pf, "%d", v[j]);
| ~^ ~~~~
| | |
| | int
| int *
main.c:66:24: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion]
66 | {fprintf(pfo, v[i]);
| ~^~~
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:351:44: note: expected 'const char * restrict' but argument is of type 'int'
351 | const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:13:9: warning: 'v' may be used uninitialized [-Wmaybe-uninitialized]
13 | fscanf(pf, "%d", v[j]);
| ^~~~~~~~~~~~~~~~~~~~~~
main.c:8:10: note: 'v' was declared here
8 | int *v ,*w, *q;
| ^
main.c:14:13: warning: 'w' may be used uninitialized [-Wmaybe-uninitialized]
14 | w[j]= v[j];
| ~~~~^~~~~~
main.c:8:14: note: 'w' was declared here
8 | int *v ,*w, *q;
| ^
main.c:35:23: warning: 'q' may be used uninitialized [-Wmaybe-uninitialized]
35 | {q[ct]=v[i];
| ~~~~~^~~~~
main.c:8:18: note: 'q' was declared here
8 | int *v ,*w, *q;
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 380kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |