0_0_21722489_25820.cpp: In function 'void update(int, int, int)': 0_0_21722489_25820.cpp:11:58: error: 'mod' was not declared in this scope tmp[i + j * x] = (tmp[i + j * x] + ans[i]) % mod ; ^