Problem | swapsort |
---|---|
User | RyanGao |
Submission Time | 2022-12-31 09:24:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapsort.cpp:11:19: error: empty character constant
11 | items[index] = '';
| ^~
swapsort.cpp:52:32: error: empty character constant
52 | unorderedItems[leftIndex] = '';
| ^~
swapsort.cpp:61:33: error: empty character constant
61 | unorderedItems[rightIndex] = '';
| ^~
swapsort.cpp: In function ‘int main()’:
swapsort.cpp:47:42: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
47 | if (unorderedItems.find(leftIndex) != m.end()) {
| ^
| tm
swapsort.cpp:56:43: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
56 | if (unorderedItems.find(rightIndex) != m.end()) {
| ^
| tm