Compile Error
/in/foo.cc: In function 'bool cmp(node, node)':
/in/foo.cc:18:12: error: 'struct node' has no member named 'sum'; did you mean 'num'?
return x.sum<y.sum;
^~~
/in/foo.cc:18:18: error: 'struct node' has no member named 'sum'; did you mean 'num'?
return x.sum<y.sum;
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:40:9: error: 'tot' was not declared in this scope
tot+=a[i].jxj;
^~~
/in/foo.cc:43:41: error: 'tot' was not declared in this scope
cout<<a[1].name<<endl<<a[1].jxj<<endl<<tot;
^~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1001 谁拿了最多奖学金
- 语言
- C++
- 递交时间
- 2019-10-21 19:56:54
- 评测时间
- 2019-10-21 19:56:54
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes