Borderou de evaluare (job #2452945)
Utilizator | Data | 1 septembrie 2019 20:28:38 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:8:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
typedef struct HEAP HEAPSHADOW;
^~~~~~~
main.c:17:19: error: unknown type name 'HEAPSHADOW'
void (*swap)( HEAPSHADOW*, int, int );
^~~~~~~~~~
main.c:19:22: error: unknown type name 'HEAPSHADOW'
void (*push_up)( HEAPSHADOW*, int);
^~~~~~~~~~
main.c:20:24: error: unknown type name 'HEAPSHADOW'
void (*push_down)( HEAPSHADOW*, int);
^~~~~~~~~~
main.c:21:29: error: unknown type name 'HEAPSHADOW'
void (*insert_element)( HEAPSHADOW*, void*);
^~~~~~~~~~
main.c:22:34: error: unknown type name 'HEAPSHADOW'
void (*delete_nth_inserted)( HEAPSHADOW*, int);
^~~~~~~~~~
main.c:23:19: error: unknown type name 'HEADSHADOW'
void* (*top)( HEADSHADOW* );
^~~~~~~~~~
main.c:24:1: warning: no semicolon at end of struct or union
};
^
main.c: In function 'push_up':
main.c:50:13: error: 'HEAP {aka struct HEAP}' has no member named 'swap'
this->swap(this, dad - 1, pos - 1 );
^~
main.c: In function 'push_down':
main.c:66:25: error: 'HEAP {aka struct HEAP}' has no member named 'swap'
this->swap( this, pos - 1, son1 - 1 );
^~
main.c:70:25: error: 'HEAP {aka struct HEAP}' has no member named 'swap'
this->swap( this, pos - 1, son2 - 1 );
^~
main.c:76:25: error: 'HEAP {aka struct HEAP}' has no member named 'swap'
this->swap( this, pos - 1, son1 - 1 );
^~
main.c: In function 'insert_element':
main.c:91:9: error: 'HEAP {aka struct HEAP}' has no member named 'push_up'
this->push_up( this, this->size );
^~
main.c: In function 'delete_nth_element':
main.c:96:9: error: 'HEAP {aka struct HEAP}' has no member named 'swap'
this->swap( this, this->location[which], this->size - 1 );
^~
main.c:100:13: error: 'HEAP {aka struct HEAP}' has no member named 'push_down'
this->push_down( this, send_down_index );
^~
main.c: In function 'init':
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !