#include <stdio.h> int main() { int a[]={12,59,45,88,55,77,99,66,44,84,-1}; int num=0; for(int i=0;a[i]!=-1;i+=1) if(a[i]<60) if(a[i]>num) num=a[i]; return 0; }
Standard input is empty
prog.c: In function ‘main’: prog.c:7:5: error: ‘for’ loop initial declarations are only allowed in C99 mode prog.c:7:5: note: use option -std=c99 or -std=gnu99 to compile your code
Standard output is empty