/ Vijos /

记录详情

Runtime Error

foo.cc:8:7: warning: left shift count >= width of type [-Wshift-count-overflow]
    8 | }e[1<<N];
      |       ^
foo.cc: In function 'int main()':
foo.cc:89:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   89 |     scanf("%lld%lld",&n,&q);
      |     ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:91:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   91 |         scanf("%lld",&x);
      |         ~~~~~^~~~~~~~~~~
foo.cc:96:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   96 |         scanf("%lld%lld",&u,&v);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:103:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  103 |         scanf("%lld%lld",&s,&t);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc: In function 'void insert(long long int, long long int)':
foo.cc:10:10: warning: array subscript 0 is above array bounds of 'node [0]' [-Warray-bounds]
   10 |     e[eid].v=v;
      |     ~~~~~^
foo.cc:8:2: note: while referencing 'e'
    8 | }e[1<<N];
      |  ^
foo.cc:11:10: warning: array subscript 0 is above array bounds of 'node [0]' [-Warray-bounds]
   11 |     e[eid].fail=p1[u];
      |     ~~~~~^
foo.cc:8:2: note: while referencing 'e'
    8 | }e[1<<N];
      |  ^
foo.cc: In function 'void dfs(long long int, long long int)':
foo.cc:40:18: warning: array subscript 0 is above array bounds of 'node [0]' [-Warray-bounds]
   40 |         int v=e[i].v;
      |               ~~~^
foo.cc:8:2: note: while referencing 'e'
    8 | }e[1<<N];
      |  ^
foo.cc:39:32: warning: array subscript 0 is above array bounds of 'node [0]' [-Warray-bounds]
   39 |     for(int i=p1[u];i!=-1;i=e[i].fail){
      |                             ~~~^
foo.cc:8:2: note: while referencing 'e'
    8 | }e[1<<N];
      |  ^
foo.cc: In function 'int main()':
foo.cc:10:10: warning: array subscript 0 is above array bounds of 'node [0]' [-Warray-bounds]
   10 |     e[eid].v=v;
      |     ~~~~~^
foo.cc:8:2: note: while referencing 'e'
    8 | }e[1<<N];
      |  ^
foo.cc:11:10: warning: array subscript 0 is above array bounds of 'node [0]' [-Warray-bounds]
   11 |     e[eid].fail=p1[u];
      |     ~~~~~^
foo.cc:8:2: note: while referencing 'e'
    8 | }e[1<<N];
      |  ^
foo.cc:10:10: warning: array subscript 0 is above array bounds of 'node [0]' [-Warray-bounds]
   10 |     e[eid].v=v;
      |     ~~~~~^
foo.cc:8:2: note: while referencing 'e'
    8 | }e[1<<N];
      |  ^
foo.cc:11:10: warning: array subscript 0 is above array bounds of 'node [0]' [-Warray-bounds]
   11 |     e[eid].fail=p1[u];
      |     ~~~~~^
foo.cc:8:2: note: while referencing 'e'
    8 | }e[1<<N];
      |  ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 43. 3ms 896.0 KiB
#2 Wrong Answer Read 0, expect 699. 4ms 1.25 MiB
#3 Wrong Answer Read 0, expect 324. 5ms 1.75 MiB
#4 Wrong Answer Read 0, expect 109. 8ms 2.25 MiB
#5 Wrong Answer Read 0, expect 227. 8ms 2.5 MiB
#6 Wrong Answer Read 0, expect 180. 11ms 3.125 MiB
#7 Wrong Answer Read 0, expect 136. 11ms 3.375 MiB
#8 Wrong Answer Read 0, expect 1882. 10ms 3.75 MiB
#9 Wrong Answer Read 0, expect 2089. 11ms 4.25 MiB
#10 Wrong Answer Read 0, expect 241. 16ms 4.875 MiB
#11 Wrong Answer Read 0, expect 610. 15ms 5.0 MiB
#12 Wrong Answer Read 0, expect 259. 17ms 5.75 MiB
#13 Wrong Answer Read 0, expect 615. 22ms 6.5 MiB
#14 Wrong Answer Read 0, expect 289. 20ms 6.625 MiB
#15 Wrong Answer Read 0, expect 784. 43ms 7.125 MiB
#16 Wrong Answer Read 0, expect 3541. 33ms 7.125 MiB
#17 Wrong Answer Read 0, expect 1483. 37ms 8.125 MiB
#18 Wrong Answer Read 0, expect 886. 44ms 8.367 MiB
#19 Runtime Error Segmentation fault 32ms 9.395 MiB
#20 Runtime Error Segmentation fault 27ms 9.25 MiB

信息

递交者
类型
递交
题目
P1061 迎春舞会之三人组舞
语言
C++
递交时间
2022-08-09 00:58:36
评测时间
2022-08-09 00:58:36
评测机
分数
0
总耗时
385ms
峰值内存
9.395 MiB