Problem flybot
User RandomCtfNoob
Submission Time 2025-08-04 17:49:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flybot.cpp: In function ‘int main()’:
flybot.cpp:34:28: error: invalid initialization of reference of type ‘std::vector<std::vector<int> >&’ from expression of type ‘std::vector<std::vector<char> >’
34 | cout << checkpath(0,0,map,dp);
| ^~
flybot.cpp:6:82: note: in passing argument 4 of ‘int checkpath(int, int, const std::vector<std::vector<char> >&, std::vector<std::vector<int> >&)’
6 | int checkpath(int x, int y,const vector<vector<char>>& map, vector<vector<int>>& dp){
| ~~~~~~~~~~~~~~~~~~~~~^~