실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:6:5: error: ‘ios’ has not been declared 6 | ios::sync_with_stdio(0); | ^~~ Main.cpp:7:5: error: ‘cin’ was not declared in this scope 7 | cin.tie(0); | ^~~ Main.cpp:12:5: error: ‘fill’ was not declared in this scope 12 | fill(arr, arr + 100002, -1); | ^~~~ Main.cpp:16:5: error: ‘queue’ was not declared in this scope 16 | queue<int> q; | ^~~~~ Main.cpp:16:11: error: expected primary-expression before ‘int’ 16 | queue<int> q; | ^~~ Main.cpp:17:5: error: ‘q’ was not declared in this scope 17 | q.push(s); | ^ Main.cpp:19:9: error: ‘cout’ was not declared in this scope 19 | cout << 0; | ^~~~ Main.cpp:25:51: error: deducing from brace-enclosed initializer list requires ‘#include <initializer_list>’ +++ |+#include <initializer_list> 1 | int n, m; ...... 25 | for (int next : {2 * cur, cur + 1, cur - 1}) { | ^ Main.cpp:29:21: error: ‘cout’ was not declared in this scope 29 | cout << arr[cur]; | ^~~~ Main.cpp:33:17: error: ‘cout’ was not declared in this scope 33 | cout << arr[cur] + 1; | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.