Main.cc: In function ‘int main()’: Main.cc:7:14: error: ‘m’ was not declared in this scope cin>>m[i][1]>>m[i][2]; ^ Main.cc:11:12: error: ‘m’ was not declared in this scope if(m[i][1]