Runtime Error

/in/p2.cpp: In function 'bool tree_hasMonotonicPath(tree_t)':
/in/p2.cpp:471:44: warning: the address of 'bool tree_increasing_helper(tree_t)' will never be NULL [-Waddress]
            return (tree_increasing_helper||tree_decreasing_helper);
                                            ^~~~~~~~~~~~~~~~~~~~~~
/in/p2.cpp:471:44: warning: the address of 'bool tree_decreasing_helper(tree_t)' will never be NULL [-Waddress]
/in/p2.cpp: In function 'int size_helper(list_t, int)':
/in/p2.cpp:125:5: warning: control reaches end of non-void function [-Wreturn-type]
     };
     ^
/in/p2.cpp: In function 'bool memberOf(list_t, int)':
/in/p2.cpp:145:5: warning: control reaches end of non-void function [-Wreturn-type]
     };
     ^
/in/p2.cpp: In function 'int dot_helper(list_t, list_t, int)':
/in/p2.cpp:156:5: warning: control reaches end of non-void function [-Wreturn-type]
     };
     ^
/in/p2.cpp: In function 'bool isArithmeticSequence(list_t)':
/in/p2.cpp:226:5: warning: control reaches end of non-void function [-Wreturn-type]
     };
     ^
/in/p2.cpp: In function 'opaque_list* filter_odd_helper(list_t, list_t)':
/in/p2.cpp:237:5: warning: control reaches end of non-void function [-Wreturn-type]
     };
     ^
/in/p2.cpp: In function 'opaque_list* filter_helper(list_t, list_t, bool (*)(int))':
/in/p2.cpp:258:5: warning: control reaches end of non-void function [-Wreturn-type]
     };
     ^
/in/p2.cpp: In function 'opaque_list* unique_helper(list_t, list_t, int)':
/in/p2.cpp:278:5: warning: control reaches end of non-void function [-Wreturn-type]
     };
     ^
/in/p2.cpp: In function 'opaque_list* chop_helper(list_t, int, list_t)':
/in/p2.cpp:319:5: warning: control reaches end of non-void function [-Wreturn-type]
     };
     ^
/in/p2.cpp: In function 'bool covered_by(tree_t, tree_t)':
/in/p2.cpp:508:5: warning: control reaches end of non-void function [-Wreturn-type]
     };
     ^
/in/p2.cpp: In function 'bool contained_by(tree_t, tree_t)':
/in/p2.cpp:522:5: warning: control reaches end of non-void function [-Wreturn-type]
     };
     ^
/in/p2.cpp: In function 'int tree_max(tree_t)':
/in/p2.cpp:396:9: warning: 'max_value' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (tree_elt(tree)>=max_value){
         ^~
# Status Time Cost Memory Cost
#1 Accepted Detail 2ms 424.0 KiB
#2 Accepted Detail 1ms 376.0 KiB
#3 Accepted Detail 2ms 376.0 KiB
#4 Accepted Detail 2ms 384.0 KiB
#5 Accepted Detail 2ms 404.0 KiB
#6 Accepted Detail 2ms 380.0 KiB
#7 Accepted Detail 3ms 576.0 KiB
#8 Accepted Detail 3ms 536.0 KiB
#9 Accepted Detail 3ms 496.0 KiB
#10 Accepted Detail 2ms 516.0 KiB
#11 Accepted Detail 1ms 388.0 KiB
#12 Accepted Detail 1ms 424.0 KiB
#13 Accepted Detail 2ms 380.0 KiB
#14 Accepted Detail 1ms 452.0 KiB
#15 Accepted Detail 2ms 384.0 KiB
#16 Accepted Detail 2ms 376.0 KiB
#17 Accepted Detail 2ms 404.0 KiB
#18 Accepted Detail 2ms 380.0 KiB
#19 Accepted Detail 1ms 384.0 KiB
#20 Accepted Detail 2ms 408.0 KiB
#21 Accepted Detail 2ms 384.0 KiB
#22 Accepted Detail 3ms 580.0 KiB
#23 Accepted Detail 2ms 520.0 KiB
#24 Accepted Detail 1ms 404.0 KiB
#25 Accepted Detail 1ms 392.0 KiB
#26 Accepted Detail 2ms 384.0 KiB
#27 Accepted Detail 2ms 384.0 KiB
#28 Accepted Detail 2ms 428.0 KiB
#29 Accepted Detail 2ms 436.0 KiB
#30 Accepted Detail 1ms 404.0 KiB
#31 Accepted Detail 1ms 384.0 KiB
#32 Accepted Detail 1ms 384.0 KiB
#33 Accepted Detail 3ms 532.0 KiB
#34 Accepted Detail 4ms 772.0 KiB
#35 Accepted Detail 3ms 572.0 KiB
#36 Accepted Detail 2ms 512.0 KiB
#37 Accepted Detail 2ms 508.0 KiB
#38 Accepted Detail 3ms 640.0 KiB
#39 Accepted Detail 2ms 384.0 KiB
#40 Accepted Detail 3ms 512.0 KiB
#41 Accepted Detail 1ms 392.0 KiB
#42 Accepted Detail 2ms 384.0 KiB
#43 Accepted Detail 3ms 384.0 KiB
#44 Accepted Detail 2ms 384.0 KiB
#45 Accepted Detail 2ms 380.0 KiB
#46 Accepted Detail 2ms 424.0 KiB
#47 Accepted Detail 2ms 440.0 KiB
#48 Accepted Detail 2ms 384.0 KiB
#49 Accepted Detail 2ms 372.0 KiB
#50 Accepted Detail 2ms 492.0 KiB
#51 Accepted Detail 4ms 640.0 KiB
#52 Accepted Detail 2ms 508.0 KiB
#53 Accepted Detail 2ms 384.0 KiB
#54 Accepted Detail 2ms 428.0 KiB
#55 Accepted Detail 2ms 392.0 KiB
#56 Accepted Detail 4ms 384.0 KiB
#57 Accepted Detail 3ms 388.0 KiB
#58 Accepted Detail 2ms 404.0 KiB
#59 Accepted Detail 2ms 380.0 KiB
#60 Accepted Detail 2ms 384.0 KiB
#61 Accepted Detail 2ms 352.0 KiB
#62 Accepted Detail 2ms 380.0 KiB
#63 Accepted Detail 2ms 424.0 KiB
#64 Accepted Detail 2ms 376.0 KiB
#65 Accepted Detail 2ms 412.0 KiB
#66 Accepted Detail 2ms 380.0 KiB
#67 Accepted Detail 2ms 384.0 KiB
#68 Accepted Detail 2ms 380.0 KiB
#69 Wrong Answer Detail 2ms 384.0 KiB
#70 Wrong Answer Detail 2ms 404.0 KiB
#71 Wrong Answer Detail 2ms 384.0 KiB
#72 Wrong Answer Detail 2ms 424.0 KiB
#73 Accepted Detail 2ms 352.0 KiB
#74 Accepted Detail 1ms 392.0 KiB
#75 Accepted Detail 1ms 392.0 KiB
#76 Accepted Detail 2ms 432.0 KiB
#77 Accepted Detail 2ms 400.0 KiB
#78 Accepted Detail 3ms 636.0 KiB
#79 Accepted Detail 3ms 740.0 KiB
#80 Accepted Detail 3ms 840.0 KiB
#81 Accepted Detail 3ms 768.0 KiB
#82 Accepted Detail 2ms 520.0 KiB
#83 Accepted Detail 2ms 420.0 KiB
#84 Accepted Detail 2ms 400.0 KiB
#85 Accepted Detail 2ms 384.0 KiB
#86 Accepted Detail 2ms 384.0 KiB
#87 Accepted Detail 2ms 352.0 KiB
#88 Accepted Detail 1ms 384.0 KiB
#89 Accepted Detail 2ms 384.0 KiB
#90 Accepted Detail 1ms 448.0 KiB
#91 Wrong Answer Detail 1ms 400.0 KiB
#92 Runtime Error (-6) Detail 2ms 464.0 KiB
#93 Wrong Answer Detail 1ms 448.0 KiB
#94 Wrong Answer Detail 2ms 384.0 KiB
#95 Wrong Answer Detail 2ms 508.0 KiB
#96 Accepted Detail 4ms 744.0 KiB
#97 Accepted Detail 2ms 400.0 KiB
#98 Accepted Detail 2ms 384.0 KiB
#99 Wrong Answer Detail 2ms 376.0 KiB
#100 Wrong Answer Detail 2ms 440.0 KiB
#101 Wrong Answer Detail 2ms 444.0 KiB
#102 Wrong Answer Detail 2ms 384.0 KiB
#103 Accepted Detail 8ms 1.207 MiB
#104 Accepted Detail 8ms 1.121 MiB
#105 Accepted Detail 2ms 432.0 KiB
#106 Accepted Detail 4ms 616.0 KiB
#107 Accepted Detail 2ms 400.0 KiB
#108 Accepted Detail 52ms 8.457 MiB
#109 Accepted Detail 53ms 8.406 MiB
#110 Wrong Answer Detail 1ms 392.0 KiB
#111 Accepted Detail 52ms 8.363 MiB
#112 Accepted Detail 55ms 8.453 MiB
#113 Wrong Answer Detail 2ms 376.0 KiB
#114 Accepted Detail 26ms 4.391 MiB
#115 Accepted Detail 26ms 4.441 MiB
#116 Wrong Answer Detail 2ms 392.0 KiB
#117 Wrong Answer Detail 36ms 4.449 MiB
#118 Wrong Answer Detail 2ms 376.0 KiB
#119 Wrong Answer Detail 3ms 640.0 KiB
#120 Accepted Detail 2ms 372.0 KiB
#121 Accepted Detail 45ms 7.016 MiB
#122 Wrong Answer Detail 2ms 384.0 KiB
#123 Wrong Answer Detail 3ms 540.0 KiB

Information

Submit By
Type
Submission
Homework
Project Two: Recursion
Language
C++
Submit At
2019-06-14 12:48:51
Judged At
2019-06-22 17:00:16
Judged By
Score
1020
Total Time
645ms
Peak Memory
8.457 MiB