: error: ‘cont’ cannot be used as a function return (cont(cont-1))/2;

C++
https://stackoverflow.com/questions/4412619/cannot-be-used-as-a-function-error
Source

Also in C++: