Borderou de evaluare (job #2672043)

Utilizator akumariaPatrascanu Andra-Maria akumaria Data 12 noiembrie 2020 23:07:43
Problema Arbori binari de cautare echilibrati Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'bool deleteNode(int, node*)': main.cpp:96:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (current_node == 0) ^~ main.cpp:99:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if(current_node->x == x) { ^~ main.cpp:126:46: warning: variable 'parentSon' set but not used [-Wunused-but-set-variable] node * nextSon = current_node->rightSon, * parentSon = current_node; ^~~~~~~~~ main.cpp: In function 'bool find(int, node*)': main.cpp:163:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(current_node->leftSon == 0 && current_node->rightSon == 0) ^~ main.cpp:166:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if (current_node->x > x) ^~ main.cpp: In function 'int findMin(int, node*)': main.cpp:174:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (current_node == 0) ^~ main.cpp:177:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if (current_node->x == x) ^~ main.cpp: In function 'int findMax(int, node*)': main.cpp:197:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (current_node == 0) ^~ main.cpp:200:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if (current_node->x == x) ^~ main.cpp: In function 'int main()': main.cpp:245:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("abce.in", "r", stdin); ^ main.cpp:246:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("abce.out", "w", stdout); ^ main.cpp:249:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:251:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &t, &x); ^ main.cpp:272:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK5
23ms131kbOK5
33ms131kbOK5
4141ms1179kbOK5
5132ms1179kbOK5
6134ms1179kbOK5
73ms131kbOK5
83ms131kbOK5
93ms131kbOK5
103ms131kbOK5
11129ms1179kbOK5
12128ms1048kbOK5
13128ms1048kbOK5
14119ms1048kbOK5
153ms131kbOK5
163ms131kbOK5
173ms131kbOK5
18179ms1966kbOK5
19184ms2097kbOK5
20159ms1966kbOK5
Punctaj total100

Ceva nu functioneaza?