记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:5: error: 'flout' was not declared in this scope; did you mean 'float'?
    6 |     flout m;
      |     ^~~~~
      |     float
/in/foo.cc:7:12: error: 'm' was not declared in this scope; did you mean 'tm'?
    7 |     cin >> m;
      |            ^
      |            tm
/in/foo.cc:9:10: error: expected ';' before 'pay'
    9 |     flout pay;
      |          ^~~~
      |          ;
/in/foo.cc:10:26: error: 'pay' was not declared in this scope
   10 |     if (m >= 2000)       pay = m * 0.80;
      |                          ^~~
/in/foo.cc:11:26: error: 'pay' was not declared in this scope
   11 |     else if (m >= 1500)  pay = m * 0.85;
      |                          ^~~
/in/foo.cc:12:26: error: 'pay' was not declared in this scope
   12 |     else if (m >= 1000)  pay = m * 0.90;
      |                          ^~~
/in/foo.cc:13:26: error: 'pay' was not declared in this scope
   13 |     else if (m >= 500)   pay = m * 0.95;
      |                          ^~~
/in/foo.cc:14:26: error: 'pay' was not declared in this scope
   14 |     else                 pay = m;
      |                          ^~~
/in/foo.cc:16:41: error: 'pay' was not declared in this scope
   16 |     cout << fixed << setprecision(2) << pay << endl;
      |                                         ^~~

信息

递交者
类型
自测
题目
P1019 contest1-4 超市促销活动
语言
C++
递交时间
2026-11-13 20:20:31
评测时间
2026-11-13 20:20:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes