Borderou de evaluare (job #2746553)

Utilizator MadalinaKopaczMadalina Kopacz MadalinaKopacz Data 28 aprilie 2021 00:42:26
Problema Arbori binari de cautare echilibrati Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: 'node' does not name a type node* deleteValue(node* root, int val) // returns the new root after removing the val ^~~~ main.cpp:24:1: error: 'node' does not name a type node* search(node* root, int val) ^~~~ main.cpp:29:12: error: variable or field 'Print' declared void void Print(node* root, int x, int y) ^~~~ main.cpp:29:12: error: 'node' was not declared in this scope main.cpp:29:18: error: 'root' was not declared in this scope void Print(node* root, int x, int y) ^~~~ main.cpp:29:24: error: expected primary-expression before 'int' void Print(node* root, int x, int y) ^~~ main.cpp:29:31: error: expected primary-expression before 'int' void Print(node* root, int x, int y) ^~~ main.cpp: In function 'int main()': main.cpp:44:5: error: 'fin' was not declared in this scope fin >> N; ^~~ main.cpp:45:5: error: 'node' was not declared in this scope node* root = NULL; ^~~~ main.cpp:45:11: error: 'root' was not declared in this scope node* root = NULL; ^~~~ main.cpp:45:18: error: 'NULL' was not declared in this scope node* root = NULL; ^~~~ main.cpp:49:45: error: 'insert' was not declared in this scope if (task == 1) root = insert(root, x); ^ main.cpp:50:50: error: 'deleteValue' was not declared in this scope if (task == 2) root = deleteValue(root, x); ^ main.cpp:53:31: error: 'fout' was not declared in this scope if (root == NULL) fout << 0 << "\n"; ^~~~ main.cpp:56:38: error: 'search' was not declared in this scope root = search(root, x); ^ main.cpp:57:54: error: 'fout' was not declared in this scope if (root == NULL || root->val != x) fout << 0 << "\n"; ^~~~ main.cpp:58:37: error: 'fout' was not declared in this scope if (root->val == x) fout << 1 << "\n"; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?