0_0_38705655_21337.cpp: In function 'void solve()': 0_0_38705655_21337.cpp:6:9: error: 'M' was not declared in this scope 6 | cin>>n>>M; | ^