### Convert integer to roman numeral function

I need to create a function to convert an integer to a roman numeral, this is what I have so far.

 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114`` `````` int main() { void Roman(int nu,int m, int d, int c, int l, int x,int v,int i, int n) { double num; if (nu >= 1000) { m = n / 1000; n = 0; { for (n; n < m; n++) cout << "M"; } nu = nu % 1000; } else if (nu >= 900) { cout << "DCCCC"; n = n % 900; } else if (nu >= 500) { { d = nu / 500; n = 0; for (n; n < d; n++) cout << "D"; } nu = nu % 500; } if (nu >= 400) { cout << "CD"; nu = nu % 400; } else if (nu >= 100) { { c = nu / 100; n = 0; for (n; n < c; n++) cout << "C"; } nu = nu % 100; } if (nu >= 90) { cout << "XC"; nu = nu % 90; } else if (nu >= 50) { { l = intnum / 50; n = 0; for (n; n < l; n++) cout << "L"; } nu = nu % 50; } if (nu >= 40) { cout << "XL"; nu = nu % 40; } else if (nu >= 10) { { x = nu / 10; n = 0; for (n; n < x; n++) cout << "X"; } nu = nu % 10; } if (nu >= 9) { cout << "VIIII"; nu = nu % 9; } else if (nu >= 5) { { v = nu / 5; n = 0; for (n; n < v; n++) cout << "V"; } nu = nu % 5; } if (nu >= 4) { cout << "IIII"; nu = nu % 4; } else if (nu >= 1) { i = nu; n = 0; for (n; n < i; n++) cout << "I"; } return 0; }``````

I just don't know where to go from here, and I'm lost...
Line 3: You can't nest one function (Roman) inside another (main).

Line 5: What's the purpose of num? You don't reference it.

Line 3: Why are you passing m,d,c,l,x,i,n as arguments? These should be local variables inside Roman.

Line 112: You're missing a close brace for Roman.

Line 112: You need to call Roman passing it a number to convert.