0_0_23034373_4019.cpp: In function 'int main()': 0_0_23034373_4019.cpp:24:11: error: 'M' was not declared in this scope cin>>n>>M; ^