koala.cpp: In function 'void allValues(int, int, int*)':
koala.cpp:86:5: error: 'vector' was not declared in this scope
86 | vector<int>pos(n);
| ^~~~~~
koala.cpp:86:5: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from koala.cpp:2:
/usr/include/c++/11/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from koala.cpp:2:
/usr/include/c++/11/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
koala.cpp:86:12: error: expected primary-expression before 'int'
86 | vector<int>pos(n);
| ^~~
koala.cpp:88:9: error: 'pos' was not declared in this scope; did you mean 'pow'?
88 | pos[i]=i+1;
| ^~~
| pow
koala.cpp:90:10: error: 'pos' was not declared in this scope; did you mean 'pow'?
90 | sort(pos.begin(),pos.end(),cmp);
| ^~~
| pow
koala.cpp:90:5: error: 'sort' was not declared in this scope
90 | sort(pos.begin(),pos.end(),cmp);
| ^~~~
koala.cpp:90:5: note: suggested alternatives:
In file included from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from koala.cpp:2:
/usr/include/c++/11/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort'
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
In file included from /usr/include/c++/11/algorithm:64,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from koala.cpp:2:
/usr/include/c++/11/bits/ranges_algo.h:1834:30: note: 'std::ranges::sort'
1834 | inline constexpr __sort_fn sort{};
| ^~~~
koala.cpp: In function 'int minValue(int, int)':
koala.cpp:20:1: warning: control reaches end of non-void function [-Wreturn-type]
20 | }
| ^