0_0_29977544_23915.cpp: In function 'int main()': 0_0_29977544_23915.cpp:35:6: error: expected ';' before 'scanf' scanf("%d%d",&n,&m); ^