递归函数求平方和 【问题描述】f(n)=11+22+33+…+nn 【输入形式】一个整数 【输出形式】平方和 【样例输入】10 【样例输出】385 #include <iostream> using namespace std; int f(int n) { if(n==1) return