Pagini recente » Borderou de evaluare (job #79260) | Borderou de evaluare (job #2944601) | Borderou de evaluare (job #2205609) | Borderou de evaluare (job #1904158) | Borderou de evaluare (job #2728348)
Borderou de evaluare (job #2728348)
Raport evaluator
Compilare:
main.c: In function 'op_add':
main.c:56:16: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration]
b->members = realloc(b->members, b->capacity<<3);
^~~~~~~
main.c:56:16: warning: incompatible implicit declaration of built-in function 'realloc'
main.c:56:16: note: include '<stdlib.h>' or provide a declaration of 'realloc'
main.c:50:64: warning: unused variable 'i' [-Wunused-variable]
unsigned int pos = binary_search(n, b->members, 0, b->count), i;
^
main.c: At top level:
main.c:84:6: warning: return type of 'main' is not 'int' [-Wmain]
void main() {
^~~~
main.c: In function 'main':
main.c:92:18: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
hashtable[i] = malloc(sizeof(bucket));
^~~~~~
main.c:92:18: warning: incompatible implicit declaration of built-in function 'malloc'
main.c:92:18: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:93:27: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
hashtable[i]->members = calloc(1300, sizeof(unsigned int));
^~~~~~
main.c:93:27: warning: incompatible implicit declaration of built-in function 'calloc'
main.c:93:27: note: include '<stdlib.h>' or provide a declaration of 'calloc'
main.c:85:21: warning: unused variable 'flag' [-Wunused-variable]
unsigned int n, o, flag;
^~~~
main.c:86:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen("hashuri.in", "r", stdin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:87:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen("hashuri.out", "w", stdout);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:98:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^~~~~~~~~~~~~~~
main.c:102:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%u %u", &o, &n);
^~~~~~~~~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 7ms | 2752kb | Incorect | 0 | 0 |
2 | 7ms | 2752kb | Incorect | 0 | 0 |
3 | 7ms | 2752kb | Incorect | 0 | 0 |
4 | 81ms | 2883kb | Incorect | 0 | 0 |
5 | 89ms | 2752kb | Incorect | 0 |
6 | 134ms | 2883kb | Incorect | 0 |
7 | 277ms | 3014kb | Incorect | 0 | 0 |
8 | 412ms | 3014kb | Incorect | 0 | 0 |
9 | 822ms | 5906kb | Incorect | 0 |
10 | 861ms | 3801kb | Incorect | 0 |
Punctaj total | 0 |