/ 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'
    system("pause");
    ^~~~~~
/in/foo.cc:20:11: warning: unused variable 'j' [-Wunused-variable]
   int n,i,j;
           ^
# 状态 耗时 内存占用
#1 Accepted 2ms 580.0 KiB
#2 Accepted 2ms 512.0 KiB
#3 Accepted 3ms 608.0 KiB
#4 Accepted 2ms 532.0 KiB
#5 Accepted 1ms 580.0 KiB
#6 Accepted 2ms 480.0 KiB
#7 Wrong Answer 2ms 512.0 KiB
#8 Accepted 3ms 512.0 KiB
#9 Accepted 2ms 500.0 KiB
#10 Accepted 3ms 616.0 KiB

信息

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