Problem duckhunt21
User Karax
Submission Time 2026-07-17 13:25:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt21.cpp: In function ‘void dfs(long long int, long long int, const std::vector<long long int>&, long long int, bool, long long int, std::vector<long long int>&)’:
duckhunt21.cpp:18:15: error: a function-definition is not allowed here before ‘{’ token
18 | signed main() {
| ^
duckhunt21.cpp:46:1: error: expected ‘}’ at end of input
46 | }
| ^
duckhunt21.cpp:5:108: note: to match this ‘{’
5 | void dfs(int index, int len, const vector<int>& arr, int sum, bool prevTaken, int M, vector<int>& results) {
| ^