foo.cc:56:2: error: stray '\357' in program
cout << fixed << setprecision(2) << b.getsum() << endl;
^
foo.cc:56:2: error: stray '\274' in program
foo.cc:56:2: error: stray '\210' in program
foo.cc:56:2: error: stray '\357' in program
foo.cc:56:2: error: stray '\274' in program
foo.cc:56:2: error: stray '\211' in program
foo.cc: In function 'int main()':
foo.cc:56:40: error: invalid use of non-static member function
cout << fixed << setprecision(2) << b.getsum() << endl;
^
foo.cc: In instantiation of 'T Array<T>::getsum() [with T = int]':
foo.cc:55:19: required from here
foo.cc:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)