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)提供评测服务