- compile, run, see that it works
- use valgrind : no issue
- use cppcheck, see the problem
- analyze the issue, and fix it
- bonus : understand why valgrind did not complain and how the standard deviation could be biased ( hint : use gdb and check addresses of v and diffs).