Problem compleecode
User AlphanumericUsername
Submission Time 2024-05-25 21:27:11
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:13: error: cannot convert ‘std::vector<int>::size’ from type ‘std::vector<int>::size_type (std::vector<int>::)() const noexcept’ {aka ‘long unsigned int (std::vector<int>::)() const noexcept’} to type ‘char’
29 | #define x v.size
| ^~~~
compleecode.cpp:44:16: note: in expansion of macro ‘x’
44 | for (char i = x; --i > 0;)
| ^
compleecode.cpp:29:13: error: cannot convert ‘std::vector<int>::size’ from type ‘std::vector<int>::size_type (std::vector<int>::)() const noexcept’ {aka ‘long unsigned int (std::vector<int>::)() const noexcept’} to type ‘char’
29 | #define x v.size
| ^~~~
compleecode.cpp:45:31: note: in expansion of macro ‘x’
45 | v[i] < v[i - 1] && (z), i = x);
| ^