Problem fractional_knapsack
User ATHY
Submission Time 2024-10-14 08:16:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractional_knapsack.cpp: In function ‘double fractionalKnapsack(long long int, Item*, long long int)’:
fractional_knapsack.cpp:16:10: error: ‘long long’ specified with ‘double’
16 | long long double ans = 0.0;
| ^~~~
fractional_knapsack.cpp: In function ‘int main()’:
fractional_knapsack.cpp:38:10: error: ‘long long’ specified with ‘double’
38 | long long double real = fractionalKnapsack(S, arr, no);
| ^~~~