Problem | descsort |
---|---|
User | SMILE |
Submission Time | 2024-04-27 09:58:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:14:2: error: expected initializer before ‘for’
14 | for(int i = 0;i<n;i++){
| ^~~
descsort.cpp:14:16: error: ‘i’ was not declared in this scope
14 | for(int i = 0;i<n;i++){
| ^
descsort.cpp:17:7: error: ‘arr’ was not declared in this scope
17 | sort(arr, arr + n, cmp);
| ^~~