Problem | sellingpotatoes |
---|---|
User | ETkilobyte |
Submission Time | 2024-12-03 21:30:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sellingpotatoes.cpp: In function ‘int main()’:
sellingpotatoes.cpp:8:19: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
8 | double long arr[a];
| ^
sellingpotatoes.cpp:8:19: error: could not convert ‘a’ from ‘long double’ to ‘long unsigned int’
sellingpotatoes.cpp:8:19: error: size of array ‘arr’ has non-integral type ‘long double’
sellingpotatoes.cpp:14:10: error: invalid types ‘long double [1][long double]’ for array subscript
14 | arr[i] = abs(c-314159);
| ^
sellingpotatoes.cpp:25:21: error: invalid operands of types ‘long double [1]’ and ‘long double’ to binary ‘operator+’
25 | sort(arr, arr + a, comp);
| ~~~ ^ ~
| | |
| | long double
| long double [1]
sellingpotatoes.cpp:29:19: error: invalid types ‘long double [1][long double]’ for ar