Problem | flybot |
---|---|
User | RandomCtfNoob |
Submission Time | 2025-08-04 17:47:38 |
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:15: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))’
15 | return dp[y][x] = checkpath(x+1,y,map,dp) + checkpath(x,y+1,map,dp);
flybot.cpp:20:11: error: a function-definition is not allowed here before ‘{’ token
20 | int main(){
| ^
flybot.cpp:34:1: error: expected ‘}’ at end of input
34 | }
| ^
flybot.cpp:6:90: note: to match this ‘{’
6 | int checkpath(int x, int y,const vector<vector<char>>& map,const vector<vector<int>>& dp){
| ^