Runtime Error

/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:414:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
 { if (depth(A)>depth(B))
   ^~
/in/p2.cpp:416: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 Runtime Error (-6) Detail 2ms 460.0 KiB
#2 Accepted Detail 2ms 456.0 KiB
#3 Runtime Error (-6) Detail 2ms 472.0 KiB
#4 Accepted Detail 2ms 384.0 KiB
#5 Accepted Detail 2ms 404.0 KiB
#6 Accepted Detail 1ms 448.0 KiB
#7 Wrong Answer Detail 2ms 384.0 KiB
#8 Accepted Detail 1ms 384.0 KiB
#9 Accepted Detail 1ms 388.0 KiB
#10 Wrong Answer Detail 1ms 332.0 KiB
#11 Accepted Detail 2ms 380.0 KiB
#12 Accepted Detail 1ms 392.0 KiB
#13 Accepted Detail 2ms 376.0 KiB
#14 Accepted Detail 56ms 8.371 MiB
#15 Accepted Detail 53ms 8.375 MiB

Information

Submit By
Type
Submission
Homework
Project Two: Recursion
Language
C++
Submit At
2019-06-15 00:01:31
Judged At
2019-06-15 00:01:31
Judged By
Score
110
Total Time
137ms
Peak Memory
8.375 MiB