foo.cc:7:45: warning: friend declaration 'std::istream& operator>>(std::istream&, Array<T>&)' declares a non-template function [-Wnon-template-friend]
friend istream& operator>>(istream&, Array&);
^
foo.cc:7:45: note: (if this is not what you intended, make sure the function template has already been declared and add <> after the function name here)
foo.cc:8:45: warning: friend declaration 'std::ostream& operator<<(std::ostream&, Array<T>&)' declares a non-template function [-Wnon-template-friend]
friend ostream& operator<<(ostream&, Array&);
^
/tmp/ccBsx2Ni.o: In function `main':
foo.cc:(.text.startup+0x2b): undefined reference to `operator>>(std::istream&, Array<int>&)'
foo.cc:(.text.startup+0x38): undefined reference to `operator<<(std::ostream&, Array<int>&)'
collect2: error: ld returned 1 exit status
自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)