실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘ll f(int, int)’: Main.cpp:18:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] 18 | for (int i : v[b[x]]) | ^ Main.cpp: In function ‘int main()’: Main.cpp:35:5: error: ‘memset’ was not declared in this scope 35 | memset(d, -1, sizeof(d)); | ^~~~~~ Main.cpp:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 2 | #include <vector> +++ |+#include <cstring> 3 | using namespace std; Main.cpp:38:43: warning: array subscript has type ‘char’ [-Wchar-subscripts] 38 | for (int i = 0; a[i] != 0; ++i) v[a[i]].push_back(i); | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.