실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:18:26: error: no match for ‘operator/’ (operand types are ‘std::tuple_element<0, const std::pair<const std::__cxx11::basic_string<char>, float> >::type’ {aka ‘const std::__cxx11::basic_string<char>’} and ‘int’) 18 | float ratio = (a / total) * 100.0f; | ~ ^ ~~~~~ | | | | | int | std::tuple_element<0, const std::pair<const std::__cxx11::basic_string<char>, float> >::type {aka const std::__cxx11::basic_string<char>} Main.cpp:18:15: warning: unused variable ‘ratio’ [-Wunused-variable] 18 | float ratio = (a / total) * 100.0f; | ^~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.