C++ code

Can someone please explain how did the output turn out like this?

...

...

The function header (line #6) has default values for width and height if none are passed explicitely

look at the number of arguments you're using for calling AreaCube, retard

Are you... Are you actually serious?

>writes in c++
>but uses the language like c
why? why would you use c++ to write a program like that?

at least use curly braces for fucks sake, you're not supposed to write int length = 100, but int length{100} in c++

That's a terrible advice.

>>but uses the language like c

Better to code like it's c than like it's java.

>you're not supposed to write int length = 100,

Literally nothing wrong with that. Fuck off to the

What exactly is the problem? Those values are correct.