/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:35:20: error: 'goldmaxx' was not declared in this scope; did you mean 'goldmax'?
   35 |   if(child[i].gold>goldmaxx){
      |                    ^~~~~~~~
      |                    goldmax
foo.cc:41:33: error: 'goldmaxx' was not declared in this scope; did you mean 'goldmax'?
   41 |  cout<<child[maxid].name<<endl<<goldmaxx<<endl<<sum;
      |                                 ^~~~~~~~
      |                                 goldmax
foo.cc:24:8: warning: unused variable 'goldmax' [-Wunused-variable]
   24 |  int n,goldmax=0,maxid;
      |        ^~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2022-01-23 11:14:02
评测时间
2022-01-23 11:14:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes