Pagini recente » Borderou de evaluare (job #131649) | Borderou de evaluare (job #2544013) | Borderou de evaluare (job #526829) | Borderou de evaluare (job #2640266) | Borderou de evaluare (job #1209059)
Borderou de evaluare (job #1209059)
Raport evaluator
Compilare:
user.c: In function ‘loadarray’:
user.c:12:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(f, "%d", a[i]);
^
user.c: In function ‘main’:
user.c:22:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
fscanf(f, "%d", n);
^
user.c:25:5: warning: passing argument 1 of ‘loadarray’ from incompatible pointer type [enabled by default]
loadarray(a, n, f);
^
user.c:9:6: note: expected ‘int *’ but argument is of type ‘long int *’
void loadarray(int a[], size_t n, FILE *f)
^
user.c:26:5: warning: passing argument 1 of ‘loadarray’ from incompatible pointer type [enabled by default]
loadarray(b, n, f);
^
user.c:9:6: note: expected ‘int *’ but argument is of type ‘long int *’
void loadarray(int a[], size_t n, FILE *f)
^
user.c:32:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
fprintf(g, "%d", val);
^
user.c: In function ‘loadarray’:
user.c:12:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", a[i]);
^
user.c: In function ‘main’:
user.c:22:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", n);
^
user.c:22:11: warning: ‘n’ is used uninitialized in this function [-Wuninitialized]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 236kb | Killed by signal 11(SIGSEGV). | 0 |
2 | 0ms | 240kb | Killed by signal 11(SIGSEGV). | 0 |
3 | 0ms | 236kb | Killed by signal 11(SIGSEGV). | 0 |
4 | 0ms | 236kb | Killed by signal 11(SIGSEGV). | 0 |
5 | 0ms | 236kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 236kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 236kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 236kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 236kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 240kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |