/ Vijos /

记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:24:17: error: ‘let’ was not declared in this scope
   24 |                 let curBonus = 0;
      |                 ^~~
foo.cc:25:49: error: ‘curBonus’ was not declared in this scope
   25 |                 if (score1 > 80 && score3 >= 1) curBonus += 8000;
      |                                                 ^~~~~~~~
foo.cc:26:49: error: ‘curBonus’ was not declared in this scope
   26 |                 if (score1 > 85 && score2 > 80) curBonus += 4000;
      |                                                 ^~~~~~~~
foo.cc:27:34: error: ‘curBonus’ was not declared in this scope
   27 |                 if (score1 > 90) curBonus += 2000;
      |                                  ^~~~~~~~
foo.cc:28:49: error: ‘curBonus’ was not declared in this scope
   28 |                 if (score1 > 85 && xibu == 'Y') curBonus += 1000;
      |                                                 ^~~~~~~~
foo.cc:29:50: error: ‘curBonus’ was not declared in this scope
   29 |                 if (score2 > 80 && ganbu == 'Y') curBonus += 850;
      |                                                  ^~~~~~~~
foo.cc:30:21: error: ‘curBonus’ was not declared in this scope
   30 |                 if (curBonus > maxBonus) {
      |                     ^~~~~~~~
foo.cc:34:31: error: ‘curBonus’ was not declared in this scope
   34 |                 totalBonus += curBonus;
      |                               ^~~~~~~~

信息

递交者
类型
自测
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2024-05-03 15:50:32
评测时间
2024-05-03 15:50:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes