prog.c:2:17: error: expected ';', ',' or ')' before numeric constant
#define MAXLINE 1000 /* максимальный размер вводимой строки */
^
prog.c:4:30: note: in expansion of macro 'MAXLINE'
int getline(char line[], int MAXLINE);
^
prog.c:8:1: warning: return type defaults to 'int' [-Wimplicit-int]
main()
^
prog.c: In function 'main':
prog.c:16:18: warning: implicit declaration of function 'getline' [-Wimplicit-function-declaration]
while (len = getline(line, MAXLINE)) > 0)
^
prog.c:16:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (len = getline(line, MAXLINE)) > 0)
^
prog.c:16:42: error: expected expression before '>' token
while (len = getline(line, MAXLINE)) > 0)
^
prog.c:16:45: error: expected statement before ')' token
while (len = getline(line, MAXLINE)) > 0)
^
prog.c: In function 'getline':
prog.c:32:5: error: stray '\321' in program
for (i = 0; i < lim-1 && (c = getchar()) != EOF && с != '\n'; ++i)
^
prog.c:32:5: error: stray '\201' in program
prog.c:32:59: error: expected expression before '!=' token
for (i = 0; i < lim-1 && (c = getchar()) != EOF && с != '\n'; ++i)
^