Problem | descsort |
---|---|
User | sohjiaxian |
Submission Time | 2024-06-19 10:43:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin >> n;
| ^~~
descsort.cpp:8:19: error: ‘greater’ was not declared in this scope
8 | sort(arr, arr+n, greater<int>());
| ^~~~~~~
descsort.cpp:8:27: error: expected primary-expression before ‘int’
8 | sort(arr, arr+n, greater<int>());
| ^~~
descsort.cpp:8:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
8 | sort(arr, arr+n, greater<int>());
| ^~~~
| short
descsort.cpp:10:3: error: ‘cout’ was not declared in this scope
10 | cout << arr[i]<< " ";
| ^~~~