Runtime Error
/in/p2.cpp: In function 'int tree_max(tree_t)': /in/p2.cpp:268:21: warning: '~' on an expression of type bool [-Wbool-operation] if(~tree_isEmpty(tree_left(tree))) { ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /in/p2.cpp:268:21: note: did you mean to use logical not ('!')? /in/p2.cpp:272:21: warning: '~' on an expression of type bool [-Wbool-operation] if(~tree_isEmpty(tree_right(tree))) { ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /in/p2.cpp:272:21: note: did you mean to use logical not ('!')?
# | Status | Time Cost | Memory Cost |
---|---|---|---|
#1 | Accepted Detail | 5ms | 1.816 MiB |
#2 | Wrong Answer Detail | 2ms | 448.0 KiB |
#3 | Accepted Detail | 39ms | 4.367 MiB |
#4 | Accepted Detail | 76ms | 8.344 MiB |
#5 | Accepted Detail | 2ms | 448.0 KiB |
#6 | Accepted Detail | 1ms | 324.0 KiB |
#7 | Wrong Answer Detail | 1ms | 448.0 KiB |
#8 | Wrong Answer Detail | 1ms | 452.0 KiB |
#9 | Accepted Detail | 1ms | 404.0 KiB |
#10 | Accepted Detail | 1ms | 452.0 KiB |
#11 | Wrong Answer Detail | 1ms | 444.0 KiB |
#12 | Accepted Detail | 1ms | 320.0 KiB |
#13 | Accepted Detail | 1ms | 380.0 KiB |
#14 | Accepted Detail | 2ms | 448.0 KiB |
#15 | Accepted Detail | 2ms | 452.0 KiB |
#16 | Accepted Detail | 2ms | 384.0 KiB |
#17 | Accepted Detail | 39ms | 4.402 MiB |
#18 | Accepted Detail | 2ms | 452.0 KiB |
#19 | Runtime Error (-6) Detail | 2ms | 448.0 KiB |
#20 | Accepted Detail | 3ms | 452.0 KiB |
#21 | Accepted Detail | 1ms | 448.0 KiB |
#22 | Wrong Answer Detail | 2ms | 324.0 KiB |
Information
- Submit By
- Type
- Submission
- Homework
- Project 2
- Language
- C++
- Submit At
- 2024-10-30 17:00:44
- Judged At
- 2024-10-30 17:00:44
- Judged By
- Score
- 160
- Total Time
- 199ms
- Peak Memory
- 8.344 MiB