Borderou de evaluare (job #2671391)

Utilizator akumariaPatrascanu Andra-Maria akumaria Data 11 noiembrie 2020 23:53:39
Problema Arbori binari de cautare echilibrati Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 40

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
4135ms1179kbOK5
5126ms1179kbOK5
6137ms1282kbOK5
73ms131kbOK5
83ms131kbIncorect0
93ms131kbOK5
103ms131kbIncorect0
11131ms1048kbIncorect0
12115ms1048kbIncorect0
13131ms1048kbIncorect0
14123ms1048kbIncorect0
154ms131kbIncorect0
163ms131kbIncorect0
173ms131kbIncorect0
18183ms1966kbIncorect0
19156ms2228kbIncorect0
20171ms1966kbIncorect0
Punctaj total40

Ceva nu functioneaza?