아무것도 출력이 안 되는데요.
----
참고로 이런 경고메시지가 뜹니다.
Main.cc: In function ‘int main()’:
Main.cc:57:12: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=]
57 | printf("%f", num3 / num4);
| ~^ ~~~~~~~~~~~
| | |
| double int
| %d
Main.cc:13:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
13 | scanf("%[^\n]s", s);
| ~~~~~^~~~~~~~~~~~~~g++ 버전은 Ubuntu 11.4.0-1ubuntu1~22.04입니다.

wlsdn0795 3년 전
어디서 틀린지 잘 모르겠어요