Problem | flybot |
---|---|
User | RandomCtfNoob |
Submission Time | 2025-08-04 17:47:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flybot.cpp: In function ‘int checkpath(int, int, const std::vector<std::vector<char> >&, const std::vector<std::vector<int> >&)’:
flybot.cpp:16:18: error: assignment of read-only location ‘(&(& dp)->std::vector<std::vector<int> >::operator[](((std::vector<std::vector<int> >::size_type)y)))->std::vector<int>::operator[](((std::vector<int>::size_type)x))’
16 | return dp[y][x] = checkpath(x+1,y,map,dp) + checkpath(x,y+1,map,dp);
flybot.cpp: In function ‘int main()’:
flybot.cpp:34:27: error: too few arguments to function ‘int checkpath(int, int, const std::vector<std::vector<char> >&, const std::vector<std::vector<int> >&)’
34 | cout << checkpath(0,0,map);
| ^
flybot.cpp:6:5: note: declared here
6 | int checkpath(int x, int y,const vector<vector<char>>& map,const vector<vector<int>>& dp){
| ^