You should use posGlobalize to convert pairs *itSa=(seqNo,seqPos) into ints before accessing isa.