sequence.cpp:2:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
2 | #import std
| ^~~~~~
sequence.cpp:2:9: error: #import expects "FILENAME" or <FILENAME>
2 | #import std
| ^~~
sequence.cpp: In function 'int sequence(int, std::vector<int>)':
sequence.cpp:43:32: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
43 | p = max({p,fr[m1],fr[m2]});
| ~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/vector:62,
from sequence.h:1,
from sequence.cpp:1:
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
257 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed:
sequence.cpp:43:32: note: candidate expects 2 arguments, 1 provided
43 | p = max({p,fr[m1],fr[m2]});
| ~~~^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed:
sequence.cpp:43:32: note: candidate expects 3 arguments, 1 provided
43 | p = max({p,fr[m1],fr[m2]});
| ~~~^~~~~~~~~~~~~~~~~~~