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