0_0_17311655_893.cpp: In function 'int main()': 0_0_17311655_893.cpp:119:33: error: 'p' was not declared in this scope while(scanf("%d%d%d",&n,&m,&p)&&n&&m&&p){ ^