Message from @Deleted User
Discord ID: 391755321930022923
```Java
java.lang.NullPointerException
```
FUUUUUUCK OOOOOOOOOOOOOOFFFFFFFFFFFFFFFFFFFFFF
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
It shall have a return type of type `int`.
This is the latest draft, for a more up-to-date version.
¯\_(ツ)_/¯
fucking visual studios
Visual Studio is garbage for C++ support.
```scheme
(define (hofstadter-male-female n)
(letrec ((female (lambda (n)
(if (= n 0)
1
(- n (male (female (- n 1)))))))
(male (lambda (n)
(if (= n 0)
0
(- n (female (male (- n 1))))))))
(let loop ((i 0))
(if (> i n)
'()
(cons (cons (female i)
(male i))
(loop (+ i 1)))))))
(hofstadter-male-female 8)
(define (find-first func lst)
(call-with-current-continuation
(lambda (return-immediately)
(for-each (lambda (x)
(if (func x)
(return-immediately x)))
lst)
#f)))
```
IS THIS ENOUGH PARAENTHESES MR KRABS?
GCC master race.
no
punch card master race
jfc
punch tape master race
Only Microsoft has the balls to not support C++11, and brag about supporting features that are not even on the standard yet.
thoughts on codeblocks?
It's okay, I guess... haven't used in a long time.
emacs master race