0_0_33258425_32747.cpp: In function 'int main()': 0_0_33258425_32747.cpp:70:30: error: expected '}' at end of input scanf("%d%d", &N, &M); ^ 0_0_33258425_32747.cpp:70:30: error: expected '}' at end of input