/ Vijos /

记录详情

Wrong Answer

In file included from /usr/include/c++/7/backward/hash_map:60:0,
                 from foo.cc:3:
/usr/include/c++/7/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
 #warning \
  ^~~~~~~
foo.cc: In function 'PV* get_hash_id(GMap*, char*, unsigned int, int)':
foo.cc:54:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if(pv->encodeValue == encodeValue) {
            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:117:20: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(buffer);
                    ^
In file included from foo.cc:2:0:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
foo.cc:122:20: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
         gets(buffer);
                    ^
In file included from foo.cc:2:0:
/usr/include/stdio.h:638:14: note: declared here
 extern char *gets (char *__s) __wur __attribute_deprecated__;
              ^~~~
foo.cc:178:58: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
             if(prefix_len == 0 || prefix[k] == d_cArr[j] && ++k) {
                                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
foo.cc:101:22: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
     if(DEBUG) freopen("/home/stcdasqy/CLionProjects/vijos1/in.txt", "r", stdin);
               ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:105:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d%d%d", &total_s, &total_t, &s_len, &t_len); getchar();
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:117:13: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
         gets(buffer);
         ~~~~^~~~~~~~
foo.cc:122:13: warning: ignoring return value of 'char* gets(char*)', declared with attribute warn_unused_result [-Wunused-result]
         gets(buffer);
         ~~~~^~~~~~~~
/tmp/ccLabhIY.o: In function `main':
foo.cc:(.text.startup+0xe8): warning: the `gets' function is dangerous and should not be used.

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-05-14T11:10:27.556Z","handle":"2020-05-14T11:10:27.556Z","cache_start":"2020-05-14T11:10:27.561Z","read_cases":"2020-05-14T11:10:27.677Z","judge":"2020-05-14T11:10:27.680Z","done":"2020-05-14T11:10:30.210Z"}
# 状态 耗时 内存占用
#1 Wrong Answer 读取到 0 ,应为 1620 4ms 1.0 MiB
#2 Wrong Answer 读取到 0 ,应为 2028 3ms 916.0 KiB
#3 Wrong Answer 读取到 0 ,应为 25201 10ms 4.344 MiB
#4 Wrong Answer 读取到 0 ,应为 27910 10ms 4.211 MiB
#5 Wrong Answer 读取到 0 ,应为 31141 10ms 4.078 MiB
#6 Wrong Answer 读取到 0 ,应为 35669 10ms 4.254 MiB
#7 Wrong Answer 读取到 0 ,应为 285548 10ms 7.793 MiB
#8 Wrong Answer 读取到 0 ,应为 307156 10ms 7.543 MiB
#9 Wrong Answer 读取到 0 ,应为 333374 10ms 7.312 MiB
#10 Wrong Answer 读取到 0 ,应为 90223 10ms 6.508 MiB
#11 Wrong Answer 读取到 0 ,应为 99374 10ms 6.234 MiB
#12 Wrong Answer 读取到 0 ,应为 111074 10ms 6.254 MiB
#13 Wrong Answer 读取到 0 ,应为 1248979 45ms 22.199 MiB
#14 Wrong Answer 读取到 0 ,应为 1067436 45ms 20.441 MiB
#15 Wrong Answer 读取到 0 ,应为 307672 44ms 15.488 MiB
#16 Wrong Answer 读取到 0 ,应为 83431 42ms 11.0 MiB
#17 Wrong Answer 读取到 0 ,应为 4347415 37ms 22.191 MiB
#18 Wrong Answer 读取到 0 ,应为 15997802 26ms 15.379 MiB
#19 Wrong Answer 读取到 0 ,应为 364230 43ms 15.496 MiB
#20 Wrong Answer 读取到 0 ,应为 762279 45ms 21.125 MiB

信息

递交者
类型
递交
题目
P1960 双旋转字符串
语言
C++
递交时间
2020-05-14 19:10:27
评测时间
2020-05-14 19:10:27
评测机
分数
0
总耗时
445ms
峰值内存
22.199 MiB