0_0_33939400_9787.cpp: In function 'int main()': 0_0_33939400_9787.cpp:74:41: error: expected primary-expression before ')' token while(scanf("%d%d",&n,&m) && n && m)){ ^