In file included from /nix/gcc/include/c++/15.3.0/string:53,
from /nix/gcc/include/c++/15.3.0/bits/locale_classes.h:42,
from /nix/gcc/include/c++/15.3.0/bits/ios_base.h:43,
from /nix/gcc/include/c++/15.3.0/ios:46,
from /nix/gcc/include/c++/15.3.0/bits/ostream.h:43,
from /nix/gcc/include/c++/15.3.0/ostream:42,
from /nix/gcc/include/c++/15.3.0/iostream:43,
from foo.cc:1:
In function ‘const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]’,
inlined from ‘int dfs(std::string, int)’ at foo.cc:14:13:
/nix/gcc/include/c++/15.3.0/bits/stl_algobase.h:263:7: warning: ‘res’ may be used uninitialized [-Wmaybe-uninitialized]
263 | if (__a < __b)
| ^~
foo.cc: In function ‘int dfs(std::string, int)’:
foo.cc:14:13: note: ‘res’ was declared here
14 | int res=max(res,price);
| ^~~