Problem barbecue
User chatdanai
Submission Time 2026-07-06 12:21:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

barbecue.cpp: In function ‘int main()’:
barbecue.cpp:11:19: error: ‘ll’ was not declared in this scope
11 | vector<vector<ll>> dishes(K + 1);
| ^~
barbecue.cpp:11:19: error: template argument 1 is invalid
barbecue.cpp:11:19: error: template argument 2 is invalid
barbecue.cpp:11:21: error: template argument 1 is invalid
11 | vector<vector<ll>> dishes(K + 1);
| ^~
barbecue.cpp:11:21: error: template argument 2 is invalid
barbecue.cpp:14:17: error: invalid types ‘int[long long int]’ for array subscript
14 | dishes[t].push_back(v);
| ^
barbecue.cpp:18:22: error: invalid types ‘int[long long int]’ for array subscript
18 | sort(dishes[t].begin(), dishes[t].end(), greater<ll>());
| ^
barbecue.cpp:18:41: error: invalid types ‘int[long long int]’ for array subscript
18 |