Problem barbecue
User MegaG
Submission Time 2026-01-05 17:17:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

barbecue.cpp: In function ‘int main()’:
barbecue.cpp:25:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
25 | sort(v.begin(), v.end(), greater<int>());
| ^~~~
| qsort
barbecue.cpp:28:12: error: ‘floor’ was not declared in this scope
28 | total += floor(d/v[i]);
| ^~~~~