Wrong Answer
/in/foo.cc: In function 'int main()': /in/foo.cc:22:65: warning: format '%c' expects argument of type 'char*', but argument 4 has type 'int*' [-Wformat=] scanf("%d %s %c %f",&s[i].sno,s[i].sname,&s[i].sex,&s[i].score); ^ /in/foo.cc:26:10: warning: left operand of comma operator has no effect [-Wunused-value] for(i,l=1;i<n;i++) ^ /in/foo.cc:28:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(s[i].sex=1) ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1149 结构体-学生信息处理1
- 语言
- C++
- 递交时间
- 2021-11-14 09:43:53
- 评测时间
- 2021-11-14 09:43:53
- 评测机
- 分数
- 0
- 总耗时
- 2ms
- 峰值内存
- 376.0 KiB