Problem | numericalstrings |
---|---|
User | yanganyi |
Submission Time | 2023-08-18 16:05:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
numericalstrings.cpp: In function ‘int main()’:
numericalstrings.cpp:15:7: error: expected ‘;’ before ‘sort’
15 | })
| ^
| ;
16 | sort(arr,arr+k,[](string a,string b){
| ~~~~
numericalstrings.cpp:18:6: error: expected primary-expression before ‘)’ token
18 | })
| ^
numericalstrings.cpp:19:18: error: ‘i’ was not declared in this scope
19 | for (int i=0;i<k;i++) cout<<arr[i];
| ^