test.cpp: In function 'void resoldre_terreny(int, int (&)[7][7], int (&)[7][7])':
test.cpp:66: error: 'i' was not declared in this scope
test.cpp:68: error: 'm' was not declared in this scope
test.cpp:69: error: 'n' was not declared in this scope
test.cpp: At global scope:
test.cpp:93: error: expected constructor, destructor, or type conversion before '(' token
test.cpp:94: error: expected declaration before '}' token