실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:34:36: error: invalid operands to binary % (have ‘double’ and ‘unsigned int’) 34 | sum2 = (sum2 + num[j] * b) % M; | ~~~~~~~~~~~~~~~~~~~ ^ | | | double Main.c:39:14: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=] 39 | printf("%d\n", sum1+sum2); | ~^ ~~~~~~~~~ | | | | int long long unsigned int | %lld Main.c:14:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%d", &n); | ^~~~~~~~~~~~~~~ Main.c:15:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%s", str); | ^~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.