Problem fractional_knapsack
User haydendoo
Submission Time 2023-02-07 14:50:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fractional_knapsack.cpp: In function ‘int main()’:
fractional_knapsack.cpp:19:12: error: request for member ‘begin’ in ‘a’, which is of non-class type ‘std::pair<long long int, long long int> [n]’
19 | sort(a.begin(), a.end(), cmp);
| ^~~~~
fractional_knapsack.cpp:19:23: error: request for member ‘end’ in ‘a’, which is of non-class type ‘std::pair<long long int, long long int> [n]’
19 | sort(a.begin(), a.end(), cmp);
| ^~~