Problem | descsort |
---|---|
User | blob |
Submission Time | 2023-11-14 14:37:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
descsort.cpp: In function ‘int main()’:
descsort.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> n;
| ^~~
descsort.cpp:10:29: error: ‘greater’ was not declared in this scope
10 | sort(numbers, numbers + n, greater<int>());
| ^~~~~~~
descsort.cpp:10:37: error: expected primary-expression before ‘int’
10 | sort(numbers, numbers + n, greater<int>());
| ^~~
descsort.cpp:10:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
10 | sort(numbers, numbers + n, greater<int>());
| ^~~~
| short
descsort.cpp:12:9: error: ‘cout’ was not declared in this scope
12 | cout << numbers[i] << " ";
| ^~~~