0_0_17854865_16410.cpp: In function 'int main()': 0_0_17854865_16410.cpp:58:3: error: expected ';' before 'for' for(int i = 0; i < M; i++) { ^ 0_0_17854865_16410.cpp:58:18: error: 'i' was not declared in this scope for(int i = 0; i < M; i++) { ^