Accepted

foo.cc: In function 'int main()':
foo.cc:20:57: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[20]' [-Wformat=]
   scanf("%d %s %s %d",&s[i].bh,s[i].mz,&s[i].hm,&s[i].sj); 
                                        ~~~~~~~~         ^
foo.cc:20:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %s %s %d",&s[i].bh,s[i].mz,&s[i].hm,&s[i].sj); 
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 424.0 KiB

信息

递交者
类型
递交
题目
P1152 结构体-手机通话记录1
语言
C++
递交时间
2021-11-13 12:01:56
评测时间
2021-11-13 12:01:56
评测机
分数
100
总耗时
1ms
峰值内存
424.0 KiB