/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:73:26: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     for(int i=0;i<n;i++) gets(sm[i]);
                          ^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/c++/6/ext/string_conversions.h:43,
                 from /usr/include/c++/6/bits/basic_string.h:5417,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:73:36: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     for(int i=0;i<n;i++) gets(sm[i]);
                                    ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/c++/6/ext/string_conversions.h:43,
                 from /usr/include/c++/6/bits/basic_string.h:5417,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:96:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if(sm[i][j] == 'x' && (curArr[j] & 0x3)== 2
                ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:98:51: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                 || j>=1 && (curArr[j] & 0x3) == 2 && (curArr[j-1] & 0x3) == 1
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/cczLBGDd.o: In function `main':
foo.cc:(.text.startup+0x51): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 44ms 23.191 MiB
#2 Wrong Answer 95ms 23.426 MiB
#3 Accepted 115ms 23.191 MiB
#4 Wrong Answer 838ms 30.156 MiB
#5 Time Exceeded ≥3000ms ≥82.492 MiB
#6 Time Exceeded ≥3002ms ≥100.059 MiB
#7 Time Exceeded ≥5000ms ≥92.32 MiB
#8 Time Exceeded ≥5001ms ≥89.711 MiB
#9 Runtime Error 4773ms 149.852 MiB
#10 Runtime Error 6467ms 169.023 MiB

信息

递交者
类型
递交
题目
P1581 多米诺骨牌
语言
C++
递交时间
2020-04-26 21:23:03
评测时间
2020-04-26 21:23:03
评测机
分数
20
总耗时
28339ms
峰值内存
169.023 MiB