Problem collectmushrooms5
User PlayVoltz
Submission Time 2023-12-04 14:44:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms5.cpp: In member function ‘bool customsort::operator()(farm, farm)’:
collectmushrooms5.cpp:18:36: error: ‘w’ was not declared in this scope
18 | if (a.val*b.t==b.val*a.t)return (w?vect[a.id].second:vect[a.id].first)<(w?vect[b.id].second:vect[b.id].first);
| ^