실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘long unsigned int djb2(std::string)’: Main.cpp:15:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 15 | for (int i = 0 ; i <str.length(); i ++) | ~~^~~~~~~~~~~~~ Main.cpp:18:46: error: ‘TABLE_SIZE’ was not declared in this scope 18 | hash = (((hash << 5) + hash) + c ) % TABLE_SIZE; | ^~~~~~~~~~ Main.cpp:20:19: error: ‘TABLE_SIZE’ was not declared in this scope 20 | return hash % TABLE_SIZE; | ^~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.