Problem kfc
User asbx
Submission Time 2023-11-08 15:46:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

kfc.cpp: In function ‘int main()’:
kfc.cpp:94:16: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
94 | long double D[n],S[n],W[n];
| ^
kfc.cpp:94:16: error: could not convert ‘n’ from ‘long double’ to ‘long unsigned int’
kfc.cpp:94:16: error: size of array ‘D’ has non-integral type ‘long double’
kfc.cpp:94:21: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
94 | long double D[n],S[n],W[n];
| ^
kfc.cpp:94:21: error: could not convert ‘n’ from ‘long double’ to ‘long unsigned int’
kfc.cpp:94:21: error: size of array ‘S’ has non-integral type ‘long double’
kfc.cpp:94:26: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
94 | long double D[n],S[n],W[n];
| ^
kfc.cpp:94:26: error: could not convert ‘n’ from ‘long double’ to ‘l