/in/foo.cc: In function 'int main()':
/in/foo.cc:38:12: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
n=read(); gets(s); q=read();
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:38:18: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
n=read(); gets(s); q=read();
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
from /in/foo.cc:1:
/usr/include/stdio.h:640:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
/in/foo.cc:2:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
#define rep(i,l,r) for(register int i=(l);i<=(r);i++)
^
/in/foo.cc:47:3: note: in expansion of macro 'rep'
rep(j,0,25) k=gcd(k,cnt[r][j]-cnt[l-1][j]); int limit=sqrt(k);
^~~
/in/foo.cc:47:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
rep(j,0,25) k=gcd(k,cnt[r][j]-cnt[l-1][j]); int limit=sqrt(k);
^~~
/tmp/ccWpL8pF.o: In function `main':
foo.cc:(.text.startup+0x28): warning: the `gets' function is dangerous and should not be used.