/ Vijos /

记录详情

Memory Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:113:26: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     for(int i=0;i<n;i++) gets(sm[i]);
                          ^~~~
In file included from /in/foo.cc:2:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:113:36: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
     for(int i=0;i<n;i++) gets(sm[i]);
                                    ^
In file included from /in/foo.cc:2:0:
/usr/include/stdio.h:640:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
/in/foo.cc:147:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                 if(sm[i][j] == 'x' && (curArr[j] & 0x1)
                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/in/foo.cc:149:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                    || j>=1 && (curArr[j] & 0x1) && (curArr[RI] & 0x1)
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/tmp/ccGDHFt1.o: In function `main':
foo.cc:(.text.startup+0x51): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 274ms 152.879 MiB
#2 Accepted 521ms 152.898 MiB
#3 Accepted 723ms 152.887 MiB
#4 Time Exceeded ≥1002ms ≥153.602 MiB
#5 Time Exceeded ≥3001ms ≥180.773 MiB
#6 Time Exceeded ≥3002ms ≥209.879 MiB
#7 Time Exceeded ≥5000ms ≥190.723 MiB
#8 Time Exceeded ≥5000ms ≥210.586 MiB
#9 Memory Exceeded ≥4307ms ≥256.0 MiB
#10 Memory Exceeded ≥3563ms ≥256.0 MiB

信息

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