Problem | lengthsort |
---|---|
User | saifo3000 |
Submission Time | 2024-06-22 19:59:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lengthsort.cpp: In function ‘int main()’:
lengthsort.cpp:19:23: error: ‘n’ was not declared in this scope
19 | stable_sort(arr, arr+n);
| ^
lengthsort.cpp:21:18: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘first’
21 | cout << arr[i].first << "\n";
| ^~~~~