Borderou de evaluare (job #3166036)

Utilizator StefannnnnStefan Stefannnnn Data 7 noiembrie 2023 16:18:36
Problema Xor Max Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int max_xor(node*, int)': main.cpp:46:41: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 46 | } else if(curr->f[(ok == 1 ? ok = 0 : ok = 1)] != NULL) { | ~~~^~~ main.cpp:46:50: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 46 | } else if(curr->f[(ok == 1 ? ok = 0 : ok = 1)] != NULL) { | ~~~^~~ main.cpp: In function 'int main()': main.cpp:92:11: warning: unused variable 'curr' [-Wunused-variable] 92 | node *curr = root; | ^~~~ main.cpp:91:39: warning: 'r' may be used uninitialized [-Wmaybe-uninitialized] 91 | cout << ans << " " << l << " " << r; | ^ main.cpp:69:21: note: 'r' was declared here 69 | int ans = 0, l, r; | ^ main.cpp:91:32: warning: 'l' may be used uninitialized [-Wmaybe-uninitialized] 91 | cout << ans << " " << l << " " << r; | ^~~ main.cpp:69:18: note: 'l' was declared here 69 | int ans = 0, l, r; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbTrebuie sa mai muncesti daca vrei premiu ca Ionel00
20ms303kbTrebuie sa mai muncesti daca vrei premiu ca Ionel00
33ms303kbTrebuie sa mai muncesti daca vrei premiu ca Ionel00
469ms3178kbTrebuie sa mai muncesti daca vrei premiu ca Ionel00
5129ms14782kbTime limit exceeded00
6129ms18399kbTime limit exceeded00
7128ms18317kbTime limit exceeded00
8129ms18276kbTime limit exceeded00
9129ms819kbTime limit exceeded00
10129ms557kbTime limit exceeded00
110ms303kbTrebuie sa mai muncesti daca vrei premiu ca Ionel00
120ms303kbTrebuie sa mai muncesti daca vrei premiu ca Ionel00
133ms303kbTrebuie sa mai muncesti daca vrei premiu ca Ionel00
1469ms2654kbTrebuie sa mai muncesti daca vrei premiu ca Ionel00
15129ms2879kbTime limit exceeded00
16128ms3010kbTime limit exceeded0
17129ms11190kbTime limit exceeded0
18129ms11132kbTime limit exceeded00
19129ms819kbTime limit exceeded0
20128ms647kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?