Problem basketball
User liuyueyang0510
Submission Time 2024-06-11 08:54:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

basketball.cpp: In function ‘int main()’:
basketball.cpp:44:22: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long int>’
44 | if (check(m, balls, hoops))
| ^~~~~
basketball.cpp:6:31: note: in passing argument 2 of ‘bool check(long long int, std::vector<int>&, std::vector<std::pair<int, int> >&)’
6 | bool check(ll p, vector<int>& balls, vector<pair<int, int>>& hoops) {
| ~~~~~~~~~~~~~^~~~~