You must have used the variable - sum
(int datatype) earlier which is different from the inbuilt function sum()
you are trying to call.
Hence, it is usually not advisable to use pre-defined in-built function names for variables.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…