실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:32:25: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long int>’ 32 | if (checkHeight(trees, mid, M)) { start = mid + 1; ans = mid;} | ^~~~~ Main.cpp:6:31: note: in passing argument 1 of ‘bool checkHeight(std::vector<int>&, long long int, long long int)’ 6 | bool checkHeight(vector<int>& trees, long long mid, long long setHeight) { | ~~~~~~~~~~~~~^~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.