실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:13:5: warning: implicit declaration of function ‘pri’ [-Wimplicit-function-declaration] 13 | pri(prime, &cou, (int)ceil(sqrt(max))); | ^~~ Main.c:13:9: error: ‘prime’ undeclared (first use in this function) 13 | pri(prime, &cou, (int)ceil(sqrt(max))); | ^~~~~ Main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in Main.c:13:17: error: ‘cou’ undeclared (first use in this function); did you mean ‘cos’? 13 | pri(prime, &cou, (int)ceil(sqrt(max))); | ^~~ | cos Main.c:22:15: error: redefinition of ‘sum’ 22 | long long sum=0; | ^~~ Main.c:11:15: note: previous definition of ‘sum’ with type ‘long long int’ 11 | long long sum = 0; | ^~~ Main.c:26:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] 26 | printf("%d",sum); | ~^ ~~~ | | | | | long long int | int | %lld Main.c:12:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%lld %lld", &min, &max); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.