Problem | descsort |
---|---|
User | ToiletBrIcker |
Submission Time | 2024-06-19 09:31:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:9:22: error: ‘n’ was not declared in this scope
9 | for (int i = 0; i < n - 1; i++)
| ^
descsort.cpp:11:8: error: ‘arr’ was not declared in this scope; did you mean ‘Arr’?
11 | if (arr[j] < arr[j + 1]) swap(arr[j], arr[j + 1]);
| ^~~
| Arr
descsort.cpp:11:29: error: ‘swap’ was not declared in this scope
11 | if (arr[j] < arr[j + 1]) swap(arr[j], arr[j + 1]);
| ^~~~
descsort.cpp:11:29: note: suggested alternatives:
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from descsort.cpp:2:
/usr/include/c++/9/bits/regex.h:2029:5: note: ‘std::__cxx11::swap’
2029 | swap(match_results<_Bi_iter, _Alloc>& __lhs,
| ^~~~
In file included from /usr/include/c++/9/except