prog.c:3:21: error: expected ‘]’ before ‘;’ token
#define MAXLINE 1000;
^
prog.c:6:11: note: in expansion of macro ‘MAXLINE’
char line[MAXLINE];
^~~~~~~
prog.c:3:21: error: expected ‘]’ before ‘;’ token
#define MAXLINE 1000;
^
prog.c:7:14: note: in expansion of macro ‘MAXLINE’
char longest[MAXLINE];
^~~~~~~
prog.c: In function ‘main’:
prog.c:19:19: warning: implicit declaration of function ‘getline’ [-Wimplicit-function-declaration]
while ((len = getline()) >= 0)
^~~~~~~
prog.c: In function ‘getline’:
prog.c:33:31: warning: value computed is not used [-Wunused-value]
for (i = 0; i < MAXLINE-1 && (c = getchar()) !+ EOF && c != '\n'; ++i)
~~~^~~~~~~~~~~~~~~~~~
prog.c:33:50: error: expected ‘)’ before ‘!’ token
for (i = 0; i < MAXLINE-1 && (c = getchar()) !+ EOF && c != '\n'; ++i)
^