#include <stdio.h>
#include <cs50.h>
void printRow(int);
int main()
{
int Height = 0;
int Row = 0;
int i, j;
{
printf("enter the height of half pyramid: \n");
scanf("%i", &Height);
return Height;
for(i = 1; i <= Height; i++)
{
for(j = 1; j < i; Row++);
printf("%Height +1i", printRow(Row));
}
printf("\n")
}
}
/*FUNCTION DEFINITION*******
***************************/
void printRow(int Row)
{
printf("#");
}
this is my code but for some reason there is a problem with the printRow()
function.this is what the compiler outputs:
/home/ubuntu/workspace/pset1/ $ make mario
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wshadow mario.c -lcs50 -lm -o mario
mario.c:21:24: error: argument type 'void' is incomplete
printf("%i", printRow(Row));
^
1 error generated.
make: *** [mario] Error 1
/home/ubuntu/workspace/pset1/ $
what does it mean by 'the argument void is incomplete?