class Add_an_integer{public: Add_an_integer(int n0) : n(n0){} int operator() const (int x) { return x+n;}private: int n;};jni/testcpp.cpp:8:20: error: declaration of 'operator()' as non-functionjni/testcpp.cpp:8:20: error: expected ';' at end of member declarationjni/testcpp.cpp:8:29: error: expected unqualified-id before 'int'jni/testcpp.cpp:8:29: error: expected ')' before 'int'
class Add_an_integer{public: Add_an_integer(int n0) : n(n0){} int operator() (int x) const { return x+n;}private: int n;};