/ Vijos /

记录详情

Memory Exceeded

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 Memory Exceeded ≥976ms ≥256.016 MiB

信息

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