#include <iostream>
#include <vector>
using namespace std;
vector<int>A;
string type="int";
void fun1()
{
for (int n = 1; n <= 10; n++)
{
int p = n * (3*n - 1) / 2;
A.push_back(p);
}
}
void fun2(vector<int>A,string type_s)
{
for (int i = 0; i < A.size(); i++)
{
cout << A[i]<<" ";
}
cout << endl << type_s;
}
int main()
{
fun1();
fun2(A, type);
}
此题很容易