记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:56:35: error: invalid use of non-static member function 'T Array<T>::getsum() [with T = double]'
  cout << fixed << setprecision(2) << b.getsum << endl;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/in/foo.cc:34:3: note: declared here
 T Array<T>::getsum()
   ^~~~~~~~
/in/foo.cc: In instantiation of 'T Array<T>::getsum() [with T = int]':
/in/foo.cc:55:19:   required from here
/in/foo.cc:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1011 数组类模版Array[综合题]
语言
C++
递交时间
2020-04-12 22:30:40
评测时间
2020-04-12 22:30:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes