Problem sort
User Daddy
Submission Time 2023-12-09 10:27:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:20:8: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘int’ in assignment
20 | a[i]=s;
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
sort.cpp:21:10: error: ‘strArray’ was not declared in this scope; did you mean ‘strfry’?
21 | sort(strArray, strArray + arrSize, myownawesomesort);
| ^~~~~~~~
| strfry
sort.cpp:21:31: error: ‘arrSize’ was not declared in this scope
21 | sort(strArray, strArray + arrSize, myownawesomesort);
| ^~~~~~~
sort.cpp:25:1: error: expected ‘}’ at end of input
25 | }
| ^
sort.cpp:10:13: note: to match this ‘{’
10 | }int main() {
| ^