Borderou de evaluare (job #3228319)

Utilizator StefantimStefan Timisescu Stefantim Data 7 mai 2024 16:06:24
Problema Arbori binari de cautare echilibrati Status done
Runda arhiva-test Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:1: error: expected ',' or ';' before 'class' 7 | class Node { | ^~~~~ main.cpp:24:3: error: 'Node' does not name a type 24 | Node *header; | ^~~~ main.cpp:44:5: error: 'Node' does not name a type 44 | Node* createNode(unsigned long long key, short int level) { | ^~~~ main.cpp: In constructor 'SkipList::SkipList(short int, float)': main.cpp:31:7: error: 'header' was not declared in this scope 31 | header = new Node(-1, MAXLVL); | ^~~~~~ main.cpp:31:20: error: expected type-specifier before 'Node' 31 | header = new Node(-1, MAXLVL); | ^~~~ main.cpp: In member function 'void SkipList::insertElement(long long unsigned int)': main.cpp:50:7: error: 'Node' was not declared in this scope 50 | Node *current = header; | ^~~~ main.cpp:50:13: error: 'current' was not declared in this scope 50 | Node *current = header; | ^~~~~~~ main.cpp:50:23: error: 'header' was not declared in this scope 50 | Node *current = header; | ^~~~~~ main.cpp:52:13: error: 'update' was not declared in this scope 52 | Node *update[MAXLVL+1]; | ^~~~~~ main.cpp:53:37: error: expected primary-expression before ')' token 53 | memset(update, 0, sizeof(Node*)*(MAXLVL+1)); | ^ main.cpp:74:15: error: 'n' was not declared in this scope; did you mean 'yn'? 74 | Node* n = createNode(key, rlevel); | ^ | yn main.cpp:74:19: error: 'createNode' was not declared in this scope 74 | Node* n = createNode(key, rlevel); | ^~~~~~~~~~ main.cpp: In member function 'void SkipList::deleteElement(long long unsigned int)': main.cpp:85:7: error: 'Node' was not declared in this scope 85 | Node *current = header; | ^~~~ main.cpp:85:13: error: 'current' was not declared in this scope 85 | Node *current = header; | ^~~~~~~ main.cpp:85:23: error: 'header' was not declared in this scope 85 | Node *current = header; | ^~~~~~ main.cpp:87:13: error: 'update' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?