Compile Error

foo.cc: In function 'int main()':
foo.cc:8:2: error: 'sacnf' was not declared in this scope
  sacnf("%d,%d,%d",&x,&y,&z);
  ^~~~~
foo.cc:8:2: note: suggested alternative: 'sscanf'
  sacnf("%d,%d,%d",&x,&y,&z);
  ^~~~~
  sscanf
foo.cc:10:9: error: unable to find string literal operator 'operator""price' with 'const char [5]', 'long unsigned int' arguments
  printf("%.2f"price); 
         ^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1010 门票总价
语言
C++
递交时间
2021-11-13 09:41:26
评测时间
2021-11-13 09:41:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes