/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:74: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++/5/cstdio:42:0,
                 from /usr/include/c++/5/ext/string_conversions.h:43,
                 from /usr/include/c++/5/bits/basic_string.h:5352,
                 from /usr/include/c++/5/string:52,
                 from /usr/include/c++/5/bits/locale_classes.h:40,
                 from /usr/include/c++/5/bits/ios_base.h:41,
                 from /usr/include/c++/5/ios:42,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
foo.cc:74: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++/5/cstdio:42:0,
                 from /usr/include/c++/5/ext/string_conversions.h:43,
                 from /usr/include/c++/5/bits/basic_string.h:5352,
                 from /usr/include/c++/5/string:52,
                 from /usr/include/c++/5/bits/locale_classes.h:40,
                 from /usr/include/c++/5/bits/ios_base.h:41,
                 from /usr/include/c++/5/ios:42,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
foo.cc:74: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++/5/cstdio:42:0,
                 from /usr/include/c++/5/ext/string_conversions.h:43,
                 from /usr/include/c++/5/bits/basic_string.h:5352,
                 from /usr/include/c++/5/string:52,
                 from /usr/include/c++/5/bits/locale_classes.h:40,
                 from /usr/include/c++/5/bits/ios_base.h:41,
                 from /usr/include/c++/5/ios:42,
                 from /usr/include/c++/5/ostream:38,
                 from /usr/include/c++/5/iostream:39,
                 from foo.cc:1:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^
foo.cc:98:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                 if(sm[i][j] == 'x' && (curArr[j] & 0x2)== 2
                                    ^
foo.cc:100:54: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
                    || j>=1 && (curArr[j] & 0x2) == 2 && (curArr[j-1]) == 1
                                                      ^
foo.cc:72:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     int m,n; scanf("%d%d", &n,&m);
                                  ^
foo.cc:74:37: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
     for(int i=0;i<n;i++) gets(sm[i]);
                                     ^
/tmp/ccInFSy5.o: In function `main':
foo.cc:(.text.startup+0x5e): warning: the `gets' function is dangerous and should not be used.

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-04-27T12:58:40.322Z","handle":"2020-04-27T12:58:40.322Z","cache_start":"2020-04-27T12:58:40.329Z","read_cases":"2020-04-27T12:58:40.970Z","judge":"2020-04-27T12:58:40.971Z","done":"2020-04-27T12:58:57.944Z"}
# 状态 耗时 内存占用
#1 Accepted 33ms 15.566 MiB
#2 Accepted 62ms 15.633 MiB
#3 Accepted 77ms 15.57 MiB
#4 Accepted 327ms 17.652 MiB
#5 Wrong Answer 0a1 > 14642380 1334ms 37.012 MiB
#6 Wrong Answer 0a1 > 11142555 1325ms 38.047 MiB
#7 Wrong Answer 0a1 > 12025413 2218ms 36.746 MiB
#8 Wrong Answer 0a1 > 104207 2221ms 44.844 MiB
#9 Wrong Answer 0a1 > 9922682 3089ms 84.727 MiB
#10 Wrong Answer 0a1 > 6824395 3353ms 78.805 MiB

信息

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