실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:19:53: error: invalid operands of types ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} and ‘int’ to binary ‘operator%’ 19 | result += ((str[i] - 'a' + 1) * pow(31, i)) % M; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ | | | | | int | __gnu_cxx::__promote_2<int, int, double, double>::__type {aka double}
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.