Borderou de evaluare (job #2607699)

Utilizator FLORENTIN-GIULIANO.DUMITRUDumitru Florentin Giuliano FLORENTIN-GIULIANO.DUMITRU Data 30 aprilie 2020 01:43:00
Problema Arbori binari de cautare echilibrati Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 45

Raport evaluator

Compilare: main.cpp: In constructor 'node::node(int, bool, node*, node*, node*)': main.cpp:9:9: warning: 'node::data' will be initialized after [-Wreorder] int data; ^~~~ main.cpp:8:11: warning: 'bool node::color' [-Wreorder] bool color; /// true = black, false = Red ^~~~~ main.cpp:12:5: warning: when initialized here [-Wreorder] node (int val, bool col, node * a, node * b, node * c) :data(val), color(col), left(a),right(b), parent(c){} ^~~~ main.cpp: In member function 'void RBT::repara_add(node*)': main.cpp:109:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if (!curent -> parent -> color) ^ main.cpp: In member function 'void RBT::add(int&)': main.cpp:165:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ main.cpp:170:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else' repara_add(nou); ^~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms131kbKilled by Signal 110
25ms131kbOK5
35ms131kbOK5
414ms262kbKilled by Signal 110
531ms524kbKilled by Signal 110
646ms524kbKilled by Signal 110
77ms131kbOK5
89ms131kbOK5
99ms131kbOK5
1010ms131kbOK5
1159ms262kbKilled by Signal 110
12137ms393kbKilled by Signal 110
1370ms262kbKilled by Signal 110
149ms131kbKilled by Signal 110
157ms131kbOK5
169ms131kbOK5
179ms131kbOK5
18183ms655kbKilled by Signal 110
19203ms786kbKilled by Signal 110
2065ms262kbKilled by Signal 110
Punctaj total45

Ceva nu functioneaza?