0_0_30043154_17346.cpp: In function 'int chain_query(int, int)': 0_0_30043154_17346.cpp:148:9: error: expected '}' at end of input --ans; ^ 0_0_30043154_17346.cpp:148:9: error: expected '}' at end of input