monster.cpp: In function 'std::vector<int> Solve(int)':
monster.cpp:17:5: error: 'sort' was not declared in this scope; did you mean 'short'?
17 | sort(ans.begin(), ans.end(), [&](int a, int b) {return v[a] < v[b];});
| ^~~~
| short
monster.cpp:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
22 | }
| ^
monster.cpp: At global scope:
monster.cpp:5:6: warning: '{anonymous}::example_variable' defined but not used [-Wunused-variable]
5 | bool example_variable;
| ^~~~~~~~~~~~~~~~