실행 실패 (제출 코드 컴파일 에러)
Main.cpp:12:16: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive] 12 | int bfs(const &vector<string> arr, const &vector<vector<int>> v, int x, int y){ | ^~~~~~~~~~~~~~ Main.cpp:12:16: error: expected ‘,’ or ‘...’ Main.cpp: In function ‘int bfs(const int&)’: Main.cpp:13:12: error: ‘x’ was not declared in this scope 13 | if(arr[x][y] == 'W') return 0; | ^ Main.cpp:13:15: error: ‘y’ was not declared in this scope 13 | if(arr[x][y] == 'W') return 0; | ^ Main.cpp:17:22: error: ‘x’ was not declared in this scope 17 | q.push(make_pair(x,y)); | ^ Main.cpp:17:24: error: ‘y’ was not declared in this scope 17 | q.push(make_pair(x,y)); | ^ Main.cpp:26:37: error: ‘n’ was not declared in this scope; did you mean ‘ny’? 26 | if(nx>=0 && ny>=0 && nx<n && ny<m && arr[nx][ny] == 'L'){ | ^ | ny Main.cpp:26:45: error: ‘m’ was not declared in this scope 26 | if(nx>=0 && ny>=0 && nx<n && ny<m && arr[nx][ny] == 'L'){ | ^ Main.cpp: In function ‘int main()’: Main.cpp:52:22: error: ‘visted’ was not declared in this scope; did you mean ‘visited’? 52 | ans = max(map, visted, bfs(i, j), ans); | ^~~~~~ | visited Main.cpp:52:33: error: too many arguments to function ‘int bfs(const int&)’ 52 | ans = max(map, visted, bfs(i, j), ans); | ~~~^~~~~~ Main.cpp:12:5: note: declared here 12 | int bfs(const &vector<string> arr, const &vector<vector<int>> v, int x, int y){ | ^~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.