GDB Output
unknown
plain_text
4 years ago
1.2 kB
6
Indexable
Breakpoint 1, main (argc=2, argv=0x7fffffffdda8) at problem_solver_3.cpp:79 79 auto& theProblem = problems[i]; (gdb) c Continuing. Starting the function... Starting the loop... Current tower is: 9 For Loop finished... Starting to pop from stack of size 1... Popping 9 The current spot is: 19 The number of transmitters is: 1 Breakpoint 2, MinStations (roadLength=18, range=10, towers=std::vector of length 2, capacity 2 = {...}) at student_code_3.h:107 107 std::cout << "\n" << "\n" << "\n"; (gdb) step 108 return count; /* your answer */; (gdb) step 58 std::stack<int> tower_stack; (gdb) step std::stack<int, std::deque<int, std::allocator<int> > >::~stack (this=0x7fffffffda90, __in_chrg=<optimized out>) at /usr/include/c++/9/bits/stl_stack.h:99 99 class stack (gdb) step std::deque<int, std::allocator<int> >::~deque (this=0x0, __in_chrg=<optimized out>) at /usr/include/c++/9/bits/stl_deque.h:1071 1071 ~deque() (gdb) c Continuing. munmap_chunk(): invalid pointer Program received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
Editor is loading...