Borderou de evaluare (job #2607695)

Utilizator FLORENTIN-GIULIANO.DUMITRUDumitru Florentin Giuliano FLORENTIN-GIULIANO.DUMITRU Data 30 aprilie 2020 01:38:02
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:164:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ main.cpp:169: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
540ms524kbKilled by Signal 110
639ms524kbKilled by Signal 110
79ms131kbOK5
89ms131kbOK5
99ms131kbOK5
109ms131kbOK5
1159ms262kbKilled by Signal 110
12130ms393kbKilled by Signal 110
1370ms262kbKilled by Signal 110
1411ms131kbKilled by Signal 110
159ms131kbOK5
169ms131kbOK5
179ms131kbOK5
18177ms655kbKilled by Signal 110
19222ms917kbKilled by Signal 110
2064ms262kbKilled by Signal 110
Punctaj total45

Ceva nu functioneaza?