/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:31:37: error: 'xibu' was not declared in this scope
   31 |                 if (a[i].qimo > 85&&xibu == 'Y') a[i] += 1000;
      |                                     ^~~~
/in/foo.cc:31:55: error: no match for 'operator+=' (operand types are 'student' and 'int')
   31 |                 if (a[i].qimo > 85&&xibu == 'Y') a[i] += 1000;
      |                                                  ~~~~~^~~~~~~
/in/foo.cc:32:39: error: 'ganbu' was not declared in this scope
   32 |                 if (a[i].pingyi > 80&&ganbu == 'Y') a[i] += 850;
      |                                       ^~~~~
/in/foo.cc:32:58: error: no match for 'operator+=' (operand types are 'student' and 'int')
   32 |                 if (a[i].pingyi > 80&&ganbu == 'Y') a[i] += 850;
      |                                                     ~~~~~^~~~~~
/in/foo.cc:35:24: error: expected ';' before 'cout'
   35 |         sort(a,a+n,cmp)
      |                        ^
      |                        ;
   36 |         cout << a[0].name << endl << a[0].money << endl << sum;
      |         ~~~~            

信息

递交者
类型
自测
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2026-12-02 20:49:06
评测时间
2026-12-02 20:49:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes