실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void bfs(int, int)’: Main.cpp:9:5: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ 9 | q.push(i); | ^~~~ Main.cpp:10:5: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ 10 | q.push(j); | ^~~~ Main.cpp:13:12: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘int’ 13 | while(!q.empty()){ | ^~~~~ Main.cpp:14:11: error: request for member ‘front’ in ‘q’, which is of non-class type ‘int’ 14 | i=q.front(); | ^~~~~ Main.cpp:15:9: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘int’ 15 | q.pop(); | ^~~ Main.cpp:16:11: error: request for member ‘front’ in ‘q’, which is of non-class type ‘int’ 16 | j=q.front(); | ^~~~~ Main.cpp:17:9: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘int’ 17 | q.pop(); | ^~~ Main.cpp:24:27: error: expected primary-expression before ‘==’ token 24 | else if(arr[i][j-1])==0) | ^~ Main.cpp:42:27: error: expected primary-expression before ‘==’ token 42 | else if(arr[i-1][j])==0) | ^~ Main.cpp:58:27: error: expected primary-expression before ‘==’ token 58 | else if(arr[i+1][j])==0) | ^~ Main.cpp:74:27: error: expected primary-expression before ‘==’ token 74 | else if(arr[i][j+1])==0) | ^~ Main.cpp:8:9: warning: unused variable ‘p’ [-Wunused-variable] 8 | int q,p; | ^ Main.cpp: In function ‘int main()’: Main.cpp:102:13: error: expected ‘;’ before ‘count’ 102 | bfs(1,1) | ^ | ; 103 | count++; | ~~~~~ Main.cpp:91:13: warning: unused variable ‘t’ [-Wunused-variable] 91 | int i,j,t,k=1,real=0,count=0,wow=0,two=0; | ^ Main.cpp:92:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 92 | scanf("%d %d",&n,&m); | ~~~~~^~~~~~~~~~~~~~~ Main.cpp:97:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 97 | scanf("%d",&arr[i][j]); | ~~~~~^~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.