Wrong Answer

foo.cc: In function 'int main()':
foo.cc:6:18: warning: right operand of comma operator has no effect [-Wunused-value]
    6 |         cin>>x,y,z;
      |                  ^
foo.cc:6:19: warning: right operand of comma operator has no effect [-Wunused-value]
    6 |         cin>>x,y,z;
      |                   ^
foo.cc:8:12: warning: 'y' is used uninitialized [-Wuninitialized]
    8 |         B=y*(99/2);
      |           ~^~~~~~~
foo.cc:4:15: note: 'y' was declared here
    4 |         int x,y,z;
      |               ^
foo.cc:9:12: warning: 'z' is used uninitialized [-Wuninitialized]
    9 |         C=z*(99*5.5/10);
      |           ~^~~~~~~~~~~~
foo.cc:4:17: note: 'z' was declared here
    4 |         int x,y,z;
      |                 ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 198, expect 356.40. 3ms 412.0 KiB
#2 Wrong Answer Read 198, expect 460.35. 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1010 门票总价
语言
C++
递交时间
2023-11-08 22:04:22
评测时间
2023-11-08 22:04:22
评测机
分数
0
总耗时
7ms
峰值内存
412.0 KiB