Compiler output
prog.cpp: In function 'int main()':
prog.cpp:15:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<v.size(); ++i){
^
prog.cpp:26:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(j<v.size() && v[j] < v[j-1] && j<=i+9){
^
prog.cpp:16:14: warning: unused variable 'panic' [-Wunused-variable]
bool panic = true;
^
prog.cpp:17:13: warning: unused variable 'curr' [-Wunused-variable]
int curr = v[i];
^