/ Vijos /

记录详情

Accepted

foo.cpp: In function 'int main()':
foo.cpp:4:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 #define go(i,a,b) for(int i=a;i<=b;i++)
                   ^
foo.cpp:14:5: note: in expansion of macro 'go'
     go(i,rock[m],rock[m]+T)ans=min(ans,f[i]);end:printf("%d\n",ans);return 0;
     ^~
foo.cpp:14:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     go(i,rock[m],rock[m]+T)ans=min(ans,f[i]);end:printf("%d\n",ans);return 0;
                                              ^~~
# 状态 耗时 内存占用
#1 Accepted 0ms 948.0 KiB
#2 Accepted 0ms 956.0 KiB
#3 Accepted 0ms 956.0 KiB
#4 Accepted 0ms 948.0 KiB
#5 Accepted 0ms 948.0 KiB
#6 Accepted 0ms 956.0 KiB
#7 Accepted 0ms 948.0 KiB
#8 Accepted 0ms 948.0 KiB
#9 Accepted 0ms 944.0 KiB
#10 Accepted 0ms 948.0 KiB

信息

递交者
类型
递交
题目
P1002 过河
语言
C++
递交时间
2017-03-05 16:23:47
评测时间
2017-03-05 16:23:47
评测机
分数
100
总耗时
0ms
峰值内存
956.0 KiB