g++-4.6 --version | head -n1 && g++-4.6 -std=c++98 -O3 -Wall -Wextra -pedantic-errors -lsupc++ main.cpp && ./a.out
g++-4.6 (Ubuntu/Linaro 4.6.4-1ubuntu1~12.04) 4.6.4
[+0.0,+0.0] (origin)
[+1.0,+1.0] [+2.0,+2.0] [+1.0,+3.0] [+1.0,+3.0] [+1.0,+4.0] [+2.0,+5.0] [+3.0,+6.0] [+2.0,+7.0]
[+1.0,+8.0] [+1.0,+9.0] [+1.0,+9.0] [+2.0,+9.0] [+2.0,+9.0] [+1.0,+10.0]
[+1.0,+10.0] (final)
[+3.0,+5.0] (origin)
[+3.0,+6.0] [+3.0,+6.0] [+4.0,+6.0] [+5.0,+5.0] [+6.0,+6.0] [+7.0,+6.0] [+8.0,+6.0] [+9.0,+7.0]
[+10.0,+6.0] [+11.0,+6.0] [+12.0,+7.0] [+12.0,+7.0] [+12.0,+8.0] [+12.0,+8.0] [+13.0,+8.0]
[+13.0,+8.0] (final)
[-3.0,+5.0] (origin)
[-2.0,+6.0] [-1.0,+7.0] [+0.0,+6.0] [+0.0,+7.0] [+1.0,+7.0] [+2.0,+8.0] [+2.0,+9.0] [+3.0,+10.0]
[+4.0,+11.0] [+5.0,+10.0] [+5.0,+10.0] [+6.0,+10.0]
[+6.0,+10.0] (final)
[-3.0,-5.0] (origin)
[-3.0,-5.0] [-3.0,-4.0] [-2.0,-4.0] [-1.0,-5.0] [+0.0,-4.0] [+1.0,-4.0] [+1.0,-3.0] [+2.0,-4.0]
[+3.0,-5.0] [+4.0,-5.0] [+4.0,-5.0] [+5.0,-5.0] [+5.0,-6.0] [+5.0,-7.0] [+5.0,-8.0] [+5.0,-8.0]
[+6.0,-7.0] [+6.0,-7.0] [+6.0,-8.0] [+6.0,-9.0] [+6.0,-9.0] [+7.0,-10.0]
[+7.0,-10.0] (final) |