Problem | descsort |
---|---|
User | Pandin |
Submission Time | 2024-06-19 10:19:07 |
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:8: error: ‘cin’ was not declared in this scope
5 | int n; cin >> n;
| ^~~
descsort.cpp:9:19: error: ‘greater’ was not declared in this scope
9 | sort(arr, arr + n,greater<int>());
| ^~~~~~~
descsort.cpp:9:27: error: expected primary-expression before ‘int’
9 | sort(arr, arr + n,greater<int>());
| ^~~
descsort.cpp:9:1: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
9 | sort(arr, arr + n,greater<int>());
| ^~~~
| short
descsort.cpp:11:5: error: ‘cout’ was not declared in this scope
11 | cout << arr[i] << " ";
| ^~~~