error: format '%d' expects type 'int', but argument 4 has type 'OFFSET'