/ Test /

Record Detail

Accepted

/in/p2.cpp: In function 'bool tree_allPathSumGreater(tree_t, int)':
/in/p2.cpp:126:111: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
            ((!tree_isEmpty(tree_left(tree)) && tree_allPathSumGreater(tree_left(tree), sum - tree_elt(tree))) &&
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
            (!tree_isEmpty(tree_right(tree)) && tree_allPathSumGreater(tree_right(tree), sum - tree_elt(tree))) ||
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
# Status Time Cost Memory Cost
#1 Accepted 2ms 404.0 KiB
#2 Accepted 2ms 380.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 380.0 KiB
#6 Accepted 2ms 328.0 KiB
#7 Accepted 1ms 384.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 2ms 428.0 KiB
#11 Accepted 2ms 344.0 KiB
#12 Accepted 2ms 324.0 KiB
#13 Accepted 2ms 380.0 KiB
#14 Accepted 55ms 8.398 MiB
#15 Accepted 54ms 8.414 MiB

Information

Submit By
Type
Submission
Problem
Project Two: Recursion
Language
C++
Submit At
2019-06-01 01:36:43
Judged At
2019-06-01 02:12:30
Judged By
Score
150
Total Time
140ms
Peak Memory
8.414 MiB