prog.cpp:9:9: error: ‘m’ does not name a type; did you mean ‘tm’?
m[0][0] = aratio * fovtan;
^
tm
prog.cpp:10:9: error: ‘m’ does not name a type; did you mean ‘tm’?
m[1][1] = fovtan;
^
tm
prog.cpp:11:9: error: ‘m’ does not name a type; did you mean ‘tm’?
m[2][2] = fra/(fra-nera);
^
tm
prog.cpp:12:9: error: ‘m’ does not name a type; did you mean ‘tm’?
m[3][2] = (-fra*nera)/(fra-nera);
^
tm
prog.cpp:13:9: error: ‘m’ does not name a type; did you mean ‘tm’?
m[2][3] = 1;
^
tm
prog.cpp:6:58: error: ‘HEIGHT’ was not declared in this scope
float nera = 0.1, fra = 1000, fov = 90, aratio = HEIGHT / (float)WIDTH;
^~~~~~
prog.cpp:6:74: error: ‘WIDTH’ was not declared in this scope
float nera = 0.1, fra = 1000, fov = 90, aratio = HEIGHT / (float)WIDTH;
^~~~~
prog.cpp:7:28: error: ‘tanf’ was not declared in this scope
float fovtan = 1 / tanf((fov * 0.5 / 180) * 3.14159);
^~~~
prog.cpp:7:28: note: suggested alternative: ‘rand’
float fovtan = 1 / tanf((fov * 0.5 / 180) * 3.14159);
^~~~
rand