실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘std::vector<int> primeNumberSieve(int)’: Main.cpp:24:26: error: ‘sqrt’ was not declared in this scope 24 | for (int i = 2; i <= sqrt(number); i++) | ^~~~ Main.cpp: In function ‘int main()’: Main.cpp:50:26: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 50 | for (size_t i = 0; i < n; i++) | ~~^~~ Main.cpp:55:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 55 | for (int a = 0; a < Result.size(); a++) { | ~~^~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.