Compile Error

foo.cc: In function 'int main()':
foo.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%d,%d,%d",&x,&y,&z);
      |         ^~~~~
foo.cc:7:9: error: 'printf' was not declared in this scope
    7 |         printf("%.2f",h);
      |         ^~~~~~
foo.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | int main()
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1010 门票总价
语言
C++
递交时间
2023-11-03 22:32:48
评测时间
2023-11-03 22:32:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes