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