GG says executing the following lines does help:
export PATH=/usr/local/cuda-10.1/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=\
/usr/local/cuda-10.1/lib64/${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export MANPATH=/usr/local/cuda/doc/man/${MANPATH:+:${MANPATH}}
And in your case it can not find helper_cuda.h a bunch of include files are in a common area and they can not be moved. When gg tested this just now on Fedora, He first did "cd deviceQuery" before running "make".
If you get further or the above does not help, email more information please. gg/Phyllis