0_0_15032037_18242.cpp: In function 'int main()': 0_0_15032037_18242.cpp:54:25: error: 'x' was not declared in this scope scanf("%d%d%d",&n,&m,&x); ^