koala.cpp: In function 'int maxValue(int, int)':
koala.cpp:43:1: warning: no return statement in function returning non-void [-Wreturn-type]
43 | }
| ^
koala.cpp: In function 'void allValues(int, int, int*)':
koala.cpp:81:5: error: 'vector' was not declared in this scope
81 | vector<int>pos(n);
| ^~~~~~
koala.cpp:81:12: error: expected primary-expression before 'int'
81 | vector<int>pos(n);
| ^~~
koala.cpp:83:9: error: 'pos' was not declared in this scope
83 | pos[i]=i+1;
| ^~~
koala.cpp:85:10: error: 'pos' was not declared in this scope
85 | sort(pos.begin(),pos.end(),cmp);
| ^~~
koala.cpp:85:5: error: 'sort' was not declared in this scope; did you mean 'short'?
85 | sort(pos.begin(),pos.end(),cmp);
| ^~~~
| short
koala.cpp: In function 'int minValue(int, int)':
koala.cpp:20:1: warning: control reaches end of non-void function [-Wreturn-type]
20 | }
| ^