0_0_32501147_23479.cpp: In function 'int main()': 0_0_32501147_23479.cpp:73:21: error: expected ',' or ';' before 'printf' printf("(%d %d)--(%d %d)\n",i+1,j+1,r+1,c+1); ^