Problem | fractional_knapsack |
---|---|
User | ATHY |
Submission Time | 2024-10-13 18:04:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fractional_knapsack.cpp: In function ‘bool cmp(std::pair<long long int, long long int>&, std::pair<long long int, long long int>&)’:
fractional_knapsack.cpp:6:66: error: expected ‘)’ before ‘;’ token
6 | return (1.0 * a.first / a.second) > (1.0 * b.first / b.second;
| ~ ^
| )