Runtime Error

/in/p2.cpp: In function 'opaque_list* chop(list_t, unsigned int)':
/in/p2.cpp:210: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:412:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 { if (depth(A)>depth(B))
   ^~
/in/p2.cpp:414: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 2ms 424.0 KiB
#2 Accepted Detail 2ms 376.0 KiB
#3 Runtime Error (-6) Detail 2ms 464.0 KiB
#4 Accepted Detail 2ms 376.0 KiB
#5 Accepted Detail 2ms 380.0 KiB
#6 Accepted Detail 2ms 384.0 KiB
#7 Wrong Answer Detail 2ms 380.0 KiB
#8 Accepted Detail 1ms 384.0 KiB
#9 Accepted Detail 2ms 384.0 KiB
#10 Accepted Detail 2ms 448.0 KiB
#11 Accepted Detail 2ms 320.0 KiB
#12 Accepted Detail 2ms 384.0 KiB
#13 Accepted Detail 2ms 380.0 KiB
#14 Accepted Detail 54ms 8.434 MiB
#15 Accepted Detail 57ms 8.359 MiB

Information

Submit By
Type
Submission
Homework
Project Two: Recursion
Language
C++
Submit At
2019-06-14 22:29:18
Judged At
2019-06-14 22:29:18
Judged By
Score
130
Total Time
142ms
Peak Memory
8.434 MiB