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