记录详情

Wrong Answer

/in/foo.c: In function 'noco':
/in/foo.c:21:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(j=0;j<num;i=i+2)
  ^~~
/in/foo.c:23:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return num;
   ^~~~~~
/in/foo.c:17:10: warning: unused variable 'k' [-Wunused-variable]
  int i,j,k,num;
          ^
/in/foo.c:18:25: warning: 'num' is used uninitialized in this function [-Wuninitialized]
  for(i=1;n*n*n==(2*i+num-1)*num/2;i++)
                 ~~~~~~~~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 0ms 200.0 KiB
#2 Wrong Answer 1ms 212.0 KiB
#3 Wrong Answer 0ms 204.0 KiB
#4 Wrong Answer 0ms 208.0 KiB
#5 Wrong Answer 0ms 196.0 KiB

信息

递交者
类型
递交
题目
3-2 编程题
语言
C
递交时间
2019-10-19 13:12:50
评测时间
2019-10-19 13:12:50
评测机
分数
0
总耗时
4ms
峰值内存
212.0 KiB