Problem | compleecode |
---|---|
User | YSH2020 |
Submission Time | 2025-05-06 12:48:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
compleecode.cpp: In function ‘std::vector<int> solve3(std::vector<int>)’:
compleecode.cpp:41:16: error: expected ‘;’ before ‘)’ token
41 | for (s i=p;i--) v[i]<v[i+1]&&swap(v[i],v[i+1]),i=p;
| ^
| ;
compleecode.cpp:41:35: error: could not convert ‘std::swap<int>((* & v.std::vector<int>::operator[](((std::vector<int>::size_type)i))), (* & v.std::vector<int>::operator[](((std::vector<int>::size_type)(((int)i) + 1)))))’ from ‘void’ to ‘bool’
41 | for (s i=p;i--) v[i]<v[i+1]&&swap(v[i],v[i+1]),i=p;
| ~~~~^~~~~~~~~~~~~