/ 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/cc7tQvOH.o: In function `main':
foo.cc:(.text.startup+0x51): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 46ms 23.191 MiB
#2 Accepted 89ms 23.285 MiB
#3 Accepted 114ms 23.203 MiB
#4 Accepted 412ms 26.023 MiB
#5 Time Exceeded ≥3001ms ≥62.398 MiB
#6 Time Exceeded ≥3001ms ≥99.234 MiB
#7 Time Exceeded ≥5000ms ≥92.371 MiB
#8 Time Exceeded ≥5000ms ≥119.066 MiB
#9 Runtime Error 3693ms 130.746 MiB
#10 Runtime Error 4739ms 141.086 MiB

信息

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