/ Vijos /

记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:35:17: warning: comparison between pointer and integer
   35 |         if (sum > max){
      |                 ^
/in/foo.c:36:29: warning: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   36 |                         max = sum;
      |                             ^
/in/foo.c:40:5: warning: array subscript -20 is outside array bounds of 'char[100][20]' [-Warray-bounds]
   40 |     printf("%s\n%d\n%d",names[max_index],max,all_sum);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:6:14: note: at offset -20 into object 'names' of size 2000
    6 |         char names[100][20];
      |              ^~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 324.0 KiB

信息

递交者
类型
自测
题目
P1001 谁拿了最多奖学金
语言
C
递交时间
2025-05-22 14:36:14
评测时间
2025-05-22 14:36:14
评测机
分数
0
总耗时
1ms
峰值内存
324.0 KiB