0_0_15015531_31858.cpp: In function 'int main()': 0_0_15015531_31858.cpp:45:19: error: 'x' was not declared in this scope scanf("%d%d",&x,&M); ^