/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'void solve(int, int)':
/in/foo.cc:31:27: warning: operation on 'j' may be undefined [-Wsequence-point]
   31 |     while(j<=mid) b[j]=a[j++];
      |                          ~^~
/in/foo.cc:31:27: warning: operation on 'j' may be undefined [-Wsequence-point]
/in/foo.cc: In function 'int main()':
/in/foo.cc:42:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   42 |     for(int i=1;i<=n;i++) solve(i,n),printf("%d\n",ans);return 0;
      |     ^~~
/in/foo.cc:42:57: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   42 |     for(int i=1;i<=n;i++) solve(i,n),printf("%d\n",ans);return 0;
      |                                                         ^~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 480.0 KiB

信息

递交者
类型
自测
题目
P1066 弱弱的战壕
语言
C++
递交时间
2025-06-28 09:31:46
评测时间
2025-06-28 09:31:46
评测机
分数
0
总耗时
2ms
峰值内存
480.0 KiB