foo.cc: In function ‘bool go()’:
foo.cc:13:18: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
13 | if (a[i] == a[j] && a[p] == a[q] || a[i] == a[q] && a[p] == a[j])
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:25:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
25 | gets(a);
| ~~~~^~~
In file included from /nix/gcc-13.3.0/include/c++/13.3.0/cstdio:42,
from /nix/gcc-13.3.0/include/c++/13.3.0/ext/string_conversions.h:45,
from /nix/gcc-13.3.0/include/c++/13.3.0/bits/basic_string.h:4109,
from /nix/gcc-13.3.0/include/c++/13.3.0/string:54,
from /nix/gcc-13.3.0/include/c++/13.3.0/bits/locale_classes.h:40,
from /nix/gcc-13.3.0/include/c++/13.3.0/bits/ios_base.h:41,
from /nix/gcc-13.3.0/include/c++/13.3.0/ios:44,
from /nix/gcc-13.3.0/include/c++/13.3.0/ostream:40,
from iostream:41:
/nix/glibc-2.40-66-dev/include/stdio.h:667:14: note: declared here
667 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
foo.cc:27:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
27 | gets(a);
| ~~~~^~~
/nix/glibc-2.40-66-dev/include/stdio.h:667:14: note: declared here
667 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
/nix/binutils-2.43.1/bin/ld: /tmp/ccsMNNKA.o: in function `main':
foo.cc:(.text.startup+0x1a): warning: the `gets' function is dangerous and should not be used.