Wrong Answer

/in/p2.cpp: In function 'opaque_list* chop(list_t, unsigned int)':
/in/p2.cpp:209:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (size(list)<n) {
         ~~~~~~~~~~^~
/in/p2.cpp: In function 'bool covered_by(tree_t, tree_t)':
/in/p2.cpp:426:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 { if (depth(A)>depth(B))
   ^~
/in/p2.cpp:428:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if (depth(A)==0)
     ^~
# Status Time Cost Memory Cost
#1 Accepted Detail 5ms 332.0 KiB
#2 Accepted Detail 3ms 396.0 KiB
#3 Accepted Detail 4ms 396.0 KiB
#4 Accepted Detail 4ms 404.0 KiB
#5 Accepted Detail 4ms 396.0 KiB
#6 Accepted Detail 4ms 432.0 KiB
#7 Wrong Answer Detail 3ms 376.0 KiB
#8 Accepted Detail 2ms 384.0 KiB
#9 Accepted Detail 2ms 388.0 KiB
#10 Accepted Detail 2ms 384.0 KiB
#11 Accepted Detail 2ms 376.0 KiB
#12 Accepted Detail 2ms 396.0 KiB
#13 Accepted Detail 2ms 384.0 KiB
#14 Accepted Detail 55ms 8.438 MiB
#15 Accepted Detail 54ms 8.371 MiB

Information

Submit By
Type
Submission
Homework
Project Two: Recursion
Language
C++
Submit At
2019-06-15 01:02:46
Judged At
2019-06-15 01:02:47
Judged By
Score
140
Total Time
156ms
Peak Memory
8.438 MiB