실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘void bfs()’: Main.cpp:2:15: error: ‘pair’ was not declared in this scope 2 | queue<pair<int,bool>> q; | ^~~~ Main.cpp:2:9: error: ‘queue’ was not declared in this scope 2 | queue<pair<int,bool>> q; | ^~~~~ Main.cpp:2:20: error: expected primary-expression before ‘int’ 2 | queue<pair<int,bool>> q; | ^~~ Main.cpp:3:9: error: ‘visited’ was not declared in this scope 3 | visited[n] = true; | ^~~~~~~ Main.cpp:3:17: error: ‘n’ was not declared in this scope 3 | visited[n] = true; | ^ Main.cpp:4:9: error: ‘q’ was not declared in this scope 4 | q.push({n,false}); | ^ Main.cpp:5:9: error: ‘qsize’ was not declared in this scope 5 | qsize = q.size(); | ^~~~~ Main.cpp:7:17: error: ‘chk’ was not declared in this scope 7 | chk++; | ^~~ Main.cpp:15:46: error: ‘arr’ was not declared in this scope 15 | next = cur + arr[i]; | ^~~ Main.cpp:22:36: error: ‘k’ was not declared in this scope 22 | if(next == k) | ^ Main.cpp:23:33: error: ‘cnt’ was not declared in this scope; did you mean ‘int’? 23 | cnt++; | ^~~ | int Main.cpp:36:28: error: ‘cnt’ was not declared in this scope; did you mean ‘int’? 36 | if(cnt > 0) | ^~~ | int Main.cpp:40:25: error: ‘tm’ was not declared in this scope 40 | tm++; | ^~ Main.cpp:43:36: error: expected primary-expression before ‘int’ 43 | queue<pair<int,bool>> temp = q; | ^~~ Main.cpp:44:32: error: ‘temp’ was not declared in this scope 44 | while(!temp.empty()) { | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.