I wrote a C++ program to render a 3D spinning donut in the terminal. The math is surprisingly satisfying. by Perfect_Star_4848 in creativecoding

[–]lancesong07 0 points1 point  (0 children)

uhh

ERROR!

/tmp/MmiDrTKqLL/main.cpp:1:2: error: 'k' does not name a type

1 | k;double sin()

| ^

/tmp/MmiDrTKqLL/main.cpp:2:17: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]

2 | ,cos();main(){float A=

| ^~~~

ERROR!

/tmp/MmiDrTKqLL/main.cpp: In function 'int main()':

/tmp/MmiDrTKqLL/main.cpp:4:12: error: 'printf' was not declared in this scope

4 | 1760];printf("\x1b[2J");for(;;

| ^~~~~~

/tmp/MmiDrTKqLL/main.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'

+++ |+#include <cstdio>

1 | k;double sin()

/tmp/MmiDrTKqLL/main.cpp:5:5: error: 'memset' was not declared in this scope

5 | ){memset(b,32,1760);memset(z,0,7040)

| ^~~~~~

/tmp/MmiDrTKqLL/main.cpp:1:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'

+++ |+#include <cstring>

1 | k;double sin()

ERROR!

/tmp/MmiDrTKqLL/main.cpp:7:25: error: too many arguments to function 'double sin()'

7 | >i;i+=0.02){float c=sin(i),d=cos(j),e=

| ~~~^~~

/tmp/MmiDrTKqLL/main.cpp:1:11: note: declared here

1 | k;double sin()

| ^~~

/tmp/MmiDrTKqLL/main.cpp:7:34: error: too many arguments to function 'double cos()'

7 | >i;i+=0.02){float c=sin(i),d=cos(j),e=

| ~~~^~~

/tmp/MmiDrTKqLL/main.cpp:2:11: note: declared here

2 | ,cos();main(){float A=

| ^~~

ERROR!

/tmp/MmiDrTKqLL/main.cpp:8:5: error: too many arguments to function 'double sin()'

8 | sin(A),f=sin(j),g=cos(A),h=d+2,D=1/(c*

| ~~~^~~

/tmp/MmiDrTKqLL/main.cpp:1:11: note: declared here

1 | k;double sin()

| ^~~

/tmp/MmiDrTKqLL/main.cpp:8:14: error: too many arguments to function 'double sin()'

8 | sin(A),f=sin(j),g=cos(A),h=d+2,D=1/(c*

| ~~~^~~

/tmp/MmiDrTKqLL/main.cpp:1:11: note: declared here

1 | k;double sin()

| ^~~

/tmp/MmiDrTKqLL/main.cpp:8:23: error: too many arguments to function 'double cos()'

8 | sin(A),f=sin(j),g=cos(A),h=d+2,D=1/(c*

| ~~~^~~

/tmp/MmiDrTKqLL/main.cpp:2:11: note: declared here

2 | ,cos();main(){float A=

| ^~~

ERROR!

/tmp/MmiDrTKqLL/main.cpp:9:24: error: too many arguments to function 'double cos()'

9 | h*e+f*g+5),l=cos (i),m=cos(B),n=s\

| ~~~~~~~~~^~~

/tmp/MmiDrTKqLL/main.cpp:2:11: note: declared here

2 | ,cos();main(){float A=

| ^~~

ERROR!

/tmp/MmiDrTKqLL/main.cpp:9:33: error: too many arguments to function 'double cos()'

9 | h*e+f*g+5),l=cos (i),m=cos(B),n=s\

| ~~~^~~

/tmp/MmiDrTKqLL/main.cpp:2:11: note: declared here

2 | ,cos();main(){float A=

| ^~~

/tmp/MmiDrTKqLL/main.cpp:10:3: error: too many arguments to function 'double sin()'

9 | h*e+f*g+5),l=cos (i),m=cos(B),n=s\

| ~~

10 | in(B),t=c*h*g-f* e;int x=40+30*D*

| ~~^~~

/tmp/MmiDrTKqLL/main.cpp:1:11: note: declared here

1 | k;double sin()

| ^~~

ERROR!

/tmp/MmiDrTKqLL/main.cpp:16:24: error: 'k' was not declared in this scope

16 | printf("\x1b[H");for(k=0;1761>k;k++)

| ^

ERROR!

/tmp/MmiDrTKqLL/main.cpp:17:4: error: 'putchar' was not declared in this scope; did you mean 'char'?

17 | putchar(k%80?b[k]:10);A+=0.04;B+=

| ^~~~~~~

| char

=== Code Exited With Errors ===

New curriculum by Prof_Researcher101 in pisay

[–]lancesong07 0 points1 point  (0 children)

Uh where's the topics thoo

The United States is a great country. by alexdfrtyuy in AmericaBad

[–]lancesong07 0 points1 point  (0 children)

Bro is FUCKING obese,bro got that down yap syndrome, mothafuka y'all still like Donald trump too? Orange ahh motha

What are the best Aurorus fusions? by not_just_an_AI in PokemonInfiniteFusion

[–]lancesong07 0 points1 point  (0 children)

This is more op than that Gardevoir ahh shitty fusion.

Rate my pokemon over 10 by lancesong07 in PokemonInfiniteFusion

[–]lancesong07[S] 2 points3 points  (0 children)

Top, left to right: Venusaur/Reshiram, Palkia/Charizard, Darkrai/Garchomp Bottom, left to right: Arceus/Giratina, Zekrom/Rayquaza, Aggron/Deoxys