Declare 'prev' and 'this' outside the loop to avoid clang warning about 'prev' being...