/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:8: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
        for (int i=1;i<=20002;i++)
        ^~~
/in/foo.cc:15:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
         cout<<tot;
         ^~~~
/in/foo.cc:14:16: warning: iteration 20001 invokes undefined behavior [-Waggressive-loop-optimizations]
         if (a[i]==2) tot++;
             ~~~^
/in/foo.cc:13:22: note: within this loop
        for (int i=1;i<=20002;i++)
                     ~^~~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 380.0 KiB
#2 Accepted 2ms 332.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 3ms 256.0 KiB
#5 Accepted 2ms 352.0 KiB
#6 Accepted 2ms 344.0 KiB
#7 Accepted 3ms 256.0 KiB
#8 Accepted 3ms 320.0 KiB
#9 Accepted 2ms 372.0 KiB
#10 Accepted 3ms 256.0 KiB

信息

递交者
类型
递交
题目
P1911 珠心算测验
语言
C++
递交时间
2017-06-28 16:07:25
评测时间
2017-06-28 16:07:25
评测机
分数
100
总耗时
29ms
峰值内存
380.0 KiB