Message from @Durtle02
Discord ID: 391754476689686528
I put this in a #nsfw channel
Or just join jdm's other discord
that fggot ha his own?
He has a youtube channel too
Getting back on topic
lol
fag only comes here to complain about people talking in <#377519392956874752>
lol
like JDM
any of you guys ever had to program in assembly?
Yes.
that was most cancer
Worst assembly I had to deal with was CUDA/PTX asm.
lol
Had to literally edit the assembly by hand because the compiler was generating wrong code.
wow
that sucks
Back in the CUDA 1.0 days.
AAAAAAHHHHHHHHHHHHH
lol
post your code dude
Had to translate this
debugg session
Too much to post
```CPP
// The function1 is a recursive procedure defined by:
// function1(n) = 2*n if n <= 4
// = n*function1(n-2) + function1(n-3) + n otherwise.
int function1(int n)
{
if (n <= 4)
{
return 2*n;
}
else
{
int comp = n*function1(n-2) + function1(n-3) + n;
return comp;
}
}
// The main calls function1 by entering an integer given by a user.
void main()
{
int ans, n;
printf("Enter an integer:\n");
// read an integer from user and store it in "n"
scanf("%d", &n);
ans = function1(n);
// print out the solution computed by function 1
printf("The solution is: %d\n", ans);
return;
}
```
I know what's wrong (I think)
I also lost the backup code that was working
There's no `void main` in C++, you drunk?
lmao
you sure about htat?
that
Yes, I'm sure.
I played a language lawyer on the internet, in the past.
cuz void main worked for me before
Don't make me fucking quote ISO/IEC 14882 on your ass.
do it
do it