Problem | descsort |
---|---|
User | nothing |
Submission Time | 2023-07-07 17:52:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp:2:5: error: ‘cin’ does not name a type
2 | cin >> n;
| ^~~
descsort.cpp:3:14: error: array bound is not an integer constant before ‘]’ token
3 | int arr[n];
| ^
descsort.cpp:4:5: error: expected unqualified-id before ‘for’
4 | for (int i = 0; i < n; i++)
| ^~~
descsort.cpp:4:21: error: ‘i’ does not name a type
4 | for (int i = 0; i < n; i++)
| ^
descsort.cpp:4:28: error: ‘i’ does not name a type
4 | for (int i = 0; i < n; i++)
| ^
descsort.cpp:9:9: error: expected constructor, destructor, or type conversion before ‘(’ token
9 | sort(arr, arr + n, [](int x, int y) {return x > y; });
| ^
descsort.cpp:9:57: error: expected unqualified-id before ‘)’ token
9 | sort(arr, arr + n, [](int x, int y) {return x > y; });
|