Fixed redeclaration of ‘int res’.