#include<stdio.h>
#include<string.h>
#include<stdlib.h>

int main(int argc,char*argv[]){
#define SIZE 100
char line[SIZE];

int i;


for(i=0;fgets(line,SIZE,stdin)!=NULL;){
for(;line[i]!='\n';i++);


printf("%d",i);
fputs(;line,SIZE,stdout);
}

return 0;

}
書き直しえてみた。
行番号はできてるはずなんだけど文字数ができてないかもエラーはこう出る
p1-0.c: In function 'main':
p1-0.c:17:11: error: expected expression before ';' token
fputs(;line,SIZE,stdout);
^
p1-0.c:17:11: error: too few arguments to function 'fputs'