I am trying to compile this code, but I'm gettong an error:
#include <iostream>
main(){
std::cout << add(5, 6);
}
int add(int a, int b){
return a+b;
}
And I get the following error:
error: 'add' was not declared in this scope
std::cout << add(5, 6);