Accepted

foo.cc: In function ‘int ans(int, int, int)’:
foo.cc:12:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
   12 |         for(int i=0;i<m-1;i++)
      |         ^~~
foo.cc:14:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
   14 |                 return ans+d;
      |                 ^~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 508.0 KiB
#2 Accepted 2ms 512.0 KiB
#3 Accepted 2ms 504.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 2ms 512.0 KiB

信息

递交者
类型
递交
题目
P1029 A1-4 循环结构练习:今年过去了多少天
比赛
2026.5.1中级班练习
语言
C++
递交时间
2026-05-01 14:49:00
评测时间
2026-05-01 14:49:00
评测机
分数
100
总耗时
14ms
峰值内存
512.0 KiB