Problem compleecode
User lty748
Submission Time 2024-05-25 23:23:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

compleecode.cpp: In function ‘std::vector<int> solve3(std::vector<int>)’:
compleecode.cpp:29:11: error: invalid conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type*’ {aka ‘int*’} to ‘long int’ [-fpermissive]
29 | #define x &v[0]
compleecode.cpp:44:16: note: in expansion of macro ‘x’
44 | for (long i = x; --i;)
| ^
compleecode.cpp:29:11: error: invalid conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type*’ {aka ‘int*’} to ‘long int’ [-fpermissive]
29 | #define x &v[0]
compleecode.cpp:45:34: note: in expansion of macro ‘x’
45 | v[i] < v[i - 1] && (z 1]), i = x);
| ^