#include <iostream>
int dn (int x, int y)
{
return x * 2 + y;
}
int main ()
{
usingnamespace std;
int x;
int y;
y = 10;
cin >> x;
cout << dn (x + y) << endl;
}
I don't think i 'need' two functions per se
basicly I would like to know what is wrong with the code as it will not compile.