sequence.c: In function 'add':
sequence.c:24:20: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
24 | else if(0==(o&o-1))adj[x]=(int*)realloc(sz[x],2*o*sizeof **adj);
| ~^~
sequence.c:24:47: warning: passing argument 1 of 'realloc' makes pointer from integer without a cast [-Wint-conversion]
24 | else if(0==(o&o-1))adj[x]=(int*)realloc(sz[x],2*o*sizeof **adj);
| ~~^~~
| |
| long long int
In file included from sequence.c:2:
/usr/include/stdlib.h:550:29: note: expected 'void *' but argument is of type 'long long int'
550 | extern void *realloc (void *__ptr, size_t __size)
| ~~~~~~^~~~~
sequence.c: In function 'solve':
sequence.c:29:13: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | int n,m;scanf("%lld %lld",&n,&m);
| ^~~~~~~~~~~~~~~~~~~~~~~~
sequence.c: In function 'main':
sequence.c:54:11: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
54 | int t;scanf("%lld",&t);
| ^~~~~~~~~~~~~~~~