실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:18:16: warning: too many arguments for format [-Wformat-extra-args] 18 | printf("%.10lf",ceil(len/d)*t,min({len,(t-d)*floor(len/d)+len})); | ^~~~~~~~ In file included from /usr/include/c++/11/bits/specfun.h:45, from /usr/include/c++/11/cmath:1935, from Main.cpp:2: /usr/include/c++/11/bits/stl_algobase.h: In instantiation of ‘constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = double; _Compare = double]’: Main.cpp:15:28: required from here /usr/include/c++/11/bits/stl_algobase.h:281:17: error: ‘__comp’ cannot be used as a function 281 | if (__comp(__b, __a)) | ~~~~~~^~~~~~~~~~ Main.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%lf %lf %lf %lf",&x,&y,&d,&t); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.