Well you probably leeched this code.
First of all, you can't declare a variable as a "var" in C++, because you must declare the variable with a type, such as int or double.
Also, "ont" isn't a variable type. Type "int" instead.
Overall, it looks like javascript to me. the main function can't receive anything such as "test"
Try to learn c++, because if you didn't leech it, you lack the necessary nolleges to write a simple program.