/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:15: warning: for increment expression has no effect [-Wunused-value]
  for(i=1;i++;i<=N)
              ~^~~
/in/foo.cc:26:15: warning: for increment expression has no effect [-Wunused-value]
  for(i=1;i++;i<=N)
              ~^~~
/in/foo.cc:5:8: warning: unused variable 'n' [-Wunused-variable]
  int N,n,i,a,b,e,x=0,y,m=0;//a=期末成绩,b=班级评议成绩,c=学生干部,d=西部省份,e=论文数 
        ^
/in/foo.cc:26:11: warning: iteration 2147483646 invokes undefined behavior [-Waggressive-loop-optimizations]
  for(i=1;i++;i<=N)
          ~^~
/in/foo.cc:26:2: note: within this loop
  for(i=1;i++;i<=N)
  ^~~
# 状态 耗时 内存占用
#1 Runtime Error 2ms 344.0 KiB
#2 Runtime Error 1ms 352.0 KiB
#3 Runtime Error 1ms 224.0 KiB
#4 Runtime Error 1ms 228.0 KiB
#5 Runtime Error 1ms 224.0 KiB
#6 Runtime Error 1ms 228.0 KiB
#7 Runtime Error 2ms 224.0 KiB
#8 Runtime Error 1ms 228.0 KiB
#9 Runtime Error 1ms 224.0 KiB
#10 Runtime Error 1ms 228.0 KiB

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2019-11-12 17:55:27
评测时间
2019-11-12 17:55:27
评测机
分数
0
总耗时
18ms
峰值内存
352.0 KiB