[c++] "cannot be used as a function error"