0_0_35890131_26998.cpp: In function 'int main()': 0_0_35890131_26998.cpp:5:17: error: 'M' was not declared in this scope scanf("%d %d", &M,&n); ^