0_0_16013751_31493.cpp: In function 'int main()': 0_0_16013751_31493.cpp:55:7: error: no match for 'operator[]' (operand types are 'Mat' and 'int') mat[x][y]++; ^