/ Vijos /

记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:33:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    if(s[i].x='Y'&&s[i].py>80)
    ^~
/in/foo.c:40:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    else if(sum1=sum)
    ^~~~
/in/foo.c:51:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
   printf("%s\n%d\n%d",name3[10],sum1,sum2);
            ^
/in/foo.c:53:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
   printf("%s\n%d\n",name2[10],sum1);
            ^
/in/foo.c:17:8: warning: unused variable 'a' [-Wunused-variable]
  int i,a[50]={0},j=1;
        ^
/in/foo.c:51:28: warning: array subscript is above array bounds [-Warray-bounds]
   printf("%s\n%d\n%d",name3[10],sum1,sum2);
                       ~~~~~^~~~
/in/foo.c:53:26: warning: array subscript is above array bounds [-Warray-bounds]
   printf("%s\n%d\n",name2[10],sum1);
                     ~~~~~^~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 128.0 KiB
#2 Runtime Error 1ms 216.0 KiB
#3 Runtime Error 0ms 128.0 KiB
#4 Runtime Error 1ms 216.0 KiB
#5 Runtime Error 1ms 128.0 KiB
#6 Runtime Error 1ms 216.0 KiB
#7 Runtime Error 1ms 128.0 KiB
#8 Runtime Error 0ms 216.0 KiB
#9 Runtime Error 1ms 128.0 KiB
#10 Runtime Error 0ms 216.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C
递交时间
2020-04-12 15:58:04
评测时间
2020-04-12 15:58:04
评测机
分数
0
总耗时
10ms
峰值内存
216.0 KiB