Can someone explain to me why the codes below give an error? Thanks!
1 2 3 4 5 6 7 8 9 10 11 12 13
Given the following code:
#include <iostream>
constint & operator+(constint & lhs,
constint & rhs) {
return lhs+rhs;
}
int main(void) {
std::cout << 5+7;
return 0;
}
What is the result of compilation? Success ✘ Undefined Error ✔ Warning