Problem | lengthsort |
---|---|
User | c00dingstudygolden |
Submission Time | 2024-05-22 12:23:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp: In function ‘std::vector<std::__cxx11::basic_string<char> > bubbleSort(std::vector<std::__cxx11::basic_string<char> >)’:
lengthsort.cpp:11:39: error: ‘class std::vector<std::__cxx11::basic_string<char> >’ has no member named ‘length’
11 | for (int i = 0; i < sortdList.length() - 1; i++) {
| ^~~~~~
lengthsort.cpp:13:51: error: expected ‘;’ before ‘check’
13 | swap(sortdList[i], sortdList[i+1])
| ^
| ;
14 | check = true;
| ~~~~~