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