0_0_35897123_14527.cpp: In function 'int main()': 0_0_35897123_14527.cpp:50:14: error: 'i' was not declared in this scope for (i = mon[m]; i <= max; i++) ^