실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int get_city_chicken_distance()’: Main.cpp:14:24: error: expected initializer before numeric constant 14 | int total_distance 0; | ^ Main.cpp:23:9: error: ‘total_distance’ was not declared in this scope; did you mean ‘min_distance’? 23 | total_distance+=min_distance; | ^~~~~~~~~~~~~~ | min_distance Main.cpp:25:12: error: ‘total_distance’ was not declared in this scope 25 | return total_distance; | ^~~~~~~~~~~~~~ Main.cpp: In function ‘void select_chickens(int, int)’: Main.cpp:33:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 33 | for(int i=id; i<chickens.size(); i++){ | ~^~~~~~~~~~~~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:42:13: error: ‘null’ was not declared in this scope 42 | cin.tie(null); | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.