/ Vijos /

记录详情

Memory Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:78: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:78: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:102:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                 if(sm[i][j] == 'x' && (curArr[j] & 0x2)== 2
                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:104:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                    || j>=1 && (curArr[j] & 0x2) == 2 && (curArr[j-1]) == 1
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/tmp/ccAMH9ZA.o: In function `main':
foo.cc:(.text.startup+0x51): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 286ms 152.887 MiB
#2 Accepted 542ms 152.949 MiB
#3 Accepted 739ms 152.895 MiB
#4 Time Exceeded ≥1000ms ≥154.754 MiB
#5 Time Exceeded ≥3003ms ≥241.516 MiB
#6 Time Exceeded ≥3002ms ≥240.824 MiB
#7 Time Exceeded ≥5001ms ≥207.57 MiB
#8 Memory Exceeded ≥4890ms ≥256.0 MiB
#9 Memory Exceeded ≥6454ms ≥256.0 MiB
#10 Memory Exceeded ≥4874ms ≥256.0 MiB

信息

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