hii
i have the code for a mesh network and simulate using ns3.i am trying to get the flow monitor on the console so that i get information about the packets and through.i have made some changes in the code but i get certain errors like this
Waf: Entering directory `/home/cpu56/ns-allinone-3.11/ns-3.11/build'
[ 584/1186] cxx: scratch/mesh.cc -> build/debug/scratch/mesh_15.o
../scratch/mesh.cc: In member function ‘void MeshTest:

onfigure(int, char**)’:
../scratch/mesh.cc:148: error: ‘myfilename’ was not declared in this scope
../scratch/mesh.cc:149: error: ‘datarate’ was not declared in this scope
../scratch/mesh.cc: In function ‘int main(int, char**)’:
../scratch/mesh.cc:295: error: ‘myofile’ was not declared in this scope
../scratch/mesh.cc:295: error: ‘myfilename’ was not declared in this scope
../scratch/mesh.cc:297: error: ‘monitor’ was not declared in this scope
../scratch/mesh.cc:297: error: ‘m_totalTime’ was not declared in this scope
../scratch/mesh.cc:299: error: ‘flowmon’ was not declared in this scope
../scratch/mesh.cc:316: error: ‘m_xsize’ was not declared in this scope
../scratch/mesh.cc:316: error: ‘m_ysize’ was not declared in this scope
../scratch/mesh.cc:316: error: ‘m_packetSize’ was not declared in this scope
Waf: Leaving directory `/home/cpu56/ns-allinone-3.11/ns-3.11/build'
Build failed: -> task failed (err #1):
{task: cxx mesh.cc -> mesh_15.o}
i am attaching the mesh.cc file .if someone can help me point out the mistake it would be great.thanks