Wrong Answer

foo.cc: In function 'int main()':
foo.cc:29:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(strcmp(rec[k].name,names[i])==0);
    ^~
foo.cc:30:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    {
    ^
foo.cc:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%s%s%d",&rec[i].id,rec[i].name,rec[i].phone,&rec[i].secs);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 1a2,3 > 2 Lily > 3 Lucy 1ms 484.0 KiB

信息

递交者
类型
递交
题目
P1152 结构体-手机通话记录1
语言
C++
递交时间
2021-11-08 21:06:41
评测时间
2021-11-08 21:06:41
评测机
分数
0
总耗时
1ms
峰值内存
484.0 KiB