Segement tree

In this problem: Problem - A - Codeforces
I have two questions.

First, when i made my segment tree carry the multiplicaiton of the elements i could make operation 2, 3, 4 , 5, but couldn’t do first operation,

Second, how can i implement lazy propagation when i update different type of operations?