Problem holiday
User dzuizz
Submission Time 2024-12-28 10:58:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

holiday.cpp:8:23: error: ‘vector’ has not been declared
8 | int rb(int i,int remD,vector<int>&v){
| ^~~~~~
holiday.cpp:8:29: error: expected ‘,’ or ‘...’ before ‘<’ token
8 | int rb(int i,int remD,vector<int>&v){
| ^
holiday.cpp: In function ‘long long int rb(long long int, long long int, int)’:
holiday.cpp:11:41: error: ‘v’ was not declared in this scope
11 | if(i>0)ret=std::max(ret,rb(i-1,remD-1,v));
| ^
holiday.cpp:12:43: error: ‘v’ was not declared in this scope
12 | if(i<N-1)ret=std::max(ret,rb(i+1,remD-1,v));
| ^
holiday.cpp:13:6: error: ‘v’ was not declared in this scope
13 | if(v[i]){
| ^
holiday.cpp: In function ‘long long int findMaxAttraction(long long int, long long int, long long int, long long int*)’:
holiday.cpp:2