0_0_14507991_14651.cpp: In function 'void work()': 0_0_14507991_14651.cpp:112:25: error: expected '}' at end of input pair <int ,int> last; ^