0_0_30244440_31597.cpp: In function 'void solve()': 0_0_30244440_31597.cpp:178:29: error: expected '}' at end of input scanf ( "%d%d" , &n , &m ) ; ^