towers.cpp:4:1: error: 'vector' does not name a type
4 | vector<int> arr;
| ^~~~~~
towers.cpp: In function 'void init(int, std::vector<int>)':
towers.cpp:8:5: error: 'arr' was not declared in this scope
8 | arr=H;
| ^~~
towers.cpp: In function 'int max_towers(int, int, int)':
towers.cpp:18:17: error: 'arr' was not declared in this scope
18 | int nmiva = arr[st];
| ^~~
towers.cpp:23:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
23 | nmiva=max(nmiva,arr[i]);
| ^~~
| std::max
In file included from /usr/include/c++/10/vector:60,
from towers.h:1,
from towers.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
towers.cpp:25:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
25 | else mava=max(mava,arr[i]);
| ^~~
| std::max
In file included from /usr/include/c++/10/vector:60,
from towers.h:1,
from towers.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
towers.cpp:32:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
32 | nmiva=max(nmiva,arr[i]);
| ^~~
| std::max
In file included from /usr/include/c++/10/vector:60,
from towers.h:1,
from towers.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
towers.cpp:34:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
34 | else mava=max(mava,arr[i]);
| ^~~
| std::max
In file included from /usr/include/c++/10/vector:60,
from towers.h:1,
from towers.cpp:1:
/usr/include/c++/10/bits/stl_algobase.h:300:5: note: 'std::max' declared here
300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~