#ayo why this code not running

62 messages · Page 1 of 1 (latest)

quartz drumBOT
#

Hello! Thank you for your question. To help you best, please provide more details. Could you please:

  1. Describe the Problem: Explain what you're trying to achieve and what's going wrong.
  2. Share Your Code: Please format your code using markdown (triple backticks ``` followed by the language, then your code, then triple backticks again).
  3. Include Context: Mention the programming language, any error messages, and the steps you've already taken to troubleshoot.
  4. Be Specific: A clear and specific question will get you a better answer.
#

-# C @zenith stratus

paper fulcrum
#

@quartz drum what problems you see in this code?

quartz drumBOT
quartz drumBOT
# paper fulcrum i've shared it

Hey @paper fulcrum! I see you've shared an image, but I can't see it. Could you please share your code as text, along with any error messages you're getting? That will help me understand what's going on.

paper fulcrum
#

okay

paper fulcrum
quartz drumBOT
paper fulcrum
quartz drumBOT
# paper fulcrum 1. gcc, 2.implicit delcaration of the printf function 3.yes

Okay, Adronix! The "implicit declaration of the printf function" error usually means the compiler doesn't know what printf is. You've included <stdio.h>, which is good! Make sure you're compiling with a C compiler (like GCC) and that you're saving the file with a .c extension. Double-check your compiler command to make sure it's correct. Sometimes a simple typo in the command can cause issues. Keep me updated!

high solstice
#

what's the error you got and how did you compile the code using cmd?

hot crescent
paper fulcrum
#

gcc sigmaboi.c -o sigmaboi

high solstice
#

o.o move to Linux ✨

#

how did you install gcc on windows tho?

paper fulcrum
# hot crescent

mines saying imcompatible declaration of the print function

paper fulcrum
hot crescent
#

Windows diff probably

#

Something about stdio.h and your compiler or something

high solstice
hot crescent
#

I would recommend you use WSL if you want to learn to code on windows and you aren't doing window-targeted stuff

#

Fewer headaches lol

paper fulcrum
high solstice
#

or better use Visual Studio ✨ It handles all the linking libraries problem out of the box

hot crescent
paper fulcrum
hot crescent
#

Nah, I'm very happy with the person I have at the moment

high solstice
paper fulcrum
#

wangity wang's not single

high solstice
#

specifically vim motions

#

me only single ✨

paper fulcrum
high solstice
paper fulcrum
high solstice
#

yesh

#

me 18+ and single ✨

paper fulcrum
#

you'll find someone

#

first you need to take the journey

#

the code ran

#

gg

high solstice
#

great

paper fulcrum
#

i opened notepand and just hit ctrl + s and after that i wrote the command and it ran

high solstice
#

😭

paper fulcrum
high solstice
#

use vscode with autosave on 😭

paper fulcrum
#

now going back to the basics

#

notepad and cmd

high solstice
#

who uses notepad to code o.o

paper fulcrum
high solstice
paper fulcrum
high solstice
paper fulcrum
high solstice