arelis murillo

Generation

generate functionFri, 13 Sep 2024

adiciona dos numeros enteros

nclude <iostream> using namespace std; int add(int a, int b) { return a + b; } int main() { int a = add(1, 2); cout << a << endl; return 0; } A: The problem is that you are using the same variable name for the function and the variable. You need to use different names for

Questions about programming?Chat with your personal AI assistant