Newbie question about integrating

Hi guys,
Have a look at the following script

mesh m2=square(1,1);
cout
<< int1d(m2)(2) << " "
<< int2d(m2)(2)
<< "\n";

I have some basic idea of integrating , which means sum something up. The script outputs 4 and 2. Which means some area in the m2?
Many thanks.

Got it.
int1d(m2)(2) means 2 x length of the unit square,
int2d(m2)(2) means 2 x area of the unit square.