Compile Error
/in/foo.cc: In function 'bool comp(st, st)': /in/foo.cc:22:25: error: 'strcmp' was not declared in this scope int x=strcmp(a.xh,b.xh); ^ /in/foo.cc: In function 'int main()': /in/foo.cc:31:26: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[25]' [-Wformat=] scanf("%s/n",&stu[i].xh); ^ /in/foo.cc: In function 'bool comp(st, st)': /in/foo.cc:25:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
信息
- 递交者
- 类型
- 递交
- 题目
- Report (Simple Ver.)
- 语言
- C++
- 递交时间
- 2019-01-29 17:46:30
- 评测时间
- 2019-01-29 17:46:30
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes