记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:31:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(cha[i]!=cha[ii])
   ^~
/in/foo.cc:33:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
      if(i==n-1&&cha[i]==cha[i])
      ^~
/in/foo.cc:33:23: warning: self-comparison always evaluates to true [-Wtautological-compare]
      if(i==n-1&&cha[i]==cha[i])
                 ~~~~~~^~~~~~~~
/in/foo.cc:39:16: warning: 'ii' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout << shu[ii] << " " << shu[ii+1];
                ^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 348.0 KiB

信息

递交者
类型
自测
题目
P1213 C7 差距最大的相邻数
语言
C++
递交时间
2024-09-05 16:37:39
评测时间
2024-09-05 16:37:39
评测机
分数
0
总耗时
1ms
峰值内存
348.0 KiB