0_0_29638683_24253.cpp: In function 'void solve()': 0_0_29638683_24253.cpp:57:25: error: 'sort' was not declared in this scope sort(q.begin(), q.end()); ^