记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:17:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(i=3)
         ^
/in/foo.cc:24:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(i=4)
         ^
/in/foo.cc:31:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(i=5)
         ^
/in/foo.cc:38:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if(i=6)
         ^
/in/foo.cc:36:20: warning: iteration 1 invokes undefined behavior [-Waggressive-loop-optimizations]
    a[i][j]=a[i][j-1]+1;
            ~~~~~~~~^
/in/foo.cc:35:17: note: within this loop
    for(int j=7;j<=200;j++)
                ~^~~~~
/in/foo.cc:29:20: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]
    a[i][j]=a[i][j-1]+1;
            ~~~~~~~~^
/in/foo.cc:28:17: note: within this loop
    for(int j=6;j<=200;j++)
                ~^~~~~
/in/foo.cc:22:20: warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
    a[i][j]=a[i][j-1]+1;
            ~~~~~~~~^
/in/foo.cc:21:17: note: within this loop
    for(int j=5;j<=200;j++)
                ~^~~~~
/in/foo.cc:15:11: warning: iteration 1 invokes undefined behavior [-Waggressive-loop-optimizations]
    a[i][j]=j/i;
    ~~~~~~~^~~~
/in/foo.cc:14:17: note: within this loop
    for(int j=6;j<=200;j++)
                ~^~~~~
/in/foo.cc:36:10: warning: array subscript is above array bounds [-Warray-bounds]
    a[i][j]=a[i][j-1]+1;
    ~~~~~~^
/in/foo.cc:41:10: warning: array subscript is above array bounds [-Warray-bounds]
    a[i][7]=1;
    ~~~~~~^
/in/foo.cc:43:20: warning: array subscript is above array bounds [-Warray-bounds]
    a[i][j]=a[i][j-1]+1;
            ~~~~~~~~^
/in/foo.cc:43:10: warning: array subscript is above array bounds [-Warray-bounds]
    a[i][j]=a[i][j-1]+1;
    ~~~~~~^
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Wrong Answer 3ms 368.0 KiB
#3 Wrong Answer 3ms 364.0 KiB
#4 Wrong Answer 3ms 380.0 KiB
#5 Wrong Answer 2ms 364.0 KiB

信息

递交者
类型
递交
题目
数的划分
题目数据
下载
语言
C++
递交时间
2018-10-21 15:11:26
评测时间
2018-10-21 18:08:32
评测机
分数
20
总耗时
15ms
峰值内存
384.0 KiB