Hello im taking the harvard intro to cs course and am having the following error
~/workspace/pset1/mario/less/ $ clang mario.c
/tmp/mario-69d749.o: In function main': mario.c:(.text+0x1c): undefined reference to
get_int’
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Kindof lost as ive had so many issues with cloud9…anyhow here is my code
#include <stdio.h>
#include <cs50.h>
int main(void)
{
int n;
do
{
int n = get_int("Height: ");
} while (n > 0 || n > 23);
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n + 1; j++)
{
if (i + j >= n - 1)
printf("#");
else
printf(" “);
}
printf(”\n");
}
}
Im honestly scared to try anymore solutions i have looked up as another non-working solution wil involve me restarting the workspace at best…or restarting my pc at worst…ive tried to use GetInt but that didnt work either. any explanation why my code isnt working would be appreciated.