Problem sort
User kvankok
Submission Time 2024-06-26 17:00:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sort.cpp: In function ‘int main()’:
sort.cpp:16:11: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
16 | ll arr [n];
| ^
sort.cpp:16:11: error: could not convert ‘n’ from ‘long double’ to ‘long unsigned int’
sort.cpp:16:11: error: size of array ‘arr’ has non-integral type ‘long double’
sort.cpp:18:17: error: invalid types ‘long double [1][long double]’ for array subscript
18 | cin >> arr[x];
| ^
sort.cpp:20:17: error: invalid operands of types ‘long double [1]’ and ‘long double’ to binary ‘operator+’
20 | sort (arr, arr+n);
| ~~~^~
| | |
| | long double
| long double [1]
sort.cpp:22:18: error: invalid types ‘long double [1][long double]’ for array subscript
22 | cout << arr[x] << " ";
| ^