/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'bool f(student, student)':
/in/foo.cc:15:47: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   return (a.score>b.score || a.score==b.score && a.x>b.x); 
                              ~~~~~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:30:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(i=1;i<=5;i++)
   ^~~
/in/foo.cc:32:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    return 0;
    ^~~~~~
/in/foo.cc:20:11: warning: unused variable 'j' [-Wunused-variable]
   int n,i,j;
           ^
# 状态 耗时 内存占用
#1 Accepted 3ms 256.0 KiB
#2 Accepted 1ms 312.0 KiB
#3 Accepted 3ms 256.0 KiB
#4 Accepted 1ms 368.0 KiB
#5 Accepted 1ms 384.0 KiB
#6 Accepted 4ms 360.0 KiB
#7 Wrong Answer 4ms 360.0 KiB
#8 Accepted 4ms 256.0 KiB
#9 Accepted 1ms 384.0 KiB
#10 Accepted 1ms 380.0 KiB

信息

递交者
类型
递交
题目
P1398 奖学金
语言
C++
递交时间
2017-05-13 12:25:22
评测时间
2017-05-13 12:25:22
评测机
分数
90
总耗时
27ms
峰值内存
384.0 KiB