Problem sort
User shashi93
Submission Time 2024-03-14 09:39:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:6:13: error: ‘u_int128_t’ was not declared in this scope; did you mean ‘u_int32_t’?
6 | #define int u_int128_t
| ^~~~~~~~~~
sort.cpp:11:2: note: in expansion of macro ‘int’
11 | int n;
| ^~~
sort.cpp:12:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
12 | cin >> n;
| ^
| yn
sort.cpp:13:6: error: expected ‘;’ before ‘arr’
13 | int arr[n];
| ^~~
sort.cpp:14:11: error: expected ‘;’ before ‘i’
14 | for (int i = 0; i < n; i++){
| ^
sort.cpp:14:18: error: ‘i’ was not declared in this scope
14 | for (int i = 0; i < n; i++){
| ^
sort.cpp:15:10: error: ‘arr’ was not declared in this scope
15 | cin >> arr[i];
| ^~~
sort.cpp:17:7: error: ‘arr’ was not declared in this scope
17 | sort(arr, arr+n);