Closed RohitArora7 closed 1 year ago
oqs::bytes
is a typedef using bytes = std::vector<byte>; ///< vector of bytes (unsigned)
, defined here https://github.com/open-quantum-safe/liboqs-cpp/blob/0f757a73cb728d26177897395590742084ba5e5c/include/common.h#L26. main()
should return an int
. So there's a type incompatibility. main()
cannot return anything else but int
. You can print out the secret if you want, by doing std::cout << shared_secret_server << '\n';
.
Hi Team ,
How can i return shared_secret_server ?
the below code will give me an error because function is
int main ()
and i am returningbyte
value