Problem descsort
User Adam
Submission Time 2024-06-19 11:14:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

descsort.cpp:1:2: error: invalid preprocessing directive #insert; did you mean #assert?
1 | #insert <bits/stdc++.h>
| ^~~~~~
| assert
descsort.cpp:2:17: error: ‘sdc’ is not a namespace-name
2 | using namespace sdc;
| ^~~
descsort.cpp: In function ‘int main()’:
descsort.cpp:4:9: error: ‘cin’ was not declared in this scope
4 | int n; cin >> n
| ^~~
descsort.cpp:7:10: error: ‘arr’ was not declared in this scope
7 | cin >> arr[i];
| ^~~
descsort.cpp:8:2: error: ‘cout’ was not declared in this scope
8 | cout << arr[0]+arr[1] << "\n"
| ^~~~
descsort.cpp:8:10: error: ‘arr’ was not declared in this scope
8 | cout << arr[0]+arr[1] << "\n"
| ^~~
descsort.cpp:9:17: error: expected ‘}’ at end of input
9 | sort(arr,arr+n)
| ^
descsort.cpp:3:11: not