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)提供评测服务