46,190 questions
@Filip
Thank you for your post! You can try the below to fix your code.
#include <iostream>
using namespace std;
int change(int num1);
int main()
{
int a = 10;
int changeNumber;
cout << a << endl;
changeNumber = change(a);
cout << changeNumber << endl;
return 0;
}
int change(int a) {
int changed = a + 10;
return changed;
}
Thank you for your time and patience throughout this issue.
----------
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.