Runtime Error
/in/p2.cpp: In function 'int tree_max(tree_t)': /in/p2.cpp:266:21: warning: '~' on an expression of type bool [-Wbool-operation] if(~tree_isEmpty(tree_left(tree))) { ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /in/p2.cpp:266:21: note: did you mean to use logical not ('!')? /in/p2.cpp:270:21: warning: '~' on an expression of type bool [-Wbool-operation] if(~tree_isEmpty(tree_right(tree))) { ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /in/p2.cpp:270:21: note: did you mean to use logical not ('!')?
# | Status | Time Cost | Memory Cost |
---|---|---|---|
#1 | Accepted Detail | 7ms | 1.699 MiB |
#2 | Wrong Answer Detail | 2ms | 332.0 KiB |
#3 | Accepted Detail | 44ms | 4.438 MiB |
#4 | Accepted Detail | 99ms | 8.395 MiB |
#5 | Accepted Detail | 1ms | 460.0 KiB |
#6 | Accepted Detail | 1ms | 456.0 KiB |
#7 | Wrong Answer Detail | 2ms | 384.0 KiB |
#8 | Wrong Answer Detail | 2ms | 388.0 KiB |
#9 | Accepted Detail | 2ms | 448.0 KiB |
#10 | Accepted Detail | 2ms | 424.0 KiB |
#11 | Accepted Detail | 2ms | 460.0 KiB |
#12 | Accepted Detail | 3ms | 456.0 KiB |
#13 | Accepted Detail | 2ms | 332.0 KiB |
#14 | Accepted Detail | 1ms | 460.0 KiB |
#15 | Accepted Detail | 2ms | 456.0 KiB |
#16 | Accepted Detail | 1ms | 328.0 KiB |
#17 | Accepted Detail | 40ms | 4.328 MiB |
#18 | Accepted Detail | 1ms | 332.0 KiB |
#19 | Runtime Error (-6) Detail | 2ms | 460.0 KiB |
#20 | Accepted Detail | 2ms | 328.0 KiB |
#21 | Accepted Detail | 2ms | 332.0 KiB |
#22 | Wrong Answer Detail | 2ms | 456.0 KiB |
Information
- Submit By
- Type
- Submission
- Homework
- Project 2
- Language
- C++
- Submit At
- 2024-10-30 17:08:55
- Judged At
- 2024-10-30 17:08:55
- Judged By
- Score
- 170
- Total Time
- 232ms
- Peak Memory
- 8.395 MiB