/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int cf(int)':
/in/foo.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:15:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
         for (int j=1;j<=9;j++)
         ^~~
/in/foo.cc:30:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
             return 0;//华华丽丽的结束
             ^~~~~~
/in/foo.cc:27:25: warning: iteration 8 invokes undefined behavior [-Waggressive-loop-optimizations]
                     d[e]=0;//其实可以用memset重置,但是懒得修改了。不了解memset的可以百度一下
                     ~~~~^~
/in/foo.cc:26:31: note: within this loop
                 for (int e=1;e<=9;e++){//判断之后将计数的数组置为0,方便下次使用,不然你一个数都不会输出
                              ~^~~
/in/foo.cc:23:95: warning: array subscript is above array bounds [-Warray-bounds]
                 if(d[1]==1&&d[2]==1&&d[3]==1&&d[4]==1&&d[5]==1&&d[6]==1&&d[7]==1&&d[8]==1&&d[9]==1){//如果这3个创造出来的数满足每一位都被使用且只用1次,输出
                                                                                            ~~~^
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 208.0 KiB

信息

递交者
类型
递交
题目
P1772 巧妙填数
语言
C++
递交时间
2019-01-06 11:21:06
评测时间
2019-01-06 11:21:06
评测机
分数
0
总耗时
1ms
峰值内存
208.0 KiB