Pagini recente » Borderou de evaluare (job #40828) | Borderou de evaluare (job #522626) | Borderou de evaluare (job #3186226) | Borderou de evaluare (job #2973064) | Borderou de evaluare (job #2671391)
Borderou de evaluare (job #2671391)
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 |
1 | 2ms | 131kb | OK | 5 |
2 | 3ms | 131kb | OK | 5 |
3 | 3ms | 131kb | OK | 5 |
4 | 135ms | 1179kb | OK | 5 |
5 | 126ms | 1179kb | OK | 5 |
6 | 137ms | 1282kb | OK | 5 |
7 | 3ms | 131kb | OK | 5 |
8 | 3ms | 131kb | Incorect | 0 |
9 | 3ms | 131kb | OK | 5 |
10 | 3ms | 131kb | Incorect | 0 |
11 | 131ms | 1048kb | Incorect | 0 |
12 | 115ms | 1048kb | Incorect | 0 |
13 | 131ms | 1048kb | Incorect | 0 |
14 | 123ms | 1048kb | Incorect | 0 |
15 | 4ms | 131kb | Incorect | 0 |
16 | 3ms | 131kb | Incorect | 0 |
17 | 3ms | 131kb | Incorect | 0 |
18 | 183ms | 1966kb | Incorect | 0 |
19 | 156ms | 2228kb | Incorect | 0 |
20 | 171ms | 1966kb | Incorect | 0 |
Punctaj total | 40 |