Pagini recente » Borderou de evaluare (job #2469303) | Borderou de evaluare (job #2856914) | Borderou de evaluare (job #1650934) | Borderou de evaluare (job #281141) | Borderou de evaluare (job #2728539)
Borderou de evaluare (job #2728539)
Raport evaluator
Compilare:
main.c: In function 'op_add':
main.c:55:46: warning: right-hand operand of comma expression has no effect [-Wunused-value]
pos = binary_search(n, b->members, b->count), i;
^
main.c:61:16: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration]
b->members = realloc(b->members, b->capacity<<3);
^~~~~~~
main.c:61:16: warning: incompatible implicit declaration of built-in function 'realloc'
main.c:61:16: note: include '<stdlib.h>' or provide a declaration of 'realloc'
main.c: At top level:
main.c:93:6: warning: return type of 'main' is not 'int' [-Wmain]
void main() {
^~~~
main.c: In function 'main':
main.c:101:18: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
hashtable[i] = malloc(sizeof(bucket));
^~~~~~
main.c:101:18: warning: incompatible implicit declaration of built-in function 'malloc'
main.c:101:18: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:102:27: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
hashtable[i]->members = calloc(1300, sizeof(unsigned int));
^~~~~~
main.c:102:27: warning: incompatible implicit declaration of built-in function 'calloc'
main.c:102:27: note: include '<stdlib.h>' or provide a declaration of 'calloc'
main.c:94:21: warning: unused variable 'flag' [-Wunused-variable]
unsigned int n, o, flag;
^~~~
At top level:
main.c:87:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void op_question(unsigned int index, unsigned int n) {
^~~~~~~~~~~
main.c:74:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void op_remove(unsigned int index, unsigned int n) {
^~~~~~~~~
main.c:53:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void op_add(unsigned int index, unsigned int n) {
^~~~~~
main.c:39:36: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) int binary_search(unsigned int val, unsigned int *a, unsigned int n) {
^~~~~~~~~~~~~
main.c:7:45: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) unsigned int lowbias32(unsigned int x) {
^~~~~~~~~
main.c: In function 'main':
main.c:95:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen("hashuri.in", "r", stdin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:96:2: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result]
freopen("hashuri.out", "w", stdout);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 6ms | 2752kb | OK | 10 | 10 |
2 | 7ms | 2752kb | OK | 10 | 10 |
3 | 7ms | 2752kb | OK | 10 | 10 |
4 | 84ms | 2863kb | OK | 10 | 30 |
5 | 92ms | 2752kb | OK | 10 |
6 | 131ms | 2883kb | OK | 10 |
7 | 250ms | 3014kb | OK | 10 | 10 |
8 | 546ms | 3014kb | OK | 10 | 30 |
9 | 1160ms | 5636kb | OK | 10 |
10 | 1089ms | 3932kb | OK | 10 |
Punctaj total | 100 |