/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:174: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:174: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:222:51: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                             if (sm[i][j+l] == 'x' && (stateValue & s_flag[j])
                                 ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:224:71: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                                 || j >= 1 && (stateValue & s_flag[j]) && (stateValue & s_flag[RI])
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ccrm3PGs.o: In function `main':
foo.cc:(.text.startup+0x9f): warning: the `gets' function is dangerous and should not be used.
# 状态 耗时 内存占用
#1 Accepted 21ms 2.293 MiB
#2 Accepted 68ms 2.293 MiB
#3 Accepted 138ms 2.293 MiB
#4 Accepted 342ms 2.289 MiB
#5 Accepted 2131ms 2.289 MiB
#6 Accepted 2245ms 2.293 MiB
#7 Accepted 2834ms 2.293 MiB
#8 Accepted 3709ms 2.293 MiB
#9 Accepted 4454ms 2.293 MiB
#10 Accepted 6248ms 2.293 MiB

信息

递交者
类型
递交
题目
P1581 多米诺骨牌
语言
C++
递交时间
2020-05-03 21:20:55
评测时间
2020-05-03 21:20:55
评测机
分数
100
总耗时
22195ms
峰值内存
2.293 MiB