Problem | descsort |
---|---|
User | Nathaniel |
Submission Time | 2025-03-10 18:00:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
descsort.cpp: In function ‘int main()’:
descsort.cpp:7:15: error: expected ‘;’ before ‘int’
7 | cin.tie(NULL)
| ^
| ;
8 |
9 | int n;
| ~~~
descsort.cpp:10:10: error: found ‘:’ in nested-name-specifier, expected ‘::’
10 | cin >> n:
| ^
| ::
descsort.cpp:10:9: error: ‘n’ has not been declared
10 | cin >> n:
| ^
descsort.cpp:12:9: error: expected primary-expression before ‘int’
12 | vector<int> bums(n);
| ^~~
descsort.cpp:13:22: error: ‘n’ was not declared in this scope
13 | for (int i = 0; i < n; i++) {
| ^
descsort.cpp:14:10: error: ‘nums’ was not declared in this scope
14 | cin >> nums[i];
| ^~~~
descsort.cpp:17:7: error: ‘nums’ was not declared in this scope
17 | sort(nums.rbegin(),nums.ren