foo.cc:27:23: error: ISO C++ forbids declaration of 'lowbit' with no type [-fpermissive]
27 | inline static lowbit(int x) {return x & (-x);}
| ^~~~~~
foo.cc: In function 'int main()':
foo.cc:48:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
48 | std::sort(v.begin(), v.end(), std::greater<>());
| ^~~~
| qsort
foo.cc:48:52: error: wrong number of template arguments (0, should be 1)
48 | std::sort(v.begin(), v.end(), std::greater<>());
| ^
In file included from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/string:48,
from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/locale_classes.h:40,
from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/ios_base.h:41,
from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/ios:42,
from /nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/ostream:38,
from iostream:39:
/nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/bits/stl_function.h:393:12: note: provided for 'template<class _Tp> struct std::greater'
393 | struct greater : public binary_function<_Tp, _Tp, bool>
| ^~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务