/ Vijos /

记录详情

Memory Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:77: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:77: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:101:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                 if(sm[i][j] == 'x' && (curArr[j] & 0x2)== 2
                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:103:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                    || j>=1 && (curArr[j] & 0x2) == 2 && (curArr[j-1]) == 1
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/tmp/cc3XovtU.o: In function `main':
foo.cc:(.text.startup+0x51): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 294ms 152.887 MiB
#2 Accepted 548ms 152.961 MiB
#3 Accepted 732ms 152.895 MiB
#4 Time Exceeded ≥1000ms ≥154.293 MiB
#5 Time Exceeded ≥3003ms ≥183.145 MiB
#6 Time Exceeded ≥3003ms ≥200.828 MiB
#7 Time Exceeded ≥5000ms ≥204.711 MiB
#8 Time Exceeded ≥5000ms ≥201.977 MiB
#9 Time Exceeded ≥7002ms ≥251.406 MiB
#10 Memory Exceeded ≥5851ms ≥256.0 MiB

信息

递交者
类型
递交
题目
P1581 多米诺骨牌
语言
C++
递交时间
2020-04-27 21:07:03
评测时间
2020-04-27 21:07:03
评测机
分数
30
总耗时
≥31438ms
峰值内存
≥256.0 MiB