/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'bool cmp(const sHui&, const sHui&)':
/in/foo.cc:41:14: warning: self-comparison always evaluates to false [-Wtautological-compare]
    if(x.id[i]<x.id[i])
       ~~~~~~~^~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:57:36: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[23]' [-Wformat=]
   scanf("%s%s",&sh[i].id,&sh[i].num);
                ~~~~~~~~~           ^
/in/foo.cc:57:36: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[20000]' [-Wformat=]
/in/foo.cc: In function 'bool cmp(const sHui&, const sHui&)':
/in/foo.cc:50:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Accepted 3ms 440.0 KiB
#2 Accepted 2ms 444.0 KiB
#3 Wrong Answer 2ms 448.0 KiB
#4 Wrong Answer 2ms 564.0 KiB
#5 Wrong Answer 2ms 568.0 KiB

信息

递交者
类型
递交
题目
P1257 水王争霸
语言
C++
递交时间
2017-10-05 22:55:29
评测时间
2017-10-05 22:55:29
评测机
分数
20
总耗时
12ms
峰值内存
568.0 KiB