Variables to extract values from vector
int p , qq , k ; p = v . get ( i ) . get ( 0 ) ; qq = v . get ( i ) . get ( 1 ) ; k = v . get ( i ) . get ( 2 ) ; a [ p ] += k ; if ( qq + 1 <= n ) a [ qq + 1 ] -= k ; }