Problem descsort
User undefinedcritter
Submission Time 2026-04-15 15:04:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:6:2: error: ‘vector’ was not declared in this scope
6 | vector<int> v;
| ^~~~~~
descsort.cpp:6:9: error: expected primary-expression before ‘int’
6 | vector<int> v;
| ^~~
descsort.cpp:8:35: error: ‘v’ was not declared in this scope
8 | for (int i=0;i<n;i++) {cin >> a; v.push_back(a);}
| ^
descsort.cpp:9:7: error: ‘v’ was not declared in this scope
9 | sort(v.begin(),v.end())
| ^
descsort.cpp:9:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
9 | sort(v.begin(),v.end())
| ^~~~
| short
descsort.cpp:10:15: erro