Wrong Answer

foo.cc: In function 'int main()':
foo.cc:41:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(flag=0)
      ~~~~^~
foo.cc:28:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%s%s%d",&sr[i].id,sr[i].name,sr[i].phone,&sr[i].secs);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1,4 > Jack 106 > Tom 88 > 1ms 320.0 KiB

信息

递交者
类型
递交
题目
P1154 结构体-手机通话记录2
语言
C++
递交时间
2021-11-14 21:25:16
评测时间
2021-11-14 21:25:16
评测机
分数
0
总耗时
1ms
峰值内存
320.0 KiB