fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int a[]={12,59,45,88,55,77,99,66,44,84,-1};
  6. int num=0;
  7. for(int i=0;a[i]!=-1;i+=1)
  8. if(a[i]<60)
  9. if(a[i]>num)
  10. num=a[i];
  11. printf("%d",num);
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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
stdout
Standard output is empty