Compile Error

foo.cc: In function 'int GetSum(student*, int)':
foo.cc:41:10: error: 'i' was not declared in this scope
   41 |  Sum=stu[i].sum;
      |          ^
foo.cc: In function 'void print_1(student*, int)':
foo.cc:58:5: error: 'strcpy' was not declared in this scope
   58 |     strcpy(name,stu[i].NAME);
      |     ^~~~~~
foo.cc:3:1: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    2 | #include<iomanip>
  +++ |+#include <cstring>
    3 | using namespace std;
foo.cc: In function 'int find(student*, int)':
foo.cc:158:1: warning: control reaches end of non-void function [-Wreturn-type]
  158 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1088 数组--排序
语言
C++
递交时间
2022-07-16 21:02:19
评测时间
2022-07-16 21:02:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes