Function to multiply x with large number stored in vector v . Result is stored in v .
void multiply ( vector < int > & v , int x ) { int carry = 0 , res ; int size = v . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) {