foo.cc: In function ‘void bfs(int, int)’:
foo.cc:13:9: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
13 | while(t<w);
| ^~~~~
foo.cc:14:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
14 | {
| ^
foo.cc: In function ‘int main()’:
foo.cc:33:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
33 | for(int i=0;i<m;i++)
| ^~~
foo.cc:36:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
36 | for(int i=0;i<m;i++)
| ^~~
foo.cc:38:21: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
38 | gets(t);
| ~~~~^~~
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:31:21: warning: unused variable ‘ch’ [-Wunused-variable]
31 | char t[100],ch;
| ^~
/nix/binutils-2.43.1/bin/ld: /tmp/ccmF0ufw.o: in function `main':
foo.cc:(.text.startup+0xc4): warning: the `gets' function is dangerous and should not be used.