실행 실패 (제출 코드 컴파일 에러)
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:26:11: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ 26 | q.push(i); | ^~~~ Main.cpp:27:11: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ 27 | q.push(j-1); | ^~~~ Main.cpp:44:11: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ 44 | q.push(i-1); | ^~~~ Main.cpp:45:11: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ 45 | q.push(j); | ^~~~ Main.cpp:60:11: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ 60 | q.push(i+1); | ^~~~ Main.cpp:61:11: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ 61 | q.push(j); | ^~~~ Main.cpp:70:25: error: expected ‘]’ before ‘)’ token 70 | if(arr[i][j+1==1) | ^ | ] Main.cpp:76:11: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ 76 | q.push(i); | ^~~~ Main.cpp:77:11: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’ 77 | q.push(j+1); | ^~~~ 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]); | ~~~~~^~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.