记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:29:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (int i = b + 1;i <= len1 - 1;i++)cout << x[i];return 0;
     ^~~
/in/foo.cc:29:55: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     for (int i = b + 1;i <= len1 - 1;i++)cout << x[i];return 0;
                                                       ^~~~~~
/in/foo.cc:34:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
      for (int i = 0;i <= a - 1;i++)cout << x[i];return 0;
      ^~~
/in/foo.cc:34:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
      for (int i = 0;i <= a - 1;i++)cout << x[i];return 0;
                                                 ^~~~~~
/in/foo.cc:39:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
      for (int i = b + 1;i <= len1 - 1;i++)cout << x[i];return 0;
      ^~~
/in/foo.cc:39:56: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
      for (int i = b + 1;i <= len1 - 1;i++)cout << x[i];return 0;
                                                        ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 400.0 KiB
#2 Accepted 1ms 336.0 KiB

信息

递交者
类型
自测
题目
P1063 A8-7 删除字符串中一个子串
语言
C++
递交时间
2023-11-11 16:57:37
评测时间
2023-11-11 16:57:37
评测机
分数
20
总耗时
3ms
峰值内存
400.0 KiB